Skip to content

Why go multi-region

Every service you have designed so far ran somewhere, and that somewhere was a single region: a set of data centres in one geographic area of a cloud provider. A region is the largest unit a cloud sells as one place. Inside it, there are availability zones. AWS defines a zone as one or more discrete data centres with redundant power, networking and connectivity, and says the zones of a region are separated by a meaningful distance, many kilometres, though all within 100 km of each other. Azure describes its zones in nearly the same words: isolated power, cooling and network, close enough to give a low-latency network and far enough apart to survive a storm or a local power cut.

Zones and regions protect against different things. AWS’s disaster-recovery whitepaper says that a workload spread over several zones of one region is protected against the failure of a single, or even several, data centres. A failure that takes out the whole region is a different event, and for that you need a second region. AWS’s fault-isolation whitepaper is plain about the other side of the same fact: regions are isolated from each other, so a service failure is limited to one region, and data created in one region does not exist in another unless you copy it there.

Mental model. A zone is a fire door inside a building. A region is a separate building in another town. Going multi-region means deciding that you need the second building, and then living with two of everything.

There are three reasons to want it, and this lesson looks at each in turn. Azure’s guidance on choosing regions names latency and data residency among its factors, and says that using several regions increases resilience to many types of failure.

A request cannot be faster than the light that carries it. The lesson on CDNs worked out the floor: about 200 km per millisecond in optical fibre, so a round trip over d kilometres takes at least d ÷ 100 ms. A user 8,000 km from the only region cannot see less than 80 ms, however fast the servers are. A second region nearer to that user is the only way to lower it.

Real round trips are longer than the floor. Azure publishes the median round trip between its regions, measured by probes every minute. In the 30 days to 30 July 2026, the median from East US to West Europe was 83 ms in one direction and 85 ms in the other, from East US to Southeast Asia 224 ms, and between West Europe and Southeast Asia 169 ms. Azure notes that each value is directional, because traffic can take a different path each way, and that the tables are updated only every six to nine months.

Zones make a region hard to lose, and they do not make it impossible. If the service must keep answering through the loss of a whole region, there must be capacity somewhere else, and the traffic must be able to get there. The next lessons are mostly about the “capacity” and the “get there” of that sentence.

Some data has to stay in a country or an area. Azure makes each geography a data residency boundary and tells customers with such requirements to choose regions within the geography they need. The law behind it varies by country. As one example, Article 44 of the EU’s General Data Protection Regulation says that a transfer of personal data to a third country takes place only if the conditions of its Chapter V are met. A service with users in several jurisdictions can end up with a region in each, not for speed or for failures, but because that user’s records may not be kept anywhere else. This course does not give legal advice and the lab does not model residency; the point here is that it is a reason on its own, and that it can force the layout.

The lab has users in North America, Europe and Asia-Pacific, who send 40%, 35% and 25% of the requests. The service can run in two or three regions, one near each group. The round trips in the lab are illustrative: 20 ms to the region on the user’s own continent, and 80 to 200 ms between continents. They have the same order of magnitude as Azure’s medians above, but they are not the same numbers, and no figure in this module is a measurement of a provider.

Users in North America, Europe and Asia-Pacific reach a service that runs in one, two or three regions. Choose active-passive or active-active, fail a region, and see where its users go, whether the regions left can hold them, how long the switch takes, and what data was not yet copied out. The numbers come from a model with illustrative inputs.

1,200 req/s
Servers in each region
8

Regions: latency, failover and data at risk

Every number here is model output. The round-trip times, the traffic from each continent and the lag are illustrative inputs, not measurements of any provider.

Layout
Regions
Mode

Every region serves the users nearest to it.

Failure
Fail a region
Noticing and rerouting
10 s
3
60 s
Data
Copying data to another region

A write is confirmed first and copied afterwards, so the copy trails by the lag.

