What is a “feature flag”?

后端 未结 12 600
天涯浪人
天涯浪人 2020-11-30 17:32

High Scalability mentions feature flags here:

5 things toxic to scalability, \"5. Lack of Feature Flags\"

What exactly are feature flags?

12条回答
  •  自闭症患者
    2020-11-30 18:04

    A feature flag (also known as feature flipping or feature toggle) is a switch to enable or disable a potentially expensive feature as needed (like, say, when a site is being hammered with unexpected traffic). This'll buy you a little time until you scale up, or until the load spike goes away.

    Here's an example from the SWIG documentation.

提交回复
热议问题