node-azure-queue-client
A simple to use client for azure queues. The module allows to listen on an azure queue and
when a job comes into the queue it will be processed. The most important features are:
- simple to listen a queue
- simple to enqueue jobs
- simple to delay jobs
- prepared for job routing
- support for wrapped xml from Azure Scheduler
- listening on multiple queues supported
Install
npm install azure-queue-client --save
Sample
var qName = '<<YOURQUEUENAME>>';
var qStorageAccount = '<<YOURACCOUNTNAME>>';
var qStorageSecret = '<<YOURACCOUNTSECRET>>';
var qPolling = 2;
var azureQueueClient = new require('azure-queue-client');
var queueListener = new azureQueueClient.AzureQueueListener();
queueListener.onMessage(function(message) {
console.log('Message received: ' + JSON.stringify(message));
return queueListener.done();
});
queueListener.listen(qName, qStorageAccount, qStorageSecret, qPolling, null);