2 s
10%
0 s
Mean round trip, user to region
20 msWith one region: 76 ms
Each region must carry
900 req/s75% of the peak; each region can serve 800 req/s
Average time to serve again
—Fail a region to see it
Data at risk (RPO)
2 s of writesThe latest writes, if their region fails
  • With 3 regions, users are on average 20 ms from the region that serves them, and the worst-placed group 20 ms. With a single region (the best placed: North America) it would be 76 ms on average and 160 ms for the worst group.
  • A region has 8 servers and can serve 800 requests a second. If one region is lost, the busiest region left would have to carry 900 requests a second, 75% of the 1,200 peak.
  • Spread evenly, 3 regions need each at least 1/2 of the peak, 50%, which is 600 requests a second. At that size each region runs at 67% in normal times.
  • Not big enough: if the wrong region is lost, up to 100 requests a second would not fit and would be refused.
  • Replication is asynchronous with a lag of 2 s: the latest 2 s of writes exist only in the region that accepted them.
  • Two regions accept writes, so two users can change the same record before either region has heard of the other's change: that is a write conflict.
Round trip from each group of users (model inputs)
User groupShare of requestsServed byRound tripOne region (North America)
Users in North America40%North America20 ms20 ms
Users in Europe35%Europe20 ms80 ms
Users in Asia-Pacific25%Asia-Pacific20 ms160 ms
Mean over all users20 ms76 ms
Load on each region at the peak
RegionLoad beforeLoad afterCapacityUtilisationStateWrites not yet copied out
North America480 req/s480 req/s800 req/s60%Busy96
Europe420 req/s420 req/s800 req/s53%Busy84
Asia-Pacific300 req/s300 req/s800 req/s38%Healthy60
If one region is lost: what the busiest region left must carry
Region lostBusiest region leftUtilisationDoes not fitState
North America900 req/s113%100 req/sOverloaded
Europe900 req/s113%100 req/sOverloaded
Asia-Pacific780 req/s98%0Saturated

Users go to the nearest region that is left (active-passive: to the standby). Spread perfectly evenly, the load on each region left would be the peak divided by N − 1, where N is the number of regions. Nearest-region routing is rarely even, so the busiest region carries more.

Two regions, North America and Europe, write the same record 0.2 s apart, before either has seen the other's write
RecordBeforeWritten in North AmericaWritten in EuropeLast-write-wins keepsA merge keeps
Customer's first nameAnaAnneAnnaAnna · loses the write from North AmericaAnne / Anna · both versions, for a person to choose
Likes counter10111111 · loses the write from North America12 · both increments
Shopping cart(empty)booklamplamp · loses the write from North Americabook, lamp · both items

Last-write-wins compares timestamps taken from each region's clock. If the second region's clock is behind, its later write can look older and lose. A merge rule, such as a conflict-free replicated data type (CRDT), combines the writes instead of dropping one. It suits a counter or a set; for a field like a name nobody can say which value is right, so the versions are kept for a person to choose.

Illustrative values, not benchmarks of any real product.

Model notes

Assumptions

  • Users are in three places and send a fixed share of the requests: 40% from North America, 35% from Europe and 25% from Asia-Pacific. Two regions are in North America and Europe; the third is in Asia-Pacific. Every round-trip time in the lab (20 ms to the region on the same continent, 80 to 200 ms between continents) is an illustrative input, not a measurement.
  • Every region has the same servers, and each server can serve 100 requests a second. A region is overloaded when it carries more than it can serve. The lab does not model the slowdown that comes before that.
  • A health check runs on a fixed interval, and traffic is moved after the chosen number of failed checks in a row. The time shown is the longest this takes. A resolver keeps the answer it was given for up to the TTL, so the time left on a cached answer is spread evenly between zero and the TTL.
  • Replication is to one other region. Asynchronous: a write is confirmed before it is copied, and the copy trails by the lag you set. Synchronous: a write waits for the nearest other region to confirm.

