The Basic, Standard, and Enterprise plans will be deprecated starting from mid-March, 2025, with a 3 year retirement period. We recommend transitioning to Azure Container Apps. For more information, see the Azure Spring Apps retirement announcement.
This article applies to: ✅ Basic/Standard ✅ Enterprise
This article describes the zero downtime deployment support in Azure Spring Apps.
Achieving zero downtime deployments is a fundamental goal for mission-critical applications. Your application needs to be available even when new releases are rolled out during business hours. With zero downtime deployment support in Azure Spring Apps, you can complete the deployment process from start to finish without any workload interruptions.
Zero downtime with blue-green deployment strategy
You can achieve zero downtime with blue-green deployment strategies in Azure Spring Apps.
A blue-green deployment eliminates downtime by running two deployment versions, with only one of the deployments serving production traffic at any time. A blue-green deployment provides zero downtime by allowing you to switch to the other deployment version if something disrupts the live deployment.
When you perform a blue-green switch, Azure Spring Apps performs the following underlying operations:
If the Eureka client is enabled for the deployment, overrides and sets the Eureka registry status to UP for instances in the production deployment.
If the Eureka client is enabled for the deployment, overrides and sets the Eureka registry status to OUT_OF_SERVICE for instances in the staging deployment.
If a public endpoint is enabled for the app, updates ingress rules to route public traffic to instances in the production deployment.
Piezīme
For a blue-green deployment, you can achieve zero down time even for single-replica deployment.
Zero downtime with rolling update strategy
For a deployment with a replica number of two or higher, you can achieve zero downtime with a rolling update strategy from Azure Spring Apps. When you deploy a new version to an existing deployment, or restart a deployment, Azure Spring Apps uses underlying Kubernetes rolling updates to perform the update.
Rolling updates enable deployment updates to take place with zero downtime by incrementally updating instances with new instances. Your application continues to serve production traffic when performing a rolling update if the deployment replica number is two or higher. For more information, see Performing a Rolling Update.
Brīdinājums
For single-replica deployment, you might see downtime during the deployment update. To ensure application availability, we recommend that you deploy with at least two replicas for your production workload.
Pievienojieties meetup sērijai, lai kopā ar citiem izstrādātājiem un ekspertiem izveidotu mērogojamus AI risinājumus, kuru pamatā ir reālas lietošanas gadījumi.
In this module, you learn how to deploy a Spring Boot app to Azure Container Apps. You deploy a Spring Boot application to Azure Container Apps and maintain it using the built-in Java stack.