System Design
18. Advanced Distributed ArchitectureAnimated
Geo-Partitioning
Keeping each user's data in their region.
The idea
Data is partitioned by geography for latency and data-residency law.
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
- 1Choose a partition by region
- 2Store user data locally
- 3Route requests there
- 4Replicate selectively
Where it is used
Compliance such as GDPR.
Watch out for
Users who travel or cross-region queries.