> Markdown version of https://www.getunleash.io/blog/how-to-implement-progressive-delivery-with-feature-flags
> For clean Markdown of any blog post, append .md to its URL.
> For a site index, see https://www.getunleash.io/llms.txt.

# How to Implement Progressive Delivery with Feature Flags

_Published 2026-11-30 by Alex Casalboni in How to._

-   Deploying and releasing are separate steps. Your continuous integration and continuous delivery (CI/CD) pipeline ships code dark, and feature flags control the audience in production.
-   Trunk-based development supplies the dark code. Merge small slices daily behind a release flag.
-   Define milestones once (internal team, a small percentage, half, everyone) and move through them by hand or, in Enterprise, with release templates and time-based progression.
-   Safeguards on impact metrics can pause a release or disable the flag’s environment. Release templates, automated progression, and safeguards are Enterprise features.
-   When the feature holds at 100%, remove the flag from the code.

A green pipeline tells you the code is deployed, but it doesn’t tell you the feature is ready for all of your users. Teams that want to implement progressive delivery often get stuck here because the deploy and the release happen at the same moment, so the main safety net is a rollback of the whole build.

The fix is to separate the two. [Deployment is a technical operation and release is a business decision](https://www.getunleash.io/blog/progressive-delivery-workflows-trunk-based-deployments), and treating them that way is what makes the split work. With it, you ship code dark and choose the audience later. The definition of [progressive deployment plus progressive release](https://www.getunleash.io/blog/progressive-delivery-with-feature-flags) is already covered elsewhere, so this guide covers five steps: merge to trunk, define milestones, release by milestone, watch and pause, and clean up.

## Where CI/CD fits, and where it stops

Your pipeline builds and tests the code, and then deploys it. When the deploy finishes, nothing user-facing has changed, because the new code path sits behind a flag that is off in production. From that point on, feature flags control the production environment after deployment. The pipeline doesn’t drive the rollout, and we make no claim that a feature flag platform plugs into your pipeline. The two systems do different jobs on either side of the deploy.

That boundary separates this approach from deployment-level strategies. A [canary release](https://www.getunleash.io/blog/canary-release-vs-progressive-delivery) moves traffic to a new build, and a [blue-green deployment](https://www.getunleash.io/blog/blue-green-deployment-vs-progressive-delivery) swaps between two environments. A [rolling deployment](https://www.getunleash.io/blog/rolling-deployment-vs-progressive-delivery) replaces instances in batches. Each of those changes the build that receives traffic. A flag changes the users who get the feature after the build is already live.

## Step 1: Merge to trunk and deploy dark

Trunk-based development recommends [merging small slices at least daily](https://docs.getunleash.io/guides/trunk-based-development) and hiding unfinished work behind a flag, so main remains releasable. With the flag off in production, the code is deployed but unreachable.

Wrap the new behavior at one seam instead of across the codebase:

```js
if (unleash.isEnabled('checkout-redesign', { userId: user.id })) {
return renderNewCheckout(cart);
}
return renderCurrentCheckout(cart);
```
Pass the context fields your rollout relies on, such as userId, because percentage rollout and stickiness depend on them.

Use a release flag for this. Give it a clear name, add tags so teams can find it, and record the owner in the description or tags. The owner matters in Step 5, when someone has to remove the flag.

## Step 2: Define the milestones

A milestone is a stage of exposure, and it tells you how much of your audience sees the feature. A common ladder is an internal team first, then a 10% beta, then 50%, then 100%. The release management docs follow this pattern with [milestones that execute in sequence](https://docs.getunleash.io/concepts/release-management-overview).

Each stage uses the [gradual rollout strategy](https://docs.getunleash.io/guides/gradual-rollout). Its parameters are:

-   Rollout percentage: 0 to 100.
-   Stickiness: userId, sessionId, random, or custom, so a user keeps seeing the same experience.
-   groupId: keeps rollouts for different flags independent.
-   Constraints and segments: limit a stage to, for example, your internal staff.

Milestones don’t inherit the configuration of the previous milestone, so if the 50% stage should keep the segment or constraint from the 10% stage, add those strategies again.

## Step 3: Release by milestone

The edition you run determines how you move through the ladder.

In the open source edition, you add the gradual rollout strategy to the flag in production and raise the percentage by hand at each milestone. This works, but a person has to pick the time for each step.

Enterprise includes release templates, automated progression, and safeguards, which the open source edition doesn’t include. The [release templates](https://docs.getunleash.io/concepts/release-templates) capture your milestone ladder once, at global level or at project level, so each team starts from the same plan. When you apply a template to one flag in one environment, it creates a release plan. If the environment is enabled, the first milestone starts automatically. You control progress with Start and Restart on each milestone.

Enterprise also supports automated progression by time. A typical plan moves to 25% after 12 hours, then to 50% after another 24 hours, and then to 100% after another 48 hours. You can [set up automated progression and a safeguard](https://docs.getunleash.io/guides/getting-started-release-management) with the Node software development kit (SDK) on an Enterprise instance. If you pair progression with the impact metrics and safeguards covered next, the plan can pause when something goes wrong.

## Step 4: Watch, pause, roll back

Automation without a signal is a timer, and [impact metrics](https://docs.getunleash.io/concepts/impact-metrics) supply that signal. Impact metrics are counters, gauges, or histograms. A practical start is one feature-specific error counter, such as errors raised by the new checkout path. Internal impact metrics work only in a [select number of SDKs](https://docs.getunleash.io/concepts/impact-metrics), so check the docs for your SDK’s support. If your SDK isn’t supported, the docs describe [external Prometheus or VictoriaMetrics metrics](https://docs.getunleash.io/concepts/impact-metrics) as the alternative. Metrics are reported on an interval of roughly 60 seconds, so allow for that delay in your incident runbook.

A safeguard compares a metric against a threshold. For example, if the counter shows more than 10 errors in the last 15 minutes, you can configure the safeguard to pause release plan automation or to disable the environment. With the pause action, automation stops at the current milestone and the feature remains enabled for users already in it. After you fix the problem, you choose Resume. With the disable action, the flag turns off in that environment, so no release plan remains to resume.

A disabled environment reaches SDKs on their next refresh interval, so the cut-off isn’t instant on the client side. A [kill switch](https://www.getunleash.io/blog/kill-switch-vs-progressive-delivery) is the full off-switch pattern, and it differs from progressive delivery.

Your external monitoring can take part too. Enterprise [signals from your monitoring tools](https://docs.getunleash.io/concepts/signals) arrive over a Hypertext Transfer Protocol (HTTP) endpoint, and [actions that disable a flag](https://docs.getunleash.io/concepts/actions) respond to them.

## Step 5: Clean up

When the feature holds at 100%, the flag has done its job. Remove the flag from the code before you archive it, because [trunk-based development](https://docs.getunleash.io/guides/trunk-based-development) treats flag removal as part of the work, and otherwise you could archive a flag that code still reads. If you make removal part of your definition of done, the owner you named in Step 1 has a clear task. For day-to-day flag work, you can [develop features behind flags](https://www.getunleash.io/blog/how-to-get-the-benefits-of-progressive-delivery).

## How other tools frame this (as of November 2026)

Other vendors describe the same need in their own terms, and the details differ. The statements below follow one comparison, as of November 2026.

-   Datadog Feature Flags is positioned as feature flags connected to observability data, with automated canary rollouts and rollbacks.
-   AWS AppConfig offers gradual deployment strategies and automatic rollback on a CloudWatch alarm.
-   LaunchDarkly lists Enterprise custom (Guardian add-on). Its [Foundation entry price](https://launchdarkly.com/pricing/) is $10/service connection/mo + $8.33 per 1K monthly active users (MAU)/mo, billed yearly (as of November 2026).
-   For the baseline here, Enterprise costs [$75 per seat per month](https://www.getunleash.io/pricing), self-service and billed monthly (as of November 2026). The free self-hosted edition is limited to 1 project and 2 environments (as of November 2026).

## Conclusion

To implement progressive delivery, let the pipeline build, test, and deploy, and then hand the release to flags. Deploy dark, move through your milestones, and use metrics to continue or pause. The open source edition of Unleash includes the gradual rollout strategy, and [Unleash Enterprise](https://www.getunleash.io/plans/enterprise) adds release templates, automated progression, and safeguards.

## Take your next step

If you’re deciding how to release safely once the pipeline has finished deploying, we’re happy to walk through how milestones, release templates, and safeguards would apply to your release process. You can also use a [free trial](https://www.getunleash.io/free-trial) to see how it works firsthand.

## FAQs

### What does it mean to implement progressive delivery with feature flags?

You deploy code with the new behavior switched off, and then expose it to more users in stages. Each stage is a milestone, such as an internal team, a 10% beta, 50%, and 100%. The [gradual rollout strategy](https://docs.getunleash.io/guides/gradual-rollout) sets the percentage and keeps each user’s experience consistent through stickiness.

### Does progressive delivery replace CI/CD?

No. Your pipeline still builds, tests, and deploys. Progressive delivery takes over after the deploy finishes, when feature flags control the users who see the new code in production.

### Does a feature flag platform integrate with my CI/CD pipeline?

We make no claim of a pipeline integration. Feature flags control the production environment after deployment. Enterprise [signals](https://docs.getunleash.io/concepts/signals) let external monitoring systems notify the platform over an HTTP endpoint, which is a different mechanism from a pipeline integration.

### Do I need Enterprise to do a gradual rollout?

No. The gradual rollout strategy is available in the open source edition, and you raise the percentage by hand at each milestone. Release templates, automated progression, and safeguards require [Enterprise](https://www.getunleash.io/plans/enterprise).

### What happens when a safeguard triggers?

The result depends on the action you choose. A safeguard compares an impact metric against a threshold, such as more than 10 errors in the last 15 minutes. With the pause action, release plan automation stops at the current milestone and the feature remains enabled for users already in it. After you fix the problem, you choose Resume. With the disable action, the flag turns off in that environment. A disabled environment reaches SDKs on their next refresh interval, not instantly.

### How does trunk-based development fit with progressive delivery?

You [merge small slices at least daily](https://docs.getunleash.io/guides/trunk-based-development) behind a release flag, so main remains releasable while the flag is off in production. You then release by milestone and remove the flag from the code once the feature holds at 100%.
