Read Azure Service Bus Queue

I'm just trying to figure out how best to receive messages as quickly as possible from the Azure Service Bus queue.

I was shocked that it was incorrect to subscribe to the notification queue and that I would need to be interviewed. (if I'm not mistaken, in this case the documentation is terrible).

I have a lengthy survey, but checking one message every 60 seconds looks like it would cost about £ 900 a month (again, if I didn't understand it). And if I add an extra / second service for the survey, it will double.

So I'm wondering what is the best / most economical way to do this.

Essentially, I just want to get the message from the queue, search the API for some internally stored data (perhaps using hybrid services?), And then maybe send the message back to another queue with some additional information.

I looked at the working roles (?) - is this something that could be done?

I should mention that I looked at this using node.js.

+1
source share
2 answers

Check out these videos with Scott Hanselman and Mark Simm on the Azure Queues. This is C #, but you get the idea.

https://channel9.msdn.com/Search?term=azure%20queues%20simms#ch9Search

Includes:

  • Storage Queues and Service Bus Queues
  • Catching messages in bulk and alternately (short and chat)
  • ( )
  • ,

, , ( ), - , Azure.

Webjobs SDK Azure ( ).

( IaaS PaaS FaaS - Azure Functions - ).

Azure , Node. .

, , VNET, , ( !). Azure , - go.

https://azure.microsoft.com/en-us/documentation/articles/web-sites-hybrid-connection-get-started/ ( - Windows, . Windows, - ).

+2

Azure ServiceBus Queue, Azure Webjob.

ServiceBusTrigger, Azure ServiceBus.

node.js Azure Function. SDK webjob node.js:

, Azure Function nodejs:

module.exports = function(context, myQueueItem) {
    context.log('Node.js ServiceBus queue trigger function processed message', myQueueItem);
    context.done();
};
+2

Source: https://habr.com/ru/post/1665556/


All Articles