NEW
Running two environments to switch traffic with minimal downtime during releases.
DESCRIPTION
Blue-green deployment keeps two production environments: Blue (current) and Green (new). After testing in Green, traffic is switched quickly, minimizing downtime and risk. If issues arise, rollback is simply switching back to Blue. The approach suits databases and services that can synchronize state. It simplifies release decisions and enables predictable cutovers for data and AI systems.
ALTERNATIVE DEFINITIONS
Martin Fowler
Blue-green deployment is a technique that reduces downtime and risk by running two identical production environments, called Blue and Green.
Emphasizes identical environments and risk reduction.
AWS
Blue/Green deployments let you deploy your application to a separate environment and then rapidly switch production traffic to the new environment.
Highlights separate environment and rapid traffic switching.
Microsoft Learn
Blue-green deployment uses two identical environments to reduce downtime by switching traffic between them during releases.
Focuses on downtime reduction through environment switching.
RELATED TERMS
Feature Flags Traffic Shifting Load Balancer Zero Downtime Deployment Deployment Pipeline Rollback A/B Testing Observability
COMPETING TERMS
RELATIONS
- Broader: Zero Downtime Deployment
KNOWLEDGE AREAS
Software Engineering MLOps Platform & Tooling Testing & Validation
TARGET AUDIENCE
DevOps Engineer Software Developer Cloud Architect MLOps Engineer
EXTERNAL SOURCES
- Wikipedia - Blue–green deployment
- Martin Fowler - Seminal explanation of technique
- AWS - AWS guidance for blue/green
- Microsoft Learn - Azure release strategies including blue/green
TOP QUESTIONS
When should Blue-Green Deployment be used?
Use it for releases needing minimal downtime and quick rollback, especially for services with state synchronization options.
Category: Requirements
What is the biggest misunderstanding about Blue-Green Deployment?
That it is expensive by default; cloud automation and shared infrastructure can make it cost-effective for critical systems.
Category: Misunderstanding
How do databases work in Blue-Green Deployment?
Use read replicas, migration strategies, or dual-write carefully to ensure schema compatibility and consistent data during cutover.
Category: Example
What are common mistakes with Blue-Green Deployment?
Neglecting data migrations, missing feature flag toggles, and inadequate testing of the Green environment risk failed cutovers.
Category: Mistakes
What risks exist in Blue-Green Deployment?
State divergence, configuration drift, and hidden performance issues can surface post-cutover if validation is insufficient.
Category: Risk
How is Blue-Green Deployment managed?
Automate provisioning, health checks, and traffic switching via load balancers; monitor and rollback rapidly if needed.
Category: Management
What alternatives compete with Blue-Green Deployment?
Canary Release and Rolling Deployment gradually shift traffic, offering finer-grained risk control at the cost of complexity.
Category: Alternatives
What is a hot topic around Blue-Green Deployment?
Integrating blue-green with database migration tooling and progressive delivery platforms to minimize human error.
Category: Topic
How does Blue-Green Deployment apply to ML models?
Use separate endpoints for current and new models, then switch traffic after validation of performance and bias metrics.
Category: Example