Video in progress

How do you organize the release process for a service that runs in three regions?

In waves: first the smallest region or one with internal traffic, with a canary inside it, then a "bake time" and automatic checks, then the next regions. The goal is that a bad release does not hit every region at once, that is, limiting the blast radius.

📖 Answer

The main point of multi-region is that when one region goes down, the others keep working. If you release to all three regions at once, you destroy that protection yourself. Many big outages happened in exactly the scenario of "a global configuration change everywhere at the same time".

The release waves:

  1. Wave 0: internal or staging-like prod (employee traffic).
  2. Wave 1: the smallest region, with a canary 5% → 100% inside it.
  3. Bake time: 1-4 hours, since errors usually show up at the load peak of the day.
  4. Waves 2 and 3: the remaining regions, possibly in parallel.

Between waves there is an automatic "gate": SLO metrics, no alerts firing. If the gate fails, the next wave does not start and a person decides.

Configuration and feature flags must go out in the same order. Often the code is released carefully, but a flag is turned on globally with one button, and everything falls over.

More things to think about:

  • the version difference between regions lasts for several hours. If regions talk to each other (replication, cross-region calls), protocol compatibility is mandatory;
  • DB schema migration: if there is a global DB, it goes out before the first wave and must be compatible with all versions;
  • there should be a faster path for a hotfix, but even that should be verified in at least one region.

The cost is slowness. A release can take a day to propagate fully. So if deploy frequency is high, the waves must be automated in the pipeline.