Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1270

Feature Flags / Toggles

Feature Flags / Toggles
TechnicalHigh supportSoftware Engineering
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

Embed switches in code to remotely enable or disable a feature at any time via a configuration center, without redeploying.

Definition

Embed switches in code to remotely enable or disable a feature at any time via a configuration center, without redeploying. Scaffolding role: decouple deployment from release, separating 'code going live' from 'feature becoming visible to users'. This enables safe 'dark launches' or A/B testing in production, with millisecond rollback if issues arise.

How to use

Decouple deployment from release, separating 'code going live' from 'feature becoming visible to users'. This enables safe 'dark launches' or A/B testing in production, with millisecond rollback if issues arise.

Mechanism

Use flags (Feature Flags/Toggles) to control whether a feature is visible to users, decoupling feature development from release. The mechanism is runtime configuration switching.

Practice

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Canary releases and A/B testing rely on feature flags.

Common pitfalls

  • Accumulated flags become technical debt.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Feature_toggleZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS