Blue-Green Deployment
Run two identical production environments, release to the idle one, then flip traffic, and flip back to roll back. Zero downtime, instant rollback, and a disaster-recovery rehearsal on every release.
🌱 A rough idea, planted recently. Expect rough edges — it will grow.
Blue-green deployment is a release strategy built on a simple trick: keep two identical production environments and only ever release to the one nobody is using.
How it works
- Blue is live and serves all user traffic.
- Green sits idle and receives the new version, patches or configuration.
- You test Green in isolation (smoke tests, QA, performance checks) while users stay on Blue.
- Cut over: a load balancer, reverse proxy or router switches traffic from Blue to Green in one step.
- Roll back: if anything goes wrong, switch traffic straight back to Blue.
Trade-offs
Good: near-zero downtime, instant and low-risk rollbacks, and testing in a genuinely production-like environment before users see the change.
Costly: you run two full stacks, so infrastructure roughly doubles. The hard part is the database: schema changes have to work for both versions at once, backward and forward compatible, or the “instant rollback” isn’t instant.
The bonus most people miss
Martin Fowler points out that it’s the same mechanism you need for a hot standby, so every release doubles as a test of your disaster-recovery procedure. As he puts it, “I hope that you release more frequently than you have a disaster.” That makes it a direct lever on recovery time (SLA vs SLO vs SLI) and on how fast you recover from a failed change (DORA Metrics).
Where it fits
It’s one of the release safety nets that visual low-code tools usually lack (Low-Code Platforms: Where Do They Belong?), and one of several ways to release in slices alongside feature flags (Growing a Platform: Breadth, Depth and Gear Shifting).
Sources: Martin Fowler, BlueGreenDeployment · AWS, Blue/Green Deployments whitepaper
- #deployment
- #release-strategy
- #rollback
- #disaster-recovery
- #platform-engineering
↩ Linked from (5)
Blue-green deployments: keep two production environments, release to the idle one, flip traffic, and flip back to roll back (Blue-Green Deployment). Feature flags, so deploying code and releasing a feature are separate d…
- Golden PathsGrowing
…CI/CD with security scanning, infrastructure-as-code modules, observability defaults, a deployment strategy (Blue-Green Deployment or canary) and rollback. The concrete artefact is a bootstrap template: organisational b…
…ful A/B test, ramping traffic up gradually surfaces crashes and alerts while the blast radius is still small (Blue-Green Deployment).
…ts, then fuzzing and security review. Prove it at the boundary. Run old and new side by side (shadow traffic, Blue-Green Deployment) before cutting over.
It's the same family of techniques as Blue-Green Deployment, adapted for the fact that a model can be "up" and still wrong.
↪ Links to (4)
Related by topic
- Seed
Planes and Bounded Contexts
Platform engineering - Seed
Anti-Corruption Layer
Backend - Seed
Kubernetes
Platform engineering - Growing
Observability
Platform engineering