Search DistillSys

Find a concept

Type at least two characters to search lessons, designs, papers, and interview prep.

Architectureadvanced7 min read

Geo Replication

Copy data across regions while balancing latency, durability, locality, and consistency.

2–5 minute refresher
Mental model

Place replicas by fault domain, then decide when remote durability enters the acknowledgement path

30second
refresher
Geo replication maintains copies across regions to survive large failures, serve local reads, and meet data-location requirements. Synchronous replication spends wide-area latency; asynchronous replication accepts a nonzero data-loss window.

What problem does it solve?

Zone-local replicas do not survive a regional disaster, while one remote primary creates poor latency and locality for global users.

How it works

  1. Choose regions based on latency, regulation, and correlated risk.
  2. Place replica groups across independent zones and regions.
  3. Decide whether remote acknowledgement is synchronous, asynchronous, or policy-based.
  4. Expose replication lag and safe recovery points.
  5. Practice promotion, client rerouting, backlog catch-up, and failback.
Decision guide

Key trade-offs

ChoiceWhat you gainWhat it costs
Synchronous remoteNear-zero committed data lossWide-area write latency
Asynchronous remoteFast local writesNonzero RPO
Local readsLow read latencyPotential staleness
What happens if?

The primary region disappears with seconds of unshipped writes

Promotion loses those acknowledged local writes unless the contract required remote durability. Preserve the recovery point, communicate the RPO, and reconcile clients that observed outcomes absent from the survivor.

Where it appears

  • Cross-region database replicas
  • Object storage replication
  • Global log mirroring
  • Disaster-recovery clusters
Senior interview modeHow do synchronous and asynchronous geo replication change RPO?Show answer
Synchronous remote acknowledgement can make committed RPO approach zero for covered failures; asynchronous replication leaves an RPO roughly bounded by unshipped or unapplied lag, subject to recovery correctness.
#geo replication#regions#latency#durability