Skip to content
GabineteTools for thinking

No. 1827Workflow and delivery

Progressive delivery with feature flags (percentage rollout)

Martin Fowler

Green paper fan open up to a brass stop, with more bumps ahead and a red cord ready to close.

The table / Model card · No. 1827 · Workflow and delivery

Progressive delivery with feature flags (percentage rollout)

Releasing a feature behind a flag to a growing share of users, widening exposure only while performance and feedback stay healthy.

The essentials

What it is

What it solves

How can a team release a risky change without exposing all users at once and with a fast way to turn it off?

When to use it

For changes with technical or user risk such as new checkout flows, pricing or infrastructure swaps. Also when product wants to test with a segment before launch, or when a kill switch is needed.

Martin Fowler

How it works

Code for the new feature ships dark behind a flag, separating deployment from release. The flag is turned on for internal users, then a small percentage or segment, and exposure grows in stages. At each stage, error rates, latency and business metrics are compared with the control group, and the team either advances, holds or switches the flag off. Once at 100% and stable, the flag and the old code path are removed.

You need

A flagging system, per-stage success and rollback metrics, segment definitions, and monitoring dashboards.

You get

A staged rollout plan, a monitored release at 100%, and the removal of the flag.

Case

Illustrative case

StreamNest's mobile team releases a redesigned search. They ship it behind a flag on Monday, enable it for employees (200 users), then 1% on Tuesday. Error rate is flat, but search latency rises 15% on older Android devices, so they hold at 1% while engineers fix an indexing call. After the fix they move to 5%, 25% and 50% over a week, each step requiring latency within 5% and conversion not lower than control. At 100% they delete the flag two sprints later, avoiding leftover dead code.

A fictional company used to explain the model.

Caution

When to avoid it

  • For trivial changes where flag overhead exceeds risk, or for changes that cannot coexist with the old version, such as irreversible data migrations.
  • It also needs adequate traffic and monitoring to detect problems.

Common mistakes

  • Leaving old flags in the code for months.
  • Advancing on a timetable rather than on metrics.
  • Testing too small a sample to detect problems.
  • Having no tested kill switch.
  • Forgetting that flag combinations multiply test cases.

Known weaknesses

  • Flags left in place create technical debt.
  • Needs good monitoring and enough traffic to detect small effects.
  • Multiple flags interact and complicate testing.
  • Some changes, such as schema changes, cannot be toggled.

How to apply it in 5 steps

How to apply it

Progressive delivery with feature flags (percentage rollout)

5 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 5 steps
  1. Define goals and thresholds

    Set the success metrics and rollback conditions for each stage.

  2. Ship behind a flag

    Deploy the code dark with the flag off for everyone.

  3. Start with a canary group

    Enable for internal users or a small low-risk segment and watch the metrics.

  4. Expand by gates

    Increase exposure only when each gate's criteria are met; hold or roll back otherwise.

  5. Release fully and clean up

    Move to 100%, then remove the flag and the old code path.

Which decisions it helps with

Decision profile

A phased process to take action on processes and operations.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Phased process
Decision stage
Plan the work, roles and deadlines
What it applies to
Processes and operationsalso: a product or service (36 %)
Discipline
Agile and software development
What it produces
A sequence of phases completed in order

IIIResources required

  • TimeWeeks or months
  • PeopleA small group (2 to 8)
  • DataData collected for the purpose
  • ExpertiseWorks best with a facilitator
  • Time horizonDays or weeks
  • ScopeOne team
  • FrequencyOccasionally

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstAct now

IVUseful when

  • We make too many mistakes, or one mistake could be very costly
  • The future is uncertain, and our plans keep falling apart

Applicable traits

  • How it supports actionDecide what comes first
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Workflow and delivery

They organize and accelerate day-to-day delivery: Kanban, DevOps, development cycles, automation and work standards.

Membership: 33 % · also “Learning, coaching and goal setting” (14 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Fowler, M. (2010). Feature Flag. martinfowler.com (bliki).Early concise definition of feature toggles; dated 29 October 2010 on the page.View source: Feature Flag (opens in a new tab) ↗

Key development

  1. Humble, J. and Farley, D. (2010). Continuous Delivery. Addison-Wesley Professional.Foundational book on release practices that underpins gradual rollouts (publisher page: Published Jul 27, 2010, ISBN-13 978-0-321-60191-9).View source: Continuous Delivery (opens in a new tab) ↗

Practical guide

  1. contributors, W. (n.d.). Feature toggle (Wikipedia). Wikipedia.Notes Fowler's 29 Oct 2010 article and early adopters such as Flickr.View source: Feature toggle (Wikipedia) (opens in a new tab) ↗
  2. Hodgson, P. (2016). Feature Toggles (aka Feature Flags). martinfowler.com.Detailed practitioner taxonomy of toggles; the page's revision log shows publication in January-February 2016, last revised 9 Oct 2017.View source: Feature Toggles (aka Feature Flags) (opens in a new tab) ↗

The catalogue does not yet list a published critique of this specific model.

Wikipedia article (opens in a new tab) ↗