Deployment strategies and rollback testing: blue-green, rolling and dark launch
Teams can release a new version in several ways. Test each way, and practise the way back, so that a bad release can be undone quickly and without losing user data.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a theatre with two stages. While the audience watches the play on stage one, the crew sets up the next play on stage two. At the interval, the spotlight swings to stage two. If something is wrong there, the spotlight swings back to stage one, and the audience hardly notices.
Daily List is a to-do list app. Leo has built a new version with a snooze button for reminders. The team does not stop the app to install it. They keep the old version running, and they start the new version next to it. Tom tests the new copy while no user sees it. Then the team switches users over.
This is a : two full copies of the app, one live and one waiting, with a switch between them. The old copy stays ready, so going back is quick.
The picture has limits. A theatre has no shared notebook, but both copies of Daily List share the same data. Tom has to test that the data works for both versions.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- snooze
- a button that delays a reminder for a short while
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Testing each way of releasing a new version, and showing the way back works before it is needed.
- Test the new copy
- Check what is shared
- Switch
- Practise the way back
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The stage the audience watches | The live copy, called blue |
| The second stage being set up | The new copy, called green |
| The spotlight | The switch |
| One shared prop table | The shared database |
| Practising the swing back at the dress rehearsal | The rollback rehearsal |
WHERE THIS PICTURE STOPS
- Two stages share nothing. Two copies of an app often share one database.
- A spotlight swings back at once. A real switch back may lose data made after the first switch.
- A play has a script. A release has users who do unexpected things.
HOOK
Test green, share with care, swing back first.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Before you swing, check three things: the shared database works for both copies, the way back has been rehearsed, and users will not lose data made after the first switch.
| In the trick | What it stands for |
|---|---|
| Shared database | The shared database |
| Rehearsal | The rollback rehearsal |
| Lost data | A real switch back may lose data made after the first switch |
TELL A FRIEND
A theatre crew setting the second stage, and practising the swing back before opening night.
OFTEN MIXED UP WITH Feature flags and canary releases. The flags and canary lesson is about showing a feature to some users first. This lesson is about switching whole copies of the app and undoing a release.
PRACTISE AND KEEP
Sources for this topic — 11 sources
- Market practice
Canarying Releases (Google SRE Workbook) ↗ — Google · The Google SRE workbook chapter covers canary releases and is cited for blue/green, canary and feature flags as ways to release (search excerpt, page not opened)
One firm's engineering guidance. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
bliki: Canary Release ↗ — Martin Fowler · A canary release sends a new version to a small group first before everyone gets it (search excerpt, page not opened)
An individual's article. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Release management best practices: rollback and remediation planning (IF4IT) ↗ — IF4IT · Fix the rollback or fix-forward trigger criteria during release planning, not during the incident (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
DORA's software delivery metrics: the four keys (dora.dev guide) ↗ — DevOps Research and Assessment (DORA) (Google Cloud) · Defines change lead time, deployment frequency, failed deployment recovery time and change fail rate (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
bliki: Blue Green Deployment ↗ — Martin Fowler · Describes two production environments, a router switch to cut over or switch back, and keeping schema changes apart from the app upgrade.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
bliki: Parallel Change ↗ — Martin Fowler · Describes making a change in three steps (expand, migrate, contract) so old and new users keep working; also called expand and contract.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
bliki: Dark Launching ↗ — Martin Fowler · Describes calling new back-end code for real users while hiding its output, and notes the term is used loosely.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: Dark Launching (29 April 2020): actual original sketch inspected, retaining the three backend call arrows and separate ignored-result annotation. FAQ illustration permission applies with author credit, article link and change disclosure.
- Market practice
Deployments ↗ — Kubernetes documentation · Describes a rolling update that swaps pods step by step, with 25 percent defaults for surge and unavailable, and rollout undo.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Best Practices for Managing Data Synchronization and Schema Changes (Blue/Green Deployments on AWS) ↗ — AWS Whitepapers · Says to keep a shared database outside the blue and green copies, make early schema changes additive, and that removing fields can stop the old version working.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Application deployment and testing strategies ↗ — Google Cloud Architecture Center · Compares recreate, rolling, blue/green and canary releases, including the cost of a duplicate copy and the need for both versions to work with the same datastore schema.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
The Evolving SRE Engagement Model (Site Reliability Engineering book) ↗ — Google SRE · Describes sending part of existing users' traffic to a new service as well as the live one, with the new service's output never shown to users (a dark launch).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.