Queue Manager for Bull that reduces Redis connections by sharing a single client and subscriber across all queues. Version 2.0.1 is current. It wraps Bull queues to limit connections; each Bull queue normally creates 3 Redis connections, leading to thousands. This manager shares connections, solving that scaling problem. Alternative to managing Bull instances directly.
npm install bull-qmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a QueueManager, enqueues a job, processes it, and shuts down cleanly.
Use separate QueueManager instances for different Redis configurations.
Call manager.shutdown() only after all queue processing is complete.
Use manager.createQueue(name, options) to set queue-specific options before enqueueing.
Ensure Redis is running and pass correct connection details to QueueManager constructor.
Initialize with an object containing redis connection info: new QueueManager({ redis: { host: '...' } }).