What are blue-green deployments and canary releases?
Answer
Blue-green deployment maintains two identical production environments (blue and green). The new version is deployed to the inactive environment (e.g., green), fully tested there, and then the load balancer switches 100% of traffic to green instantly. If a problem occurs, rollback is instant — just switch back to blue. Canary release gradually shifts a percentage of traffic to the new version — for example, 1% → 5% → 25% → 100% — while monitoring error rates and latency. If metrics degrade, the canary is aborted and all traffic returns to the old version. Canary releases reduce blast radius: only a small percentage of users experience potential bugs before you commit to a full rollout. Both strategies enable zero-downtime deployments.
Previous
What features does a service mesh like Istio provide?
Next
What is the sidecar pattern in microservices?
More Microservices Architecture Questions
View all →- Intermediate What is event-driven architecture and how does it apply to microservices?
- Intermediate What is the Saga pattern in microservices?
- Intermediate What is CQRS (Command Query Responsibility Segregation)?
- Intermediate What is event sourcing in microservices?
- Intermediate What is the Circuit Breaker pattern?