🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

azure-queue-client

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-queue-client

An azure queue client for node.js which allows to consume jobs

0.0.1
Source
npm
Version published
Weekly downloads
7
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • prepared for job routing
  • support for wrapped xml from Azure Scheduler

Sample

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

// load the modules
var queueListener   = require('../lib/azure-queue-listener.js');
var q               = require("Q");

// establish a message handler
queueListener.onMessage(function(message) {
    var defer = q.defer();

    console.log('Message received: ' + JSON.stringify(message));
    defer.resolve();

    return defer.promise;
});

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

Keywords

azure

FAQs

Package last updated on 17 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts