Rabbit-Queue is a TypeScript-based abstraction layer over amqplib for managing RabbitMQ queues, exchanges, and RPC patterns. Current version 5.9.2 (stable, 2023) provides easy queue creation, delayed publishing, topic binding, reply patterns, and reconnection handling. It requires Node >=10.0.0 and is designed for producer-consumer workflows with JSON serialization by default. Key differentiators include built-in reply patterns, scheduled publishing, and a BaseQueueHandler for retry logic with dead-letter queues.
npm install rabbit-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to RabbitMQ with prefetch, reply pattern, and reconnection handling, then creates a queue and publishes a message.
Always check queue existence or use 'assertQueue' via the raw channel if needed; createQueue is idempotent for same options.
Use a limited set of fixed delay values or implement your own delay mechanism.
Use a flag or remove old listeners before adding new ones.
Update Node to >=10.0.0 if using RPC streams.
Use `const { Rabbit } = require('rabbit-queue');` or `import { Rabbit } from 'rabbit-queue';`Ensure queue arguments match existing queue or delete it.
Increase timeout, ensure consumer is running and replies correctly.