techdiagrams.net
← All templates

Global multi-leader database

Three regions, each accepting local writes, meshed with async replication — version vectors detect conflicts and the LWW hazard is spelled out on the canvas.

Open in editor — free, no login Download JSON
US-EASTEU-WESTAP-SOUTHwrite · ~5msasync repl · version vectorsasync replasync repl · ~180ms RTTApp — USwrites locallyLeader — USaccepts writesApp — EUwrites locallyLeader — EUaccepts writesApp — APACwrites locallyLeader — APACaccepts writesHAZARD — last-writer-wins: with clock skew, a write thathappened LATER by wall-clock can be silently discarded.Use version vectors + application merge for anything youcan't afford to lose (carts, counters, documents → CRDTs).

What this design does

Multi-leader replication buys local write latency in every region and survives region loss — at the price of conflicts. This diagram shows the full-mesh async replication between three regional leaders, version vectors doing conflict detection, and the annotation every team needs taped to the wall: last-writer-wins silently drops data when clocks disagree. Import it and argue about your merge strategy with the actual topology in front of you.

The patterns it composes

Import it, attach your own numbers, and verify the design against failures — or read the engineering notes.