Skip to content

How to roll out a feature safely: five strategies

The question is never only should we ship it. It is who sees it first, and what do we watch for? Feature flags make several answers possible.

1. Percentage rollout

Show the feature to a growing share of users: 1%, 5%, 20%, 50%, 100%. Assignment is sticky, so the same user keeps the same experience as the number rises. This is the default choice for most releases.

2. Rings

Release to widening groups: your own team, then beta users, then everyone. In FlagDiligence this is a set of targeting rules in priority order, with the broadest group last.

3. Canary

Send a small, low-risk slice of real traffic to the new behaviour and compare it with the rest. Pick a slice you can afford to be wrong about.

4. Geographic

Start in one country or region, for example with custom.country IN ["US","CA"]. Useful when a feature depends on local rules, language or infrastructure.

5. Customer tier

Release to a plan first, such as internal accounts, then paid, then free. Target on custom.plan.

Match the pace to the risk

RiskA reasonable pace
Low25%, 50%, then 100% over a few days
Medium5%, 20%, 50%, then 100% over about two weeks
High1%, 5%, 15%, 30%, 50%, then 100% over about four weeks

Before you raise the number

  • Look at error rates, latency and the business metric the feature is meant to move.
  • Decide in advance what result makes you stop, and who decides.
  • Keep the off switch ready. See the kill switch article.

To set this up, see targeting and segments in the documentation.