ewd-qoper8 is a high-performance, memory-based message queue for Node.js, currently at version 3.18.1. It manages a pool of persistent child worker processes, each handling one message at a time, to prevent concurrent processing. The queue dispatches JSON messages to available workers, scaling worker count based on demand. Unlike general-purpose queues like Bull or Kue, ewd-qoper8 is designed for minimal overhead and is integrated with the ewd.js ecosystem. It supports customisation of master/worker logic and database connections. Release cadence is low; last stable release was in 2020.
npm install ewd-qoper8No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a QOper8 instance with a worker pool, starts it, and adds a message to the queue.
Update worker handler to use done callback: `done(result)` instead of `finish(result)`.
Replace `maxPoolSize` with `maxPool` in constructor options.
Ensure every message object has a `type` field: `{ type: 'myType', ... }`.Use an absolute path or path.resolve(__dirname, 'worker.js') for workerModule.
Design workers to be stateless or use an external storage (e.g., database) for shared state.
Use an absolute path: `workerModule: path.resolve(__dirname, 'worker.js')`
Add a `type` property to the message object: `q.addToQueue({ type: 'task', ... })`Use `const { QOper8 } = require('ewd-qoper8');`Export a function: `module.exports = function(message, done) { ... }`