Staged rollouts
Releasing to a growing share of users while watching the impact.
A staged rollout starts with a small percentage of users and increases as metrics stay healthy. Problems affect few people and can be caught early. It is also called progressive delivery.
Why it matters for a product engineer
Tests never cover every device, configuration and kind of user. A staged rollout lets real use find what tests missed, while only a few people are exposed. It turns a release from one bet into a series of small ones, each with a chance to stop.
How to do it
- Start with a small share: the team, a canary group, then 1%, 5%, 25% and everyone.
- Decide the gate for each stage before you start: the metrics, their limits, and how long to wait.
- Compare the new group with the rest, not with yesterday. Google’s SRE workbook shows why size matters: a version that fails 20% of requests, on a 5% canary, adds only 1% to the overall errors.
- Stop automatically when a gate fails, and roll back.
- Wait long enough for slow signals, such as support tickets or memory growth.
- Apply the same rules to configuration and content, not only to code.
Common mistakes
- Treating configuration or content updates as too small to need stages.
- Stages without gates, so the rollout continues on schedule whatever happens.
- A canary group that is not representative of real users.
- Moving faster than the metrics can show a problem.
Example
On 19 July 2024 at 04:09 UTC, CrowdStrike sent a content update to every online Windows computer running its sensor. A bug in its Content Validator had let bad data through. The sensor read memory out of bounds, and Windows crashed. The update was reverted at 05:27 UTC, 78 minutes later. Microsoft estimated that 8.5 million Windows devices were affected.
How CrowdStrike sent content updates, before and after July 2024
| 19 July 2024 | Promised after | |
|---|---|---|
| First group | Every online sensor | A canary group |
| Next stages | None | Gradually larger shares |
| Signal before going wider | No | Sensor and system monitoring |
| Customers choose when and where | No | Yes |
The update went to every sensor at once, so nothing could stop it early. The fixes add stages, signals between them and a choice for customers.
ReportedCrowdStrike preliminary post incident review, 24 Jul 2024
Sources: Falcon content update, preliminary post incident report (CrowdStrike) ↗ · Helping our customers through the CrowdStrike outage (Microsoft) ↗ · Canarying releases (Google SRE workbook) ↗
Resources
2- articleStart here
Canary release ↗
Danilo Sato (martinfowler.com) · 5 minExpose a new version to a small group first and widen it only while it stays healthy.
- bookGo deeper
Canarying releases (The Site Reliability Workbook, chapter 16) ↗
Google SRE · 25 minHow big a canary should be, how long to wait, and which metrics decide whether to continue.
Tools
4- ToolOpen source
Unleash
Open-source feature flag platform for gradual rollouts, kill switches and experiments.
- ToolOpen source
- ToolPaid
LaunchDarkly
Feature management platform for targeted rollouts, release monitoring and experiments.
- ToolOpen source
GrowthBook
Open-source feature flags and A/B testing that analyzes results from your own data warehouse.