A simple Disque client for Node.js and io.js.
Currently under development, but it's already usable and useful.
var disque = ;var client = disque;client;// Meanwhile in a parallel universeclient;
If you need to use authentication, pass in the
var client = disque;
Automatic connection to the most convenient node in the cluster.
While consuming jobs with
disque.getjob, the client will periodically check which node is producing the most jobs. In order to consume these more efficiently and to minimize message exchange in the cluster, the client will automatically reconnect to this node.
The frequency of this check is configurable via the
Note that we limit this automatic reconnection to the initial node list you provide on connect.
- Make all methods optionally return a Promise.
- Keep a stats counter by queue name?
Originally forked from Cyril David's redic.js.