2.4.21 • Published 9 months ago

@biryanihouse/event-bus-redis v2.4.21

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Overview

Redis Event Bus module for Medusa. When installed, the events system of Medusa is powered by BullMQ and io-redis. BullMQ is responsible for the message queue and worker. io-redis is the underlying Redis client, that BullMQ connects to for events storage.

Getting started

Install the module:

yarn add @biryanihouse/event-bus-redis

Add the module to your medusa-config.js:

module.exports = {
  // ...
  modules: [
    {
      resolve: "@biryanihouse/event-bus-redis",
      options: {
        redisUrl: "redis:..",
      },
    },
  ],
  // ...
}

Configuration

The module can be configured with the following options:

OptionTypeDescriptionDefault
redisUrlstringURL of the Redis instance to connect to.events-worker
queueNamestring?Name of the BullMQ queue.events-queue
queueOptionsobject?Options for the BullMQ queue. See BullMQ's documentation.{}
redisOptionsobject?Options for the Redis instance. See io-redis's documentation{}

Info: See how the options are applied in the RedisEventBusService and loader.

If you do not provide a redisUrl in the module options, the server will fail to start.

2.4.21

9 months ago

2.4.20

9 months ago

2.4.19

9 months ago

2.4.18

9 months ago

2.4.17

9 months ago

2.4.16

9 months ago

2.4.15

9 months ago

2.4.14

9 months ago

2.4.13

9 months ago

2.4.11

9 months ago

2.4.10

9 months ago

2.4.9

9 months ago

2.4.8

9 months ago

2.4.7

9 months ago

2.4.5

9 months ago

2.4.3

9 months ago

2.4.2

9 months ago

2.4.1

9 months ago

2.4.0

9 months ago