What is a canary release, and how does it reduce the blast radius of a risky Node.js deployment?
Short answer
A canary release routes a small percentage of traffic to a new version while the majority hits the stable version -- key metrics are monitored closely, and traffic is gradually shifted further if healthy, or rolled back immediately if problems appear, limiting exposure to a…
Advertisement
AModel answer
A canary release routes a small percentage of traffic to a new version while the majority hits the stable version -- key metrics are monitored closely, and traffic is gradually shifted further if healthy, or rolled back immediately if problems appear, limiting exposure to a small user subset.
http:
route:
- destination: { host: myapp, subset: stable }
weight: 95
- destination: { host: myapp, subset: canary }
weight: 5Real-world example
A social platform rolls out a new algorithm to 5% of users first, catching a subtle bug affecting a specific segment before it impacts everyone.
Likely follow-ups
- How does canary deployment compare to feature flags as a way to control exposure?
- What metrics should automatically trigger rolling back a canary before a human notices?
Related topics