npm.io
2.22.7 • Published 4d ago

@medusajs/event-bus-local

Licence
MIT
Version
2.22.7
Deps
0
Size
27 kB
Vulns
0
Weekly
0
Stars
36.5K

Medusa logo

@medusajs/event-bus-local

Documentation | Website

Building blocks for digital commerce

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

Local Event Bus Module for Medusa: an in-process event bus built on Node's EventEmitter that emits events and runs subscribers within a single process. It's the default Event Module in Medusa applications and is meant for development and testing. For production, use @medusajs/event-bus-redis instead.

At a glance

Package @medusajs/event-bus-local
Type Infrastructure Module
Module key Modules.EVENT_BUS ("event_bus")
Registered by default Yes

Installation

No installation needed. The module ships with @medusajs/medusa and is registered by default through defineConfig.

Configuration

The module has no options. It logs a warning on startup because it isn't recommended for production.

Resources