System Design
18. Advanced Distributed ArchitectureAnimated
Geo-Replication
Copying data across regions.
The idea
Each region has a copy to read from locally and to survive regional loss.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Users are routed to the nearest region for low latency.
- step:
- 1/4
- at:
- Users EU
1/10
The green dot is a request moving through the system.
Step by step
- 1Write in one region
- 2Replicate asynchronously
- 3Serve local reads
- 4Fail over if needed
Where it is used
Global data.
Watch out for
Replication lag and conflicts.