Skip to content
All concepts

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.

Watch the flag enable the new path for a small share, then for everyone, with no new build. A live step from the lesson Feature flags & kill switches (Deployments & config rollout). Timings and counts are illustrative.

Where you'll see it

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.