Azure Function with Event Hub Trigger - Blue Green Deployment

Kamal Sivalingam 21 Reputation points
2021-10-19T16:40:08.793+00:00

Hello,

We have been using blue green deployment for both our API and Web applications. We are also using the same model for Azure Functions that has Event Hub trigger. Recently noticed that we have both Standby and Production function app consuming events from Event Hub and thus causing epoch related error "new receiver 'nil' with higher epoch is created".

We are planning to stop the standby slot right after swap step to avoid this issue. Is there a better standard way to deploy Azure Functions with Event Hub trigger?

Thanks for your time and help.

Kamal

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

Accepted answer
  1. MughundhanRaveendran-MSFT 12,431 Reputation points
    2021-10-20T12:04:11.477+00:00

    @Kamal Sivalingam ,

    Thanks for reaching out here.

    It appears that you are already using the deployment slots which is recommended approach when you have multiple environments. However the deployment method will not make any difference for this scenario.

    The "new receiver 'nil' with higher epoch is created" errors are to be expected because of how the Event Hub Trigger works. This behavior is absolutely normal. I would request you to go through this stackoverflow article which has more details about this error

    In latest stable versions of the Microsoft.Azure.WebJobs.Extensions.EventHubs SDK, this warning should just be informational.

    https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.EventHubs

    Feel free to reach out to me if you have any further queries.

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


1 additional answer

Sort by: Most helpful
  1. Kamal Sivalingam 21 Reputation points
    2021-10-25T13:18:27.787+00:00
    0 comments No comments