CI/CD · Ship safely, repeatedly

How do canary deployments reduce risk?

MediumcanarydeploymentobservabilityUpdated Oct 2026
Quiz this track

Short answer

A canary sends a small share of traffic to the new version and compares its health with the stable version. If error rates or latency degrade, traffic is shifted back before most users are affected.

The value of a canary depends on the metrics used to judge it. Error rate, latency, saturation and a small number of business signals should be compared between the canary and the baseline over a meaningful window.

  • Start with a small traffic share, often 1 to 10 percent
  • Compare canary and baseline metrics, not just absolute thresholds
  • Automate the promotion or abort decision so it does not depend on someone watching a dashboard
  • Ensure the canary receives representative traffic and dependencies
  • Keep the previous version ready for an immediate traffic shift
yaml
canary:
  baseline: checkout-v1
  candidate: checkout-v2
  steps:
    - weight: 5
      analysis_minutes: 10
    - weight: 25
      analysis_minutes: 20
    - weight: 100
A canary without traffic separation or comparison metrics is just a slow rolling deployment. If low traffic means the canary sees a handful of requests, extend the window or choose a different strategy.

Follow-ups you should expect

Interviewers use these to check whether the first answer was understanding or memorisation.

  1. 1Which metrics would you compare during a canary?
  2. 2How do you handle low-traffic services?
  3. 3What is automated canary analysis?
  4. 4How does a canary interact with feature flags?

Say it in the interview

A canary limits exposure by sending a small share of traffic to the new version while the old version serves the rest. I compare error rate, latency, saturation and key business signals between the two, then promote gradually or abort. The decision should be automated so it scales beyond one careful engineer. For low-traffic services I extend the window or use synthetic checks, because a tiny sample proves very little.

Use this as a model, not a script. Saying it in your own words is what makes it survive follow-up pressure.

Related questions

Reading is step one

Now say it out loud.

Understanding an answer and delivering it under pressure are different skills. Rehearse this topic in a live CI/CD mock interview and get scored feedback on depth, clarity and confidence.