@medusajs/event-bus-local
Documentation | Website
Building blocks for digital commerce
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.