Reputation: 23
How to handle exception in event hub
if event hub it self down
if event retention period over and if we want to send same event again
Any idea or hit how to handle this situations for event hub. Any sample code or settings help needed
Thanks in advance
Upvotes: 0
Views: 82
Reputation: 2034
Please take a look at this doc for exceptions and how to handle them. In general, client should retry transient exceptions. On the other hand, non-transient exceptions require manual intervention most of the times.
Azure Event Hubs provides a highly available stream processing service. For even higher availability I suggest you you to look at 'zone redundancy' and 'paired namespaces' features.
Unless it is a system requirement there is nothing wrong with sending the same message. Please note that retention period is a consumer side feature, it has no impact for producers.
Upvotes: 1