Interview Prep/SRE & Reliability/Release Engineering & Reliability Patterns

Blue-green vs canary: when do you choose each?

IntermediateConceptRelease Engineering & Reliability Patterns
Answer
  • Blue-green: run the full new version alongside the old, switch all traffic at once, keep the old one for instant rollback. Good for simple stacks and when mixing versions is hard; costs double capacity, and the switch exposes 100% of users at once.
  • Canary: shift traffic gradually with analysis. Smaller blast radius and real-traffic validation, but needs traffic splitting and both versions must coexist (compatible APIs and schemas).

Many teams use canary for stateless services and blue-green for things like database-heavy or batch systems.

All SRE & Reliability questions

More on Release Engineering & Reliability Patterns