Simplifications

  • Round-trip time stands in for latency. It leaves out the time a server needs, the number of round trips a request makes (name lookup, connection, TLS, the request itself), and congestion.
  • Users go to the region with the lowest round trip in the table. Geographic DNS, anycast or a global load balancer decide by the network and not by the map, and may differ.
  • After a failure every request to the failed region fails until its client has moved. There are no retries, and every client honours the TTL. Some resolvers and clients keep an answer longer than the TTL, and the model does not.
  • The standby in active-passive mode is idle until it is told to take over. It then needs the promotion time you set and serves at once at full capacity. A cold standby that must also start servers takes longer, and is not modelled.
  • The lab loses a whole region. A part of a region (one zone, one service) fails more often and in other ways, and a region can be reachable and still too slow.
  • Data at risk is the writes a second that the failed region was accepting, times the lag. The writes that were not copied are stranded in the failed region, not necessarily destroyed: they come back if the region does. A real lag moves around and grows under load.
  • The write conflicts are three illustrative records, written in two regions 0.2 seconds apart, before either write reaches the other region. How often real conflicts happen depends on the data, which the model does not have.
  • Synchronous replication is modelled as a wait for the nearest other region. Protocols that agree on every write between regions (consensus) cost more round trips and are not modelled, nor is what happens to a write when the other region cannot be reached: it waits, or it is refused.

Parameter values are illustrative. They are not benchmarks of any real product.

With Regions at 3 regions and Mode at Active-active, the first figure, Mean round trip, user to region, reads 20 ms, and under it the lab says what a single region would give: 76 ms. The first table shows why. Every group is served by the region on its own continent, 20 ms. If everything ran in North America, the best single place among the three, the three groups would see 20, 80 and 160 ms, and the mean over the users is 0.40 × 20 + 0.35 × 80 + 0.25 × 160, which is 76 ms. The worst-placed group, Asia-Pacific, sees 160 ms.

Now choose 2 regions. The two regions are in North America and Europe, so Asia-Pacific has no region of its own and is sent to North America, 160 ms away. The mean becomes 0.40 × 20 + 0.35 × 20 + 0.25 × 160, which is 55 ms, and the worst group is still at 160 ms. A second region helped the groups next to it and left the third where it was.

A round trip is not a whole request. A new connection needs several round trips before the first byte of an answer, as the TLS lesson showed, so the distance is paid more than once. Three round trips from Asia-Pacific to North America cost 3 × 160, which is 480 ms. Three round trips to a region in Asia-Pacific cost 3 × 20, which is 60 ms.

The servers are the obvious cost, and the next lesson counts them. The others are less visible, and the rest of the module is about them.

  • Spare capacity. To survive the loss of a region, the others must be able to carry its users. That capacity is idle in normal times.
  • Data in two places. Copying data between regions takes time, so a copy can be behind, and two regions that both accept writes can disagree.
  • Routing. Something has to send each user to a region, notice when one is gone, and stop sending users there.
  • A failure mode of its own. Moving traffic and data between regions is itself a thing that can go wrong, and it is used rarely, so it is the least tested part of a system.

AWS describes the most ambitious option, running the workload in several regions at once, as the most complex and costly approach to disaster recovery. That is a good reason to ask first whether the three reasons above apply to you.

What happens if your users are all in one place?

Section titled “What happens if your users are all in one place?”

Suppose all of the users are in North America. A region in North America gives them 20 ms. A region in Europe would give them 80 ms, and a region in Asia-Pacific 160 ms. The lab’s latency argument, mean 76 ms against 20 ms, disappears: the mean is 20 ms with one region. A second region may still be right, but the argument has to come from the other two reasons, availability or residency, and the second region does not need to be on another continent. A nearby region, even in the same country, is closer to the users than the far side of an ocean, and it is also closer to the first region, which matters when data is copied between them, as a later lesson shows.

  • A region is a set of data centres in one area. Zones inside a region protect against the loss of a data centre; a second region protects against the loss of the region.
  • The three reasons for a second region are latency, availability and data residency. Each can stand alone, and only the first depends on where the users are.
  • In the lab, three regions give a mean round trip of 20 ms where one region gives 76 ms, and two regions give 55 ms because Asia-Pacific stays 160 ms away.
  • A second region costs idle capacity, data kept in two places, routing, and a failure path that is rarely exercised.
  • If the users are in one place, the latency case disappears, and the choice rests on availability or residency.

Next: active-passive and active-active, the two ways to use a second region.

Your progress

Built by GhaziAlibi.

© ShardCraft. All rights reserved.