Skip to content

Feature flag

A feature flag switches planned application behaviour through configuration. It can separate technical deployment from making a feature available.

Also known asFeature toggle
Software architecture

A feature flag is a configurable switch for planned application behaviour. The program code must evaluate it and provide suitable paths for its enabled and disabled states.

A hypothetical portal initially makes a new repeat-order feature available only to a test group. The new code can already be running while other users retain the previous flow. The group receiving the feature is defined explicitly.

Disabling it does not undo orders already created or database changes. A feature flag is also no substitute for access-right checks. The team should test both states and remove switches that are no longer needed so old conditions do not remain unnoticed in the code.

Sources