Blue-Green — two identical environments. Canary — gradual rollout.
Blue-Green Deployment:
Blue-Green:
Before: [Blue (v1)] ← Traffic
[Green (v2)]
After: [Blue (v1)]
[Green (v2)] ← Traffic
(Instant switch)
Canary Deployment:
Canary:
1. Deploy to 5% of users
2. Monitor metrics
3. If OK → 25% → 50% → 100%
4. If issues → rollback
(Gradual rollout)
Key differences: