Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

azure service bus queue read bulk message using nodejs

I want to fetch messages in bulk from azure service bus queues using node js azure package, Now i am able to fetch message using set-interval.is there any other way to fetch messages in bulk.

like image 317
Prakash R Avatar asked May 31 '18 11:05

Prakash R


People also ask

How do I read messages from Azure Service Bus queue?

Overview of application Create Azure Service Bus Queue using Azure Portal. Create HTTP trigger Azure Function to send the message into Queue. Create a Service Bus Queue trigger Azure function to read a message from Queue.

How do I send a message to Azure Service Bus queue?

Add code to send messages to the queue Replace <NAMESPACE CONNECTION STRING> with the connection string to your Service Bus namespace. And, replace <QUEUE NAME> with the name of the queue. Add a method named sendMessage in the class to send one message to the queue.

Does Azure Service Bus support batch processing?

Batch processing feature of Azure service bus helps to add and retrieve messages in batch instead of one by one message. This extends help to the systems that have to process bulk messages.


1 Answers

The Service Bus REST API does not currently support receiving batches, so there is not a valid implementation in this library. Part of the reason is that the REST implementation is not particularly performant, and it is much better to use AMQP. If you are looking for something with better performance, I would take a look at this library:

https://github.com/noodlefrenzy/node-amqp10

Related issue on github

Also you can try this out.

like image 55
Sajeetharan Avatar answered Sep 22 '22 02:09

Sajeetharan