Jeppe
Jeppe

Reputation: 1563

Azure service bus client in timer triggered azure function

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

Answers (1)

Arunprabhu
Arunprabhu

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

Related Questions