Scrivio Interview library
DesignAdvanced7 min read · updated 13 November 2026

A platform runs 300 services in four regions, each region split into several cells. Deployments currently reach all regions within an hour of merging, and twice this year a bad release reached every region before anyone noticed.

Design the order and pacing of deployments across environments, cells and regions so a bad change is caught while it affects a small part of the platform, and explain how emergency fixes fit in.

We deploy in waves of growing blast radius: pre-production, one canary cell in a small region, the rest of that region, then one region at a time, never two regions in the same wave, so a region and its failover target never change together. Each wave bakes with automated checks on errors, latency and business metrics and stops itself on a regression, with longer bakes early. Every kind of change, including configuration, flags, infrastructure and schema, goes through the same waves, and emergency fixes use shorter bakes but still go wave by wave.

Why this question is asked

When a platform deploys to every region within an hour, a bad change can be everywhere before the first alert has fired. Twice this year that happened here. Interviewers ask senior engineers to design deployment pacing because it is where reliability and delivery speed meet, and a good answer shows how to make bad changes small without making good changes slow. In this answer, we will recap cells and blast radius, design the waves and their bake times, make every kind of change follow them, limit how much changes at once, and then fit emergency fixes and truly global changes into the scheme.

1A Quick Recap of Cells and Blast Radius

The blast radius of a change is the share of users or traffic it can hurt if it is bad. A cell is an isolated copy of the platform's services serving a fixed slice of customers, with its own databases and queues, so a failure in one cell does not spread to the others. This platform has four regions, each split into several cells.

Cells give us natural steps for a rollout. Deploying to one cell first means a bad release hurts only that cell's customers, perhaps 2 or 3 percent of the platform. The aim of the design is to make sure every change spends enough time in small steps to be caught there.

2Designing the Waves

We order the waves from smallest to largest exposure. Wave 0 is pre-production, with synthetic traffic and integration tests. Wave 1 is a single canary cell in the smallest region, chosen so that it has real but limited traffic. Wave 2 is the rest of that region. Waves 3, 4 and 5 are the remaining regions, one at a time, typically ordered from smaller to larger and avoiding each region's peak hours.

One rule matters more than the rest: never two regions in the same wave. If region A fails over to region B, then A and B must not receive a change together, or the failover target could be broken by the same bug as its source. Deploying one region at a time keeps at least three healthy regions available while one is changing.

Step throughDeployment waves for one release
  1. Wave 0: pre-productionintegration tests and synthetic traffic
  2. Wave 1: one canary cell, small regionbake 2 hours
  3. Wave 2: rest of the small regionbake 2 hours
  4. Regression in the checks?
    YesStop the rollout, roll back the waves doneNoContinue
  5. Waves 3 to 5: one region at a timebake 1 hour each, outside peak hours

5 steps in order. Play them, or step through them one at a time.

3Bake Times and Automatic Stops

Each wave has a bake time, a period during which the new version runs with real traffic before the next wave begins. Early waves bake longer, because they are the ones meant to catch problems; later waves bake shorter, because the change has already survived real traffic. A reasonable start is two hours for the first cell and the first region, and one hour for each later region, tuned with data on when past bad releases were detected.

During the bake, automated checks compare the deployed cells with their own recent history and with cells not yet deployed. They watch error rates and latency, as usual, but also business metrics such as orders per minute, payments succeeded and sign-ups, because some bad changes return 200 and do the wrong thing. On a significant regression the pipeline stops itself and rolls back the waves already done. Nobody needs to be watching a dashboard for this to work.

With this plan, a release takes most of a working day to reach every region. That sounds slow next to one hour, but it costs no engineer time because the pipeline does the waiting, and it means a bad change is caught while it affects one cell instead of the whole platform.

4Every Kind of Change Goes Through the Waves

Code is only one kind of change. Configuration pushes, feature flag changes, infrastructure changes such as load balancer rules or instance types, and database schema migrations cause as many outages as code, and global configuration pushes cause some of the largest ones. If configuration can be pushed to every region in a minute, the waves for code protect only half the platform.

