Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1356

Dark Launch

Dark Launch
BusinessHigh supportProduct Management
Included
account_tree

Updated 2026-07-28

Loading revision record…

Summary

Feature toggle, also known as feature switch, feature flag, feature flipper, or conditional feature, is a technique in software development that serves as an alternative to maintaining multiple source code branches (also known as feature branches). It allows features to be tested before they are completed and officially released. Feature toggles hide, enable, or disable specific features during runtime.

Definition

Feature toggle, also known as feature switch, feature flag, feature flipper, or conditional feature, is a technique in software development that serves as an alternative to maintaining multiple source code branches (also known as feature branches). It allows features to be tested before they are completed and officially released. Feature toggles hide, enable, or disable specific features during runtime. For example, during development, developers can enable a feature for testing while other users are not affected by it. Continuous release and continuous delivery provide developers with rapid feedback on their code, which requires early integration of code changes. Feature branches introduce a bypass to this process. Feature toggles are an important technique for achieving continuous delivery. This technique allows developers to release product versions that contain unfinished features. These unfinished features are hidden or disabled, so they do not appear in the user interface. This allows software to be released in many small incremental versions without the cost of constant branching and merging.

How to use

Feature toggle, also known as feature switch, feature flag, feature flipper, or conditional feature, is a technique in software development that serves as an alternative to maintaining multiple source code branches (also known as feature branches). It allows features to be tested before they are completed and officially released. Feature toggles hide, enable, or disable specific features during runtime.

Mechanism

When software goes live, first let a small portion of users/traffic use the new version, verify stability and metrics in the real environment, then gradually expand the proportion to full rollout, to control the blast radius of failures.

Practice

In progress 0/4

Practice this model in one real situation:

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

Cases

  • Large companies first release new features to internal employees or specific cities; API version gray switching.

Common pitfalls

  • Gray release proportion too large loses meaning; only monitoring basic availability while ignoring business metrics; no fast rollback.
Sources

Source support: Explicit

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

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E7%89%B9%E6%80%A7%E5%88%87%E6%8D%A2ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS