Reputation: 1563
I have a service bus where some of messages must be handled in the correct order, which is not always the order they were added to the service bus.
I am receiving the messages in an Azure function and I basically need batch functionality, which I know is not available.
Question I would like to know if I can make a timer triggered function that empties the service bus each time it is called?
Upvotes: 0
Views: 1021
Reputation: 1494
Yes you can purge the messages inside a Service Bus Queue whenever the Function is triggered.
You can receive messages in Receive and Delete mode to do that. Check here for samples.
Upvotes: 1