i'm using azure function and eventhub trigger so if there is any exception comes during the processing the event then offset commit or checkpointing will handled by azure function runtime or it is handled manually.

Akshit 90 Reputation points
2023-06-27T10:07:53.81+00:00

i'm using azure function and eventhub trigger so if there is any exception comes during the processing the event then offset commit or checkpointing will be handled by azure function runtime or we have to handled it manually. (if exception is throws then the event will reprocess or it will be skip). just need to know it will reprocess or not.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,257 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
663 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,381 Reputation points
    2023-06-27T20:56:04.35+00:00

    87592231 Thanks for posting your question in Microsoft Q&A. Azure Function automatically handles checkpointing to storage account and the behavior is even if any exceptions occur during the execution, the pointer would still be progressed, and you may lose the messages. However, if there is a retry policy, then pointer will not be progressed until either successful completion or the maximum number of retries is reached (refer Retry policies).

    Check out How Azure Functions consumes Event Hubs events doc for more info regarding this and suggest you follow the recommendations described in the doc (try/catch along with retry policy).

    I hope this helps and feel free to reach out if any questions.


    If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.