Skip to content
StackDecode
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.

Users EUUsers USEU regionUS regionEU DBUS DB
  • 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

  1. 1Write in one region
  2. 2Replicate asynchronously
  3. 3Serve local reads
  4. 4Fail over if needed

Where it is used

Global data.

Watch out for

Replication lag and conflicts.

Related