CI/CD & GitHub Actions (50 Qs)•Part 3: Enterprise Scale, Compliance & Production Hardening (Senior / Staff)
How do you orchestrate Blue-Green and Canary Deployments in CI/CD?
senior LevelMost AskedKubernetesCI/CD & DevOps
In Simple Words:
- Blue-Green: Deploy the new release to an inactive environment ("Green"). Run health checks. Once validated, swap traffic at the Load Balancer (or DNS) from "Blue" to "Green" with zero downtime.
- Canary: Shift 5% of production traffic to the new version. Monitor error rates, latency (p99), and crash logs via Prometheus/Datadog for 15 minutes. If metrics remain healthy, progressively increment to 25%, 50%, and 100%; if errors spike, instantly roll back.