0.7.1 • Published 6 years ago

azure-queue-client v0.7.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

// config with your settings
var qName               = '<<YOURQUEUENAME>>';
var qStorageAccount     = '<<YOURACCOUNTNAME>>';
var qStorageSecret      = '<<YOURACCOUNTSECRET>>';
var qPolling            = 2;

// load the module
var azureQueueClient = new require('azure-queue-client');

// create the listener
var queueListener = new azureQueueClient.AzureQueueListener();

// establish a message handler
queueListener.onMessage(function(message) {

    // log something
    console.log('Message received: ' + JSON.stringify(message));

    // job is finished without errors
    return queueListener.done();
});

// start the listening
queueListener.listen(qName, qStorageAccount, qStorageSecret, qPolling, null);
0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

7 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.0.1

9 years ago