TOPIC 28/3716 MINNOT STARTED

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.

  1. Test the new copy
  2. Check what is shared
  3. Switch
  4. Practise the way back
Test green, share with care, swing back first

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The stage the audience watchesThe live copy, called blue
The second stage being set upThe new copy, called green
The spotlightThe switch
One shared prop tableThe shared database
Practising the swing back at the dress rehearsalThe 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.

What each part of the trick stands for
In the trickWhat it stands for
Shared databaseThe shared database
RehearsalThe rollback rehearsal
Lost dataA 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
  1. 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)

    The Google SRE workbook chapter. Cited for blue/green, canary and feature flags. · Checked 2026-10-11

    One firm's engineering guidance. Seen as WebSearch excerpts on the access date; the page was not opened.

  2. 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)

    A widely cited article on canary releases. · Checked 2026-10-11

    An individual's article. Seen as WebSearch excerpts on the access date; the page was not opened.

  3. 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)

    Advises fixing the rollback or fix-forward trigger criteria during release planning, not in the incident. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  4. 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)

    Defines change lead time, deployment frequency, failed deployment recovery time and change fail rate. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  5. 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.

    Describes two production environments, a router switch to cut over or switch back, and keeping schema changes apart from the app upgrade. · Checked 2026-10-18

    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.

  6. 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.

    Describes making a change in three steps (expand, migrate, contract) so old and new users keep working; also called expand and contract. · Checked 2026-10-18

    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.

  7. 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.

    Describes calling new back-end code for real users while hiding its output, and notes the term is used loosely. Original source image and reuse terms directly reviewed 6 November 2026; image bytes retained unchanged. · Checked 2026-11-06

    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.

  8. 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.

    Describes a rolling update that swaps pods step by step, with 25 percent defaults for surge and unavailable, and rollout undo. · Checked 2026-10-18

    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.

  9. 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.

    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. · Checked 2026-10-18

    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.

  10. 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.

    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. · Checked 2026-10-18

    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.

  11. 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).

    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). · Checked 2026-10-18

    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.