npm.io
2.1.1 • Published 1 year ago

@traverse-medusa/event-bus-local

Licence
MIT
Version
2.1.1
Deps
1
Size
19 kB
Vulns
0
Weekly
0
Stars
34.8K

Medusa

@traverse-medusa/event-bus-local

Documentation | Website

An open source composable commerce engine built for developers.

Medusa is released under the MIT license. Current CircleCI build status. PRs welcome! Product Hunt Discord Chat Follow @traverse-medusa

Overview

Local Event Bus module for Medusa. When installed, the events system of Medusa is powered by the Node EventEmitter. This module installed by default in new (> v1.8.0) Medusa projects.

The Node EventEmitter is limited to a single process environment. We generally recommend using the @traverse-medusa/event-bus-redis module in a production environment.

Getting started

Install the module:

yarn add @traverse-medusa/event-bus-local

You don't need to add the module to your project configuration as it is the default one. Medusa will try to use it, if no other event buses are installed.

module.exports = {
  // ...
  modules: [ ... ],
  // ...
}

Configuration

The module comes with no configuration options.