QA
Intermediate LevelSystem Design & Architecture

Compare Blue-Green Deployments vs Canary Deployments vs Rolling Releases.

❓ Interview Prompt: Compare Deployment Strategies: Blue-Green (instant router cutover), Canary (percentage traffic splitting), and Rolling Updates (instance-by-instance replacement).

Evaluating deployment release strategies:

| Strategy | Traffic Routing Mechanism | Rollback Speed | Hardware Cost |

|---|---|---|---|

| Blue-Green | Router switches 100% traffic from Blue to Green | Instant (Switch router back) | High (200% capacity needed) |

| Canary | Route 5% traffic to new version; gradually scale to 100% | Instant (Route 100% to stable) | Low to Moderate |

| Rolling Update | Replaces old instances with new instances 1-by-1 | Slow (Rollback instances 1-by-1) | Low (100% capacity) |

Code Implementation Example

markdown
Canary Traffic Splitting Architecture:

[Ingress Router] ──(95% Traffic)──> [Stable Version (v1.0)]
                 └──( 5% Traffic)──> [Canary Version (v2.0)]
πŸ’‘Canary deployment routing 5% traffic to a new version.
🎯 Interview Key Takeaway

Use Canary deployments to validate new software releases with a small traffic sample before full rollout.

#System Design#Canary Deployment#Blue-Green#DevOps#Intermediate
Back to all System Design & Architecture Questions→

More System Design & Architecture Interview Questions

Beginner LevelSystem Design & Architecture

Explain the CAP Theorem and PACELC Theorem with real-world database examples.

Beginner LevelSystem Design & Architecture

What is Vertical Scaling (Scale Up) vs Horizontal Scaling (Scale Out)?

Beginner LevelSystem Design & Architecture

How do Load Balancers distribute traffic (Round Robin, Least Connections, IP Hash)?