TOPIC 19/3712 MINNOT STARTED

Feature flags and canary releases

A feature flag lets a team ship code switched off and turn it on for a few users first. A canary release widens a release step by step, with a quick way to stop.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a theatre trying a new scene on the front row. A theatre adds a new scene. On the first night, only the front row sees it. The director watches their faces. If they look lost, the director cuts the scene at once. If they smile, the next night more rows see it.

Daily List is a to-do list app. Leo has built a new shared-list screen. The team does not show it to everyone on day one. A switch in the code shows it to a few users first. Tom watches what happens. If something goes wrong, a second switch turns the screen off, with no new release.

That switch is a . Showing the change to a few users first, and then more, is a . A rollout of this kind, led by a small first group, is often called a canary release.

The picture has a limit. A theatre audience can tell you at once if it dislikes a scene. A software user may just leave, so the team needs to measure what users do.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

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 Showing a change to a few people first, watching, and keeping a quick way to stop.

  1. Hide behind a flag
  2. Show a few
  3. Watch the numbers
  4. Widen or cut
Front row first

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The front row on night oneThe small first group
The director's eyesThe measures the team watches
Cutting the sceneThe kill switch
More rows each nightA wider rollout

WHERE THIS PICTURE STOPS

  • An audience tells you at once. Users may just leave without saying.
  • A scene is cut for good. A flag can be turned back on.
  • A theatre has one stage. A flag can touch many parts of the code.

HOOK

Few first, watch, cut if wrong.

REMEMBER IT THIS WAY

A contrast: two neighbours told apart by one test.

Flag is the switch, rollout is the widening, canary is the small first group.

What each part of the trick stands for
In the trickWhat it stands for
Feature flagA switch in the code that shows or hides the screen
Progressive rolloutA few users first, and then more
Canary releaseA rollout led by a small first group

TELL A FRIEND

A theatre tries a new scene on the front row first, and can cut it at once.

OFTEN MIXED UP WITH Where tests run in a pipeline. The pipeline lesson shows where tests sit before release. This lesson shows how to release in steps once the change has passed those tests.

PRACTISE AND KEEP

Sources for this topic — 8 sources
  1. Market practice

    Feature Toggles (Martin Fowler) ↗ — Martin Fowler · Feature toggles come in kinds: release, experiment, ops and permission toggles; release toggles are removed when the feature is stable (search excerpt, page not opened)

    Sorts toggles into release, experiment, ops and permission kinds, with different lifetimes. Practitioner guidance, not a standard. 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). 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.

    Verification supplement, 6 November 2026: Feature Toggles by Pete Hodgson (revised 9 October 2017): actual toggle-point/router/context/configuration overview inspected, with all four dashed arrows and explanatory labels. Illustration permission is in the host FAQ; credit Hodgson and acknowledged diagram assistance by Fernanda Alcocer.

  2. Market practice

    Canarying Releases (Google SRE Workbook) ↗ — Google · Even a fully automated release pipeline cannot detect all release defects until real traffic hits the service; canarying needs a way to deploy to a subset and a way to evaluate it (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.

  3. Market practice

    bliki: Canary Release ↗ — Martin Fowler · A canary release rolls a new version out to a small group of users first and widens it as confidence grows (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.

  4. Market practice

    OTA Testing 101: the ultimate guide (Memfault) ↗ — Memfault · Test incomplete downloads, corrupt files and power loss during an update; use staged rollouts; keep a rollback ready (search excerpt, page not opened)

    Says to test incomplete downloads, corrupt files and power loss during an update, to roll out in stages and to keep a rollback ready. Vendor blog. 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

    Evaluation Context ↗ — OpenFeature · Says the targeting key identifies the user being evaluated and that providers may need it for percentage (fractional) evaluation.

    Says the targeting key identifies the user being evaluated and that providers may need it for percentage (fractional) evaluation. · 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

    Percentage rollouts (Flagship) ↗ — Cloudflare developer docs (vendor documentation) · Vendor doc: percentage rollouts hash a stable key to pick a bucket; with no stable key the choice is random on each evaluation.

    Vendor doc: percentage rollouts hash a stable key to pick a bucket; with no stable key the choice is random on each evaluation. · 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

    A/B system updates ↗ — Android Open Source Project · Says the update writes to an unused slot and the old slot stays as a fallback, so an interrupted or failed update does not break the running system.

    ActualAOSPintro/partition/bootloadersectionsreviewed:LegacyA/BexplicitlydistinguishedfromVirtualA/B. Bootable/successful/activeattributes,fallbackandcurrent-slotprotectionareimplementationdetails; two-copytoymodelisnotall-deviceguarantee. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  8. Market practice

    ISTQB Certified Tester Quality in DevOps (CT-QDO) Syllabus v1.0 (iSQI copy) ↗ — iSQI (copy of the ISTQB syllabus) · Mirror copy of the publisher PDF (ISTQB syllabus CT-QDO v1.0, 17 April 2026), read in full text: section 4.2.4 feature toggles separate deployment from release; the four kinds are release, operational, experiment and permission toggles; toggles add complexity, so track, document and retire obsolete ones, and test implementations with both on and off settings and test interdependent features

    Version 1.0 syllabus (17 April 2026), read in full text. Used for the objective ids and levels, the DORA measures, CALMS, the DevOps loop in section 2.2, the pipeline steps in 2.2.6 and the single source of truth in 3.1.1. Paraphrased, not quoted. · Checked 2026-10-25

    Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-QDO v1.0, 17 April 2026), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.

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.