BolEnglishLearn · Play · Win
Login

🚩 DevOps & Deployment · Delivery & Deployment

🚩

Feature Flags

Delivery PracticeIntermediateModule 8

Control feature availability independently from deployment.

Deploy code without exposing unfinished behavior to everyone.

💡 In practice

Enable a new checkout flow for internal users first.

🖼️ CONCEPT PICTURE
A picture to help remember Feature Flags
Enable a new checkout flow for internal users first.

💡 It is like a light switch for each feature: the wiring is already in the wall, but you choose when and for whom to turn it on.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Deploying code and releasing a feature do not have to happen at the same moment. A feature flag lets you ship code that stays hidden until you flip it on, so you can release to a small group first, watch how it behaves, and turn it off instantly if something goes wrong. This separates the technical act of deploying from the business decision of launching.

🛠️ How to achieve it

1
Wrap new behaviour in a switch
Put the new feature behind a flag so it can be turned on or off without another deployment.
2
Roll out gradually
Enable the feature for internal users or a small slice first, then widen it as confidence grows.
3
Keep an instant off switch
Make sure a misbehaving feature can be turned off at once, without waiting for a new release.
4
Clean up old flags
Remove flags once a feature is fully live, so the code does not fill up with dead switches.

⚠️ Signs of trouble

  • •Unfinished features are visible to everyone the moment code ships.
  • •Turning a feature off requires a full emergency release.
  • •Old, forgotten flags clutter the code for years.
  • •There is no way to try a change on a small group first.
⚠️ Common mistake: Leaving old flags in the code forever until nobody knows which are safe to remove. Instead, retire each flag once its feature is fully rolled out.

🎯 Quick check

Score: 0/3

Three questions to test the idea.

  1. 1. What do feature flags separate?

    Answer: Deploying code from releasing a feature to users

    A flag lets you ship code while deciding separately when and for whom to turn the feature on.

  2. 2. What is a safe way to launch a risky new feature?

    Answer: Turn it on for a small group first, then widen

    A gradual rollout lets you watch behaviour on a few users before exposing everyone.

  3. 3. What problem does leaving old flags in the code cause?

    Answer: Flag debt: clutter nobody is sure is safe to remove

    Unused flags should be retired once a feature is fully live, or the code fills with risky dead switches.

🔑 Key terms

Feature flag
A switch that turns a feature on or off without a new deployment.
Gradual rollout
Turning a feature on for more and more users over time.
Kill switch
An instant way to disable a feature in trouble.
Flag debt
Old, unused flags left cluttering the code.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →