Skip to content
Web Design & Development

Feature Flags: The Decisions That Matter

Switches that turn features on or off at runtime, for gradual rollouts, testing and quick rollbacks.

Marcus Adeyemi Technical Director 2 min read 23 views
Feature Flags: The Decisions That Matter

Why does it matter?

Flags separate deploying code from releasing features, which reduces risk, but unmanaged flags become permanent complexity.

What are the numbers?

  • Gradual rollout features can be enabled for a percentage of users
  • Kill switches problem features can be disabled without a deploy
  • Debt old flags accumulate in the codebase
  • Testing both flag states need testing

What should I do?

  1. Name flags clearly with owners
  2. Set removal dates when creating flags
  3. Test both states
  4. Use flags for risky releases
  5. Audit and remove stale flags
What to do and what to avoid with feature flags, side by side
Good practice against the usual mistakes, from the sources listed below.

What should I avoid?

Avoid:

  • Flags that live for years
  • Nested flag conditions
  • Flags with no owner
  • Untested off states

When should I get help?

Short answer Bring in help when releases need staged rollouts.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

Marcus Adeyemi

Builds and maintains the web work. Writes about front-end architecture, performance, accessibility and the unglamorous parts of keeping a site alive.

Keep reading

More in Web Design & Development