So the deployment system treats configuration and flags as releases: they are versioned, they target cells and regions, and they move through the same waves with the same checks. Schema changes follow expand and contract and run cell by cell. Infrastructure is managed as code and applied per region, not to all regions in one command.

Changes and how they roll out
Kind of changeHow it follows the waves
Service codeRelease per service, cell then region
ConfigurationVersioned bundle, targeted per cell and region
Feature flagsRules widened per cell and region, with audit log
InfrastructureInfrastructure as code, applied one region at a time
Database schemaExpand and contract, migrated cell by cell

5Limiting How Much Changes at Once

When many things change together, a regression is hard to attribute and slow to undo. So the plan limits concurrency: one release per service per wave, so a service never has two versions moving through the waves at once; no deployments during a region's peak hours; and a change calendar marking high-risk periods such as sales events or month-end, when only low-risk or emergency changes go out.

With 300 services, many releases will still be moving through the waves at the same time. That is fine as long as each is small and each wave's checks can tell which change caused a regression, for example by correlating the start of a regression with the deployment events recorded for that cell.

6Fitting In Emergency Fixes

An emergency fix, such as a patch for an active incident or a security vulnerability, needs to move faster. It may use shorter bakes, for example 15 minutes per wave instead of hours, but it still goes wave by wave with the same automated checks. The reason is that rushed fixes are a common cause of the second incident: the fix is written under pressure, reviewed briefly and has had no time in production. Sending it to every region at once would repeat the very mistake the waves are meant to prevent.

If the incident is limited to one region, the fix goes there first. If it affects everyone, it starts with the canary cell anyway, because a few minutes there is cheap insurance.

7Follow-up questions

How do you handle a change that must be global, such as a DNS or certificate change?

We make it as gradual as the system allows. For a certificate, we deploy the new certificate alongside the old one, region by region, and only then switch, keeping the old one valid until the switch is confirmed. For DNS, we lower the TTL well in advance, change one record or one weighted share at a time, and keep the old target running so we can switch back within the TTL. Where a change truly cannot be staged, it gets a reviewed plan, a tested rollback, a quiet time slot and people watching it live.

Why bake longer in early waves than late ones?

Because the early waves are where we want to catch problems, and many problems only show up after time passes: memory leaks, slow-growing queues, daily jobs, or traffic patterns that change during the day. Once a release has survived hours in one cell and one region, the chance that it hides an unseen problem is much lower, so later regions can move faster.

What does the pipeline need to roll back automatically?

It needs the previous version to be deployable without a build, a guarantee that the previous version can read data the new one wrote, health checks that tell it when the rollback is complete, and the authority to act without waiting for a person. All four should be tested regularly, because an automatic rollback that has never run is unlikely to work the first time.

8Conclusion

In this answer, we designed deployment pacing for a platform of 300 services in four regions. Changes move in waves of growing blast radius, from pre-production to one canary cell, the rest of that region and then one region at a time, never changing a region and its failover target together. Each wave bakes with automated checks on technical and business metrics and stops itself on a regression. Configuration, flags, infrastructure and schema changes follow the same waves, concurrency is limited, and emergency fixes use shorter bakes but still go wave by wave.

What to say in the interviewAbout 80 seconds aloud

Open with

I would deploy in waves of growing blast radius. First pre-production, then one canary cell in a small region, then the rest of that region, then the other regions one at a time, and never two regions in the same wave, so a region and its failover target are never changed together.

Then, if they want more

Each wave has a bake time with automated checks on error rate, latency and business metrics like orders per minute, compared against cells not yet deployed, and the pipeline stops and rolls back by itself on a regression. Early waves bake longer, say two hours, later ones about an hour.

The important part is that every kind of change goes through the waves: code, configuration, feature flags, infrastructure and schema migrations, because global config pushes cause as many outages as code. I would limit concurrency too: one release per service per wave, no deploys during a region's peak hours, and a calendar for risky periods.

Emergency fixes get shorter bakes, maybe 15 minutes per wave, but still go wave by wave with monitoring, because a rushed fix often causes the second incident. A full rollout then takes most of a day, but it is automated, so it costs no engineer time.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Design the order and pacing of deployments across environments, cells and regions so a...": https://scrivio-interview-library.netlify.app/architecture/high-availability/34e0315553/