Unit 12 of 15 · about 4 hours · explain, derive
Geo-replication assumptions, storage disaggregation and a geo-replication design comparison
Your extension will run in one region, but its design must say what breaks across regions. Light speed and residency law are the two constraints no mechanism removes.
You'll be able to
- State the cross-region latency terms an acknowledgment contract requires and the failure assumptions (region loss, residency law) for a design.
- Explain storage disaggregation: what moves where, and how recovery and scaling change.
- Compare two geo-replication designs on workload, failure, consistency, cost and evolution as preparation for the three-architecture comparison in the defense unit.
Covers
Read
In this order, only the parts listed
0 of 2 done
- HLD Handbook: multi-region architectureHLD Handbook - CRDTs, Multi-Region and Architecture Trade-offs
Why multi-region (failures, latency, law) with the speed-of-light figures; the RTO and RPO spectrum (backup-and-restore to active-active); active-passive mechanics; active-active with the conflict-resolution spectrum; the global strong-consistency database survey (Spanner, CockroachDB, DynamoDB Global Tables MRSC, Aurora, Cosmos DB); the Cloudflare per-object-singleton alternative
Treat the outage anecdotes, the RTO and RPO tiers and the cost multipliers as reported figures. Your comparison uses them as inputs, never as your own measured results.
- Lecture #19: Snowflake (disaggregated storage)CMU 15-721 - Selected Advanced Database Systems Units
Lecture #19 papers: the Snowflake elastic warehouse paper and the disaggregated-storage engine paper; read for what compute and storage separation changes about scaling and recovery
Same lecture group as the reconstruction unit (#17-#22); one group only. Papers inform the comparison; there is no runnable artifact.
Focus on
- If the acknowledgment contract requires durable agreement with a remote region, the write waits for that communication. Strong consistency alone does not make every write wait for every region; state the quorum placement and the region-loss guarantee.
- Residency is a legal invariant, not a latency optimization. EU data staying in the EU constrains placement before any performance argument.
- Active-active pays conflict resolution plus metadata; single-leader-per-object pays a per-object throughput bound and a routing dependency. Name which cost your comparison accepts.
- Disaggregation separates scaling from recovery: replacement compute reuses shared storage and rebuilds only caches and query state, while the shared store becomes a failure domain that needs its own durability and recovery design.
Common mistakes · 3
- Comparing designs by feature lists. The comparison dimensions are workload, failure, consistency, cost and evolution; a design that wins all five is misread.
- Quoting Aurora's sub-second lag as a consistency guarantee. The Handbook presents it as a disaster-recovery and local-read feature with typical lag, not as globally consistent.
- Assuming MRSC removes the latency question. AWS documentation read 15 October 2026 requires MRSC to span exactly three supported Regions, as three replicas or two plus a witness, across continents if you like; a write waits for synchronous replication to at least one other Region, which is one latency term, not the whole request.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.A write originates in Virginia and its acknowledgment contract needs a durable replica in Singapore. What sets its latency?Answer
The route round trip to Singapore plus protocol and storage costs. The Handbook's 180-200 ms is an illustrative route figure, not a speed-of-light bound or a measurement of your design; a quorum without Singapore would not pay it.
2.What breaks first when EU residency meets a single global database?Answer
Placement: EU user rows must live in EU replicas. The fix is jurisdiction sharding (region-pinned partitions), not a faster global commit.
3.Contrast CRDT active-active with per-object singletons on one axis each.Answer
Active-active pays metadata and conflict-resolution complexity for zero-coordination writes. Singletons pay a per-object throughput bound and a routing dependency for simple strong-per-object order.
4.What does disaggregation change about adding capacity during a spike?Answer
Compute scales without moving authoritative data, and replacement compute rebuilds only caches and query state. The shared store becomes the availability and scaling bottleneck instead.
Practice
- HLD Handbook: multi-region fintech design exercise
Exercise: sub-5-minute RTO, sub-second data loss, EU and US residency; pick database and replication model, design failover, estimate the cost difference versus single-region; attempt before the solution
Compare with the solution's jurisdiction sharding and warm standby, but audit its claims: asynchronous lag is not a guaranteed RPO, preconfigured health-based routing differs from control-plane record edits, and query results can carry personal data.
You're done when
You state a cross-region write latency from a stated route round trip and quorum placement without notes, and your two-design comparison scores workload, failure, consistency, cost and evolution with losers named per axis.
Only when you can do this without notes.
Leads to
- Recovery point and time objectives and disaster-recovery failover and failbackCarry the RTO and RPO comparison into recovery objectives and failover drills.
- Raw histories, evidence labels, an independent reproduction package and a skeptical defenseLabel every cross-region number in the comparison with its source and setup.
Notes
Resources · 2 for this unit, 13 more in the section
- HLD Handbook - CRDTs, Multi-Region and Architecture Trade-offsHLD Handbook · support
Read the CRDT, multi-region, distributed SQL and relevant case-study chapters only after the formal core passes. Use its design prompts to prepare the final comparison and defense.
- CMU 15-721 - Selected Advanced Database Systems UnitsCarnegie Mellon Database Group · depth
Select at most one lecture group that informs your extension: #02 and #03 (data formats and encoding), #08 (scheduling and coordination) or #17 to #22 (system analyses such as BigQuery, Databricks, Snowflake, DuckDB and Redshift), with their papers. The course project needs a group, cloud credits and staff sign-off, so there is no runnable self-study project.
Also in this section
- TLA+ Video CourseLeslie Lamport · primary
Complete lectures 1 to 10 (lectures 8, 9 and 10 have two parts each) and check the corrections page, while specifying a reduced transaction, workflow or replicated-log model from the capstone. Run TLC after every extension, report the model bounds with every result, and retain the first meaningful counterexample rather than polishing only the final model.
- TLA+ ExamplesTLA+ Foundation · support
Check
specifications/transaction_commit/(TCommit.tla,TwoPhase.tla,PaxosCommit.tlawith their.cfgfiles) with TLC alongside the lectures, and read the Paxos specifications for depth.specifications/TwoPhase/is a hardware handshake, not transaction commit. - Cambridge Concurrent and Distributed Systems Notes (Kleppmann) - CRDTs and CollaborationUniversity of Cambridge (Martin Kleppmann) · support
Use Section 8.1 (operation-based and state-based CRDTs, operational transformation) for the CRDT unit, and work Exercise 21 (prove the operation-based map CRDT converges) and Exercise 22 (its multi-value variant).
- A Comprehensive Study of Convergent and Commutative Replicated Data Types (Shapiro et al., 2011)INRIA report (Berkeley course copy) · support
Read Sections 1 to 3 (state-based and operation-based definitions, the semilattice and delivery conditions) and one example type for your implementation, not the whole catalog.
- Learn TLA+Hillel Wayne · support
Use the core lessons and the examples as a second explanation when a lecture stalls, and as the PlusCal reference if you write algorithms rather than raw actions.
- Hypothesis - Stateful TestingHypothesis · required
Use
RuleBasedStateMachineagainst a reference model for property-based state-machine tests of your extension, keep the failing seeds and shrunk examples, and plant a bug to show the machine detects it. - MIT 6.5840 - Verification Lecture and Final ProjectMIT PDOS · required
Study the Spring 2026 verification lecture and IronFleet reading, then use the final-project guidance to frame a bounded real-system extension, evaluation and report. Course grading and staff review are unavailable to self-study, so use the roadmap defense rubric.
- Jepsen - Consistency Models and AnalysesJepsen · required
Use the framework's generator, client, nemesis and checker roles to design the campaign, Knossos for single-register linearizability and Elle for transactional anomalies on recorded histories, and the public analyses for fault models. A simplified local checker must declare its object, model and completeness limits.
- Elle: Inferring Isolation Anomalies from Experimental Observations (Kingsbury and Alvaro)arXiv · required
Read how Elle infers version orders from list-append and register histories and detects cycles for G0 to G2. It needs complete histories, and a clean run is not a proof of serializability.
- How Amazon Web Services Uses Formal Methods (Newcombe et al., 2015)Amazon Science · support
Read it for why industrial teams specify designs in TLA+ and which bugs model checking found that testing missed. Its effort figures are anecdotes, not benchmarks.
- FoundationDB: A Distributed Unbundled Transactional Key Value Store (Zhou et al., 2021)FoundationDB · support
Read the simulation-testing section (deterministic single-threaded simulation, fault injection, seed replay) as the model for your own scheduler, and the architecture for unbundled transactions.
- DDIA 2e - Chapters 9, 10 and 14 ReviewMartin Kleppmann and Chris Riccomini · required
Revisit uncertainty, consistency, consensus and responsible system design while extracting the final contract. Use the book to challenge assumptions and alternatives, not to replace executable evidence.
- Replicated Log and Stream Processor - Final CapstoneRoadmap-Final · support
Finish the protocol and invariant specification, deterministic fault campaign, bounded real-code extension, fallback, ablations, workload regions, negative result, operations dossier and independent reproduction package.