I have an Azure Function which has Event Hub binding trigger and it receives batch of EventData. I also have FixedDelayRetry for enabling retry for unhandled exceptions (done on purpose).
If one event fails during processing it inside a batch then the whole batch is getting retry again which obviously create an issue of duplicates
So how can I identify the events which have been successfully processed?
Is there a good pattern to store event sequence number and the status to check it before processing it? and how to retrieve those information as Azure functions are stateless.