Sub topic 10
Multi-site active/active: serving traffic from multiple Regions
This chapter assumes you know Regions, Availability Zones, Route 53 basics, and the pilot light and warm standby strategies from earlier chapters. You should also be able to read AWS CLI commands and JSON.
What active/active means
In a multi-site active/active strategy, two or more Regions serve production traffic at the same time. Each Region runs a full copy of the workload at a size that can carry real load. There is no separate "DR Region" that waits for a disaster.
Because every Region is already serving users, failover is mostly a traffic decision. You do not start servers, promote a replica, or scale a fleet. Recovery time can be close to zero, and data loss depends on how you replicate data.
How traffic reaches both Regions
You need a routing layer that sends each user to a healthy Region. Two AWS services do this:
- Route 53 answers DNS queries. Latency, geolocation, or weighted records spread users across Regions. Health checks remove an unhealthy Region from the answers.
- AWS Global Accelerator gives you static anycast IP addresses and routes traffic to the closest healthy endpoint. It does not depend on DNS caching, so clients move away from a failed endpoint faster than they do with a low DNS TTL.
The hard part: data
Compute is easy to duplicate. Data is not. If both Regions accept writes, the same record can change in both places before replication catches up. You need a plan for each data store.
| Service | Active/active feature | Behavior |
|---|---|---|
| DynamoDB | Global tables | Every replica accepts writes. Conflicts resolve by last writer wins, and replication is usually under a second. |
| Aurora | Global database | One writer Region. Other Regions serve reads, and write forwarding can send writes to the primary. |
| S3 | Cross-Region replication | Replicates objects in each direction when you configure rules on both buckets. |
Aurora global database has a single writer, so it is not true multi-writer. Many designs accept this and route writes to one Region while reads stay local.
If your application needs writes in several Regions, choose one of these approaches:
- Use a store with multi-Region writes, such as DynamoDB global tables, and design for last-writer-wins.
- Assign each user or tenant a home Region, so a given record is written in only one place.
- Keep a single write Region and accept a short recovery step for writes during a Region failure.
Common errors
- Capacity that cannot absorb the failure. If each Region runs at 70% load, the survivor cannot take 140%. Size each Region to carry all traffic, or use Auto Scaling and check that quotas allow it.
- Hidden single-Region dependencies. A control plane, a shared identity store, or one CI/CD pipeline in a single Region defeats the design.
- Conflicting writes. Last-writer-wins can silently drop an update. Test your data model with concurrent writes.
- Replicated corruption. Replication copies bad data and accidental deletes. Active/active does not replace backups.
Cost and complexity
This is the most expensive strategy. You pay for full capacity in every Region, cross-Region data transfer, and the engineering time to build and test a multi-writer data model. Choose it when the RTO and RPO are near zero and the cost of downtime justifies it.
Exercise
Your application runs in two Regions, each at 60% of its capacity under normal load. A Region fails. Why might users still see errors, and what are two ways to prevent this?
Show answer
The surviving Region receives all traffic, which is about 120% of its capacity, so it is overloaded. Prevent this by sizing each Region to handle 100% of the traffic, or by using Auto Scaling with quotas and warm capacity high enough to scale up quickly.