Simple in-memory job queue for Node.js (version 1.0.3, last updated 2018). It supports concurrent read/writes, retry mechanisms, parallel and series processing based on consumer priority, multiple consumers per topic, and topic-wise job distribution. Unlike Redis-backed queues (Bull, Bee), it has zero external dependencies and runs entirely in-process with no persistence. Key differentiators: consumer priority scheduling (lower priority numbers run first and in parallel), built-in retry, and promise-based API.
npm install in-memory-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: configure queue, create topic, push message, create consumer with handler.
Ensure setQueueConfiguration(size, maxRetry) size is large enough for your workload.
Use Bluebird for compatibility or test with native Promise.
Always call JSON.stringify(payload) before passing to createMessage.
Run `npm install in-memory-queue` then `const imqueue = require('in-memory-queue');`Log the msg object to inspect available methods; getValue is correct per docs.