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.
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.
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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With