Glossary termTechnique

Canary Release

Also known as: Canary deployment

Deployment technique that releases a new software version to a small subset of users or servers first, expanding only if it behaves well.

A canary release limits the impact of a faulty change by exposing it to a small portion of production traffic before everyone else. A new version might first receive one percent of requests, or run on a handful of servers, while the rest of the fleet continues on the old version. Engineers or automated systems compare error rates, latency and other signals between the two groups. If the canary looks healthy, its share grows in stages until it handles all traffic; if not, it is rolled back with only a few users affected.

The name refers to the canaries once carried into coal mines, whose distress warned miners of dangerous gases before people were harmed. In practice, canary releases are implemented by load balancers, service meshes or deployment tools that split traffic by percentage, region, user group or request attribute. Some organizations use automated canary analysis, which applies statistical comparisons to decide whether to proceed. The broader practice of releasing changes gradually under close monitoring is sometimes called progressive delivery.

Canary releases complement continuous delivery by making frequent releases safer, and they depend on good observability, since a canary is only useful if problems in the small group can be detected quickly. Compared with Blue-Green deployment, they require two versions to run side by side for longer, so changes to shared data must be compatible with both. They differ from A/B testing, which also splits traffic but aims to measure user behavior between variants rather than to catch defects. Feature flags can achieve similar gradual exposure inside a single deployed version.

Key points

  • A canary release sends a small share of traffic to a new version and widens it only if metrics stay healthy.
  • The name comes from canaries used to detect dangerous gases in coal mines.
  • Effective canaries require monitoring sensitive enough to spot problems in a small group of users.
  • Canary releases aim to catch defects, while A/B tests measure differences in user behavior.

Related entries

Glossary term

Release technique that runs two identical production environments and switches user traffic from the old version to the new one in a single step.

Glossary term

Feature Flag

DevOpsProgramming

Configuration switch in software that turns functionality on or off at runtime, allowing code to be deployed without immediately releasing it to users.

Glossary term

Software engineering approach in which every change is built, tested and prepared so that it can be released to production safely at any time.

Glossary term

Degree to which a system's internal state can be inferred from its outputs, and the practices and tools that make software systems understandable.

Glossary term

Infrastructure layer that manages communication between microservices, handling routing, encryption, retries and telemetry outside application code.

Glossary term

Amount of unreliability a service may tolerate in a period, defined as the gap between its service level objective and perfect reliability.

Glossary term

Device or software that distributes incoming network traffic across multiple servers to improve capacity, responsiveness and availability.

Featured in guides