Reputation: 1397
I have asked this q on the microsoft docs, was then asked instead to post on msdn social forums, who then said i should post here...
So, consider that i have an EventHub, & something happens / errors during working with that message, does the pointer moved on regardless, or is the message now 'lost' ?
I am currently working on a project whereby we have an Azure Function w/ Event Hub trigger, and if that functions errors (for whatever reason).. how should the message that was currently being worked with?
Do we manually move the pointer back?
Upvotes: 3
Views: 625
Reputation: 35154
Yes, Event Hubs are targeted at high throughput, so the default behavior is to ignore errors and move the pointer (checkpoint) further regardless.
The main workaround is basically catching exceptions and retrying / dead-lettering them manually.
Have a look at Reliable Event Processing in Azure Functions. It's a great article that covers the options available to you to avoid losing messages.
Upvotes: 3