ezq

0.0.1 • Public • Published

ezq - a simple but extensible queue interface for node

the goal of this module is to provide a generic interface to queues so that:

  • a simple app can use in-memory queues to reliably process tasks
  • a more sophisticated app can use external queue tools like rabbit or redis to separate producers and consumers

currently support:

  • rabbitmq (single or multiple processes)
  • in-memory (single process only)

simple use:

var q = require('ezq');
q.use(q.memory).then(function() {

  q.work('jobs', function(job, next) {
      // process job
      next();
  });

  q.add('jobs', {key: value});

});

Readme

Keywords

none

Package Sidebar

Install

npm i ezq

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

7.03 kB

Total Files

10

Last publish

Collaborators

  • xoxco