Using Deployment Slots with Event Hub Integrated App Services

CareyBoldenow 96 Reputation points

We have several Java Spring Boot based App Services that are solely integrated with Event Hub to publish and/or consume events. We would like to leverage Deployment Slots to do some level of Blue/Green deployments with these apps, but given the nuances of event driven architecture (e.g. no HTTP, how to maintain consumer group integrity, etc), this is proving to be a bit challenging. I have seen this link which discusses how this could potentially be done with Azure Functions that are integrated with Event Hub:, but this solution assumes you are using App Settings to configure things such as consumer groups. In our case, we are using App Configuration for all our application configuration and before we look to move some app properties back to App Settings (which I would prefer not to do), I just wanted to see if any of you have solved this challenge of using Deployment Slots with App Services that are integrated with Event Hub.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
600 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,399 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 27,031 Reputation points Microsoft Employee

    Hi @CareyBoldenow ,

    Have looked into using feature flag management between your Blue/Green deployment slots? This tutorial goes over how to implement for a Java Spring Boot app. Another option you could leverage is labeling your app config. Personally, I've used it to switch between a production and test service bus. I can't think of a reason why that wouldn't work for event hub.

0 additional answers

Sort by: Most helpful