Blue-Green Deployment

Definition

Deployment strategy using two identical environments where you switch traffic from old version to new version instantly.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between Blue-Green Deployment and Canary Deployment?
Blue-green switches 100% of traffic from the old environment to the new one at once (after testing). Canary sends a small percentage of traffic to the new version first, then gradually increases it if everything looks good. Blue-green is a fast cutover; canary is a gradual rollout.
When should I use Blue-Green Deployment?
Use it when you need near-zero downtime releases and a simple rollback plan (switch traffic back). It works best when you can afford running two production-like environments and when your app can handle a quick cutover (for example, stateless services or systems with carefully managed database changes).
How much does Blue-Green Deployment cost?
The main cost is running duplicate capacity during the deployment window (compute, containers, databases if duplicated, and supporting services). You may also pay for load balancers, extra IPs, and CI/CD tooling. Costs are lowest when the “green” environment is only scaled up briefly for the cutover and validation, and highest when both environments run at full production size for long periods.

Category: software

Difficulty: advanced

Related Terms

See Also