[QUERY] Error Handling in an Event Hub consumer - Best Practices #29646
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Event Hubs
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Messaging.EventHubs 5.7.0
Query/Question
I am wondering how I should go about handling failures in an Event Hub consumer. In this issue (18344) on the Java SDK repository James explains that Event Hubs don't have the concept of a dead-letter queue because messages are not destroyed upon consumption. Therefore, the consumer can then independently keep track of failed messages and retry them whenever it wishes.
What would a realistic best practice be? I imagine everyone who ever had to implement an Event Hub consumer has encountered this same question, and had to invent their own solution. The most basic solution I can think of is to leverage the already-existing checkpoint storage account and create 2 Azure queues in it.
My questions are:
Environment
No response
The text was updated successfully, but these errors were encountered: