moleculer-rabbitmq is a task queue mixin for Moleculer microservices that integrates RabbitMQ as a message broker. Current stable version is 1.2.0. It provides a simple mixin that enables async queue versions of actions, supports RabbitMQ requeue and delayed message exchange retry strategies, and allows per-queue configuration for AMQP options such as durability and prefetch. Key differentiators include seamless integration with Moleculer's service architecture, automatic async action generation, and built-in retry mechanisms. Release cadence appears to be infrequent.
npm install moleculer-rabbitmqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up a Moleculer service with RabbitMQ queue mixin, defining a queued action, and calling its async version via broker.call.
Ensure Moleculer version is within the peer dependency range. Use 'npm ls moleculer' to check.
Ensure both conditions are met; otherwise, the .async suffix action will not be available and will throw 'Service not found'.
Use rabbitmq-delayed-message-exchange plugin with retryExchangeAssert options for controlled retries.
Switch to retryExchangeAssert configuration requiring the delayed message exchange plugin.
Set asyncActions: true in mixin options and add queue: {} to action definition.Use 'import QueueMixin from ...' (ESM) or 'const QueueMixin = require(...)' (CJS).
Delete the existing queue or match the attributes exactly.