Technical Glossary

Blue-Green Deployment

Definition: Deployment strategy using two identical production environments to achieve zero-downtime deployments and instant rollback capability.

— Source: NERVICO, Product Development Consultancy

What is Blue-Green Deployment

Blue-green deployment is a release strategy that maintains two identical production environments, called “blue” and “green.” At any time, one environment serves live traffic while the other remains idle or is prepared with the new version. Switching between environments is done through a load balancer that redirects traffic instantly.

This strategy eliminates downtime during deployments and provides an immediate rollback mechanism.

How it works

The “blue” environment is serving production traffic with the current version. The team deploys the new version to the “green” environment, which is identical in infrastructure. Validation tests (smoke tests) run against the green environment. When everything is verified, the load balancer switches traffic from blue to green in a matter of seconds. If a problem is detected, traffic is redirected back to blue instantly.

The previous environment (blue) remains available for a period as backup, and is later recycled for the next deployment, reversing the roles.

Why it matters

For businesses where downtime has a direct cost in revenue or reputation, blue-green deployment is a proven solution. It eliminates the risk window typical of traditional deployments, where the application may remain in an inconsistent state during the update.

Practical example

An online payment platform needs to update its processing engine. With blue-green deployment, the team deploys the new version to the green environment while blue continues processing transactions. After verifying that green correctly processes test transactions, the load balancer switches traffic. The entire process happens without any user experiencing interruption. If the new version has errors, switching back to blue takes less than a minute.

Need help with product development?

We help you accelerate your development with cutting-edge technology and best practices.