RSMQ is a lightweight FIFO message queue for Node.js that requires only a Redis server (no dedicated queue server). Version 0.12.4 (stable) runs on Node >=6 and Redis >=2.6 (due to Lua scripts). It guarantees message delivery to exactly one consumer within a configurable visibility timeout. The core library is ~500 lines of JavaScript and ships TypeScript type definitions. Optional promise-based API via *Async method suffixes. Key differentiator vs Bull or Kue: no dependencies beyond Redis, minimal API surface, and very high throughput (10k+ messages/sec). Releases are infrequent; maintained by smrchy.
npm install rsmqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This shows how to instantiate RSMQ, create a queue, send a message, receive it, and delete it using callback-based API.
Replace `redisClient` with `client` in constructor options.
Use `Async`-suffixed methods and `await` with try/catch instead of callbacks.
Check queue existence first with `getQueueAttributes` if you don't want to overwrite parameters.
Upgrade Redis to at least 2.6, preferably 3.x or later.
Create your own Redis client and pass it via `client` option.
Use `import RedisSMQ from 'rsmq'` (default import).
Start Redis server or check `host`/`port` configuration.
Ensure all method parameters are strings or numbers; convert objects with JSON.stringify.
Create queue first with `createQueue` or use `listQueues` to check available queues.