
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@medusajs/event-bus-redis
Advanced tools
An open source composable commerce engine built for developers.
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.
Install the module:
yarn add @medusajs/event-bus-redis
Add the module to your medusa-config.js
:
module.exports = {
// ...
modules: [
{
resolve: "@medusajs/event-bus-redis",
options: {
redisUrl: "redis:..",
},
},
],
// ...
}
The module can be configured with the following options:
Option | Type | Description | Default |
---|---|---|---|
redisUrl | string | URL of the Redis instance to connect to. | events-worker |
queueName | string? | Name of the BullMQ queue. | events-queue |
queueOptions | object? | Options for the BullMQ queue. See BullMQ's documentation. | {} |
redisOptions | object? | 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.
FAQs
Redis Event Bus Module for Medusa
The npm package @medusajs/event-bus-redis receives a total of 23,755 weekly downloads. As such, @medusajs/event-bus-redis popularity was classified as popular.
We found that @medusajs/event-bus-redis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.