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.
- Hide behind a flag
- Show a few
- Watch the numbers
- Widen or cut
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The front row on night one | The small first group |
| The director's eyes | The measures the team watches |
| Cutting the scene | The kill switch |
| More rows each night | A 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.
| In the trick | What it stands for |
|---|---|
| Feature flag | A switch in the code that shows or hides the screen |
| Progressive rollout | A few users first, and then more |
| Canary release | A 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
- 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)
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.
- 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)
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 rolls a new version out to a small group of users first and widens it as confidence grows (search excerpt, page not opened)
An individual's article. Seen as WebSearch excerpts on the access date; the page was not opened.
- 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)
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
Evaluation Context ↗ — OpenFeature · Says the targeting key identifies the user being evaluated and that providers may need it for percentage (fractional) evaluation.
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
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.
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
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.
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.
- 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
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.