Concept
Feature flag
A feature flag is a switch, read while the software runs, that decides whether a piece of code is used. It separates shipping code from turning behaviour on, so a new path can be deployed switched off and enabled for a small share of users first. If the path misbehaves, the flag turns it off without a new release.
Where you'll see it
Related concepts
Sources: Google Cloud incident report, 12 June 2025 ↗ · Feature Toggles (aka Feature Flags), Pete Hodgson on martinfowler.com ↗ · Report a problem
The definition is in our own words; the sources are those of the lesson Feature flags & kill switches.