Canary Release vs Blue / Green

It is a deployment strategy used to minimize risk.

 Canary ReleaseBlue / Green
DefinitionA Canary Release is a deployment strategy used in software development to reduce the risk of introducing a new version by initially rolling it out to a small subset of users.It is a software deployment method that involves maintaining two identical production environments, with one environment (blue) running the current version of the application and the other (green) running the new version.
CategoriesDevOps, deployment, release, risksALM, CD, CI, DevOps, deployment

What is a Canary Release?

It is a deployment strategy used to minimize risk.

🐤

Definition

A Canary Release is a deployment strategy used in software development to reduce the risk of introducing a new version by initially rolling it out to a small subset of users.

📅

Origin

The name originates from miners who would carry a canary in a cage down coal mines. If toxic gases leaked into the mine, the canary would die before the miners..

🔍

Monitoring

The system is carefully monitored for issues, and if the new version performs well, it is gradually released to more users.

🔄

Rollback

If issues are detected, the release can be rolled back, and the old version reinstated for all users.

👥

Selection

Different strategies are used to select which users will be exposed to the new version, such as random sampling or selection based on demographics.

What is a Canary Release? →

What is Blue / Green deployment?

It is a software deployment method that involves maintaining two identical production environments.

🔄

Definition

It is a software deployment method that involves maintaining two identical production environments, with one environment (blue) running the current version of the application and the other (green) running the new version.

🚦

Traffic Switching

Only one environment is receiving live traffic at any given time, with all production traffic directed to it, while the inactive environment is used for testing and rolling out new changes.

🔁

Rollback

If issues arise with the new version, traffic can be instantly switched back to the previous live environment, minimizing downtime and risk.

🌐

Goal

The method aims to reduce downtime during deployments by instantly redirecting requests from one environment to the other.

What is Blue / Green deployment? →