SimpleWorker is a straightforward priority job queue library for Node.js (v3.0.1). It uses Redis as a backend for fast, reliable job processing with customizable concurrency and retry logic. Unlike full-featured queue systems like Bull or Bee-Queue, SimpleWorker focuses on minimal setup and a clean API. The library is actively maintained with periodic updates. Key differentiators include a simple configuration, priority support, and worker-level concurrency control. However, documentation is sparse, and the main usage guidance points to a code example.
npm install simple-workerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup of a SimpleWorker with Redis client, job processing, event listeners, and job addition.
Use a separate Redis instance for testing.
Use SimpleWorker constructor with Redis client and queue name.
Switch to ioredis or update to redis v4.
Ensure job data is plain objects/arrays with serializable values.
Use async functions in worker.process().
Ensure job.add() receives a plain object with serializable values.
Upgrade to v3 API: import SimpleWorker and use new SimpleWorker() constructor.
Pass a valid Redis client instance to the SimpleWorker constructor.
Run npm install redis.