Explain each strategy you used, with why you chose it. 1. Rolling deployment - Instances are updated gradually (a few at a time); the load balancer only routes to healthy instances. - Default in Kubernetes Deployments and App Service scale-out. - Pros: no extra infrastructure, no downtime. Cons: old and new versions run together for a while, so APIs and database changes must be backward compatible; rollback is another rolling update. 2. Blue-green deployment - Two identical environments: blue (live) and green (new version). Deploy and test green, then switch traffic all at once. - In Azure App Service this is deployment slots: deploy to staging, warm up, swap. - Pros: instant switch and instant rollback (switch back). Cons: double resources during the release; database changes must work for both. 3. Canary release - Route a small percentage of traffic (1%, 5%, 25%...) to the new version, monitor error rate and latency, then increase gradually. - Tools: Azure App Service traffic routing, Azure Front Door weights, Kubernetes with Argo Rollouts, Flagger or a service mesh. - Pros: limits blast radius, real production validation. Cons: needs good monitoring and automation. 4. Feature flags (dark launching) - Deploy code with new features turned off, then enable them for specific users, tenants or percentages. - Separates deployment from release; instant kill switch. 5. Recreate (big bang) - Stop the old version, start the new one. Simple, but causes downtime — acceptable only for internal tools or maintenance windows. 6. A/B testing and shadow traffic - A/B: different versions for different user groups to compare business metrics. - Shadow: copy real traffic to the new version without returning its responses, to test behaviour safely. Example answer "For our APIs on App Service we used blue-green with staging slots and auto-swap after smoke tests. Risky features went out behind feature flags in Azure App Configuration, enabled first for internal users. On AKS we used rolling updates with readiness probes, and canary releases for a payment service using Argo Rollouts. Database migrations were always backward compatible so any version could run against the current schema."
Ravindra Wadile · · 0 likes