Glossary

Blue-Green Deployment

Blue-green deployment is a release technique that runs two identical production environments and switches all traffic from the old version to the new one.

Blue-Green Deployment

What Is Blue-Green Deployment?

Blue-green deployment is a release technique that runs two identical production environments and switches all user traffic from one to the other. Blue is the environment serving users now. Green receives the new version, is tested, and then takes over the traffic in a single switch.

Why Blue-Green Deployment Matters

A deployment that updates servers in place leaves no quick way back. If the new version fails, the team has to redeploy the old one while users see errors. With blue-green, the old version is still running. Rollback is the same router switch in the opposite direction and takes seconds instead of a redeploy.

How Blue-Green Deployment Works

The steps are:

  1. Blue serves 100% of production traffic.
  2. The pipeline deploys the new version to green, which is idle.
  3. Smoke tests and health checks run against green.
  4. The load balancer, DNS record or service router is switched so that green receives all traffic.
  5. Blue stays up for a period as the rollback target, then becomes the idle environment for the next release.

Two things need care. The first is cost, because the technique requires double the production capacity during the release. The second is the database: both versions share it, so schema changes must be backward compatible until blue is retired.

Blue-green deployment belongs to the deploy and release stage of the software delivery lifecycle and is usually automated in the CD pipeline.

Blue-Green Deployment vs Canary Release

Blue-green switches all users at once between two full environments. A canary release sends a small share of users, for example 5%, to the new version and raises the share step by step. Blue-green gives the fastest rollback. Canary limits how many users see a bad release.

How Oobeya Uses Blue-Green Deployment

Oobeya does not manage deployments or know which release technique a team uses. It measures the result. The Deployments (DORA) tab under Analytics > Coding, Review & Delivery calculates deployment frequency, change failure rate and time to restore from the pipelines marked as production. A team that moves to blue-green can read those three numbers before and after the change to see whether failed deployments became rarer and recovery faster.

Frequently Asked Questions

What is the main advantage of blue-green deployment?

The main advantage is near-instant rollback with no downtime, because the previous version keeps running until the new one is proven.

What is the main drawback of blue-green deployment?

It needs two full production environments during a release, and database changes must work with both versions at once.

Related Pages

Move from definition to product context with the most relevant Oobeya pages for this term.

Turn Engineering Terms Into Actionable Visibility
Move from definitions to real delivery, quality, workflow, and AI-assisted development signals.
Talk to our experts and see how Oobeya connects the metrics behind your engineering organization.