Google Spanner concept page. Globally-distributed SQL database with external consistency via TrueTime API (GPS+atomic clocks). 3 regions (us-central1 leader, europe-west1 replica, asia-northeast1 replica), each with TrueTime time service. Per-shard Paxos groups (Shard A, Shard B), 2PC across shards. Clients hit shard leaders. 4 scenarios: single-shard RW txn with Paxos+commit-wait, cross-shard 2PC, lock-free read-only at snapshot, TrueTime uncertainty spike (GPS antenna fail). 2 ADRs: (1) TrueTime as foundation for external consistency vs HLC alternative, (2) when Spanner is justified vs cheaper alternatives.
Spanner is a synchronously replicated, multi-version distributed relational database. Read-write transactions at the default serializable isolation are externally consistent. Read-only transactions read one consistent timestamp without locks or a commit operation; they are not read-write commits with a hidden commit-wait.
Write latency depends on client placement, leader placement, replica configuration, contention, TrueTime uncertainty, and the number of participating splits. A multi-region topology cannot honestly promise a fixed 10–15 ms intercontinental write latency.
Single-split read-write transaction. A short read-write transaction reaches one leader, a replication quorum, and commit-wait before success.
Cross-split distributed transaction. The coordinator involves every participant and retries the whole transaction after an abort.
Lock-free read-only snapshot. Several reads use one chosen timestamp; there is no commit request and no read-write commit-wait.
Leader distance and key hotspot. Remote routing and a monotonic key can add latency or concentrate load; neither is a fixed service constant.
Введите числа или выберите пресет