user1713059
user1713059

Reputation: 1529

Azure Service Bus - making sure the job is done

I send a message to ASB, some data (a long task) will start being processed, but the processing fails miserably (someone turns off the computer/out of memory/whatever). How should I handle this situation? Like putting the queue back on the bus? Do I need to create my own monitoring/requeueing unit?

Upvotes: 1

Views: 76

Answers (1)

Thomas
Thomas

Reputation: 29791

Azure ServiceBus has an internal retry policy. If a message fails to deliver, it will be send back to the queue automatically.

When creating a queue or a topic/subscription you can specify the MaxDeliveryCount.

Default value is 10. A message is automatically deadlettered after this number of deliveries.

Upvotes: 1

Related Questions