Antimetal
BlogCareers
Sign InBook a Demo
BlogCareersSign InBook a Demo
Company
  • Careers
  • Blog
Resources
  • Docs
  • Guides
  • Glossary
  • Integrations
Compliance
  • Trust Center
  • Terms
  • Privacy
All Systems NormalBuilt in NYC

The Autonomous System for Production
SOC 2, GDPR, and HIPAA compliant.

GlossaryDeployment

What is Canary Deployment?

A canary deployment releases a new version to a small fraction of traffic first, monitors it against the existing version, and expands only if the metrics hold. It limits how many users a regression can affect.

Deployment2 min

Table of contents

  1. How canary deployment works
  2. Why canary deployment works
  3. Limits
  4. Canary vs feature flags
  5. Key takeaways
  6. Frequently asked
On this page
  1. How canary deployment works
  2. Why canary deployment works
  3. Limits
  4. Canary vs feature flags
  5. Key takeaways
  6. Frequently asked

#How canary deployment works

The new version deploys alongside the current one and receives a small traffic share, often one to five percent. Both versions are monitored on the same metrics: error rate, latency percentiles, and business indicators such as conversion.

If the canary performs comparably, traffic share increases in stages until the new version handles all of it. If metrics degrade, traffic returns to the stable version and the canary is removed. The comparison against a concurrently running baseline is what makes the signal trustworthy, since both versions face the same conditions.

#Why canary deployment works

It catches problems that pre-production testing structurally cannot.

  • Real conditions: production traffic, data, and dependencies rather than approximations.
  • Bounded exposure: a defect affects a small percentage rather than everyone.
  • Statistical comparison: two versions under identical conditions isolate the change.
  • Progressive confidence: risk decreases at each stage rather than being accepted at once.

#Limits

Canaries need enough traffic to produce a signal. One percent of a low volume service may be a handful of requests per hour, from which nothing statistically meaningful can be concluded.

They also miss slow failures. Memory leaks, gradual resource exhaustion, and defects triggered by rare inputs may not appear during a canary window, and a canary that passes is evidence of no fast regression rather than proof of correctness.

#Canary vs feature flags

Canary controls exposure at the deployment level: a percentage of traffic reaches the new build. It is infrastructure managed and applies to everything in the release.

Feature flags control exposure at the code level: a specific behavior is enabled for a chosen set of users, independent of which build is running. Flags are more precise and require the code to be written for them. The two compose well, with canary de risking the deployment itself and flags de risking individual behaviors inside it.

#Key takeaways

  • A small traffic share runs the new version while a concurrently running baseline provides the comparison.
  • It catches problems that pre-production testing structurally cannot, because conditions are real.
  • Low traffic services may not generate a statistically meaningful signal at small percentages.
  • Slow failures such as memory leaks often survive a canary window undetected.

#Frequently asked

What percentage should a canary start at?

Enough traffic to produce signal within a reasonable window, commonly one to five percent for high volume services and higher for low volume ones.

Which metrics should gate promotion?

Error rate and latency percentiles at minimum, plus at least one business metric. Technical metrics can look fine while conversion drops.

How long should each stage run?

Long enough to cover normal traffic variation, typically at least fifteen to thirty minutes per stage and longer before the final full rollout.

Related terms

  • Blue-Green Deployment

    Deployment
    2 min

    Blue-green deployment runs two identical production environments and switches traffic between them.

  • Blast Radius

    Incident management
    2 min

    Blast radius is the extent of what a failure or change can affect.

  • Rollback

    Deployment
    2 min

    A rollback returns a system to a previous known good state after a change causes problems.

  • CI/CD

    Deployment
    2 min

    CI/CD is continuous integration and continuous delivery or deployment: the automated pipeline that takes a code change from commit through build, test,…

PreviousBring Your Own Cloud (BYOC)NextCausal Search Engine