Unit 10 of 15 · about 5 hours · explain

Real-system architecture reconstruction, path tracing and control-plane versus data-plane state

Extension work aims at a system you did not write. Reconstruction turns a paper's boxes into named state and paths, which is the only form you can reason about under faults.

You'll be able to

  • Reconstruct an unfamiliar subsystem's protocol, storage, replication, consistency, failure, security and operations paths from its paper.
  • Trace one request type end to end and name the state each layer keeps.
  • Separate control-plane from data-plane state and mark every control-plane dependency on the data path.

Covers

System architecture reconstructionProtocol, storage and recovery path tracingControl-plane versus data-plane state
1

Read

In this order, only the parts listed

0 of 3 done

  1. FoundationDB paper Sections 1 to 3: unbundled architectureFoundationDB: A Distributed Unbundled Transactional Key Value Store (Zhou et al., 2021)

    Sections 1 to 3: unbundled layers over a stateless transaction core, transaction management, replication and recovery with log servers and coarse checkpoints

  2. Lecture #19: Snowflake and disaggregated storageCMU 15-721 - Selected Advanced Database Systems Units

    Lecture #19 (System Analysis: Snowflake): the Snowflake elastic warehouse paper and the disaggregated-storage engine paper; trace protocol, storage, replication, consistency, failure and operations paths

    Read one lecture group only (#17-#22 system analyses, here #19). Papers are vocabulary and comparison material; there is no runnable project.

  3. HLD Handbook: disaster recovery and failover planesHLD Handbook - CRDTs, Multi-Region and Architecture Trade-offs

    The RTO and RPO spectrum section (backup-and-restore to active-active with cost tiers) and the failover insight: control-plane-dependent failover is vulnerable to the outage it answers, so prefer data-plane operations

    Treat the RTO and RPO tiers and the cost multipliers as reported figures for reasoning, never as targets for your measurements.

2

Focus on

  • Reconstruct paths, not boxes. For one request type, follow it through protocol, storage, replication, consistency check, failure handling, security (authentication, authorization, tenant boundaries) and operations tooling.
  • Separate control plane from data plane. Membership, failover triggers and config changes are control; reads, writes and replication traffic are data. An outage that breaks the first must not need it to survive.
  • Name the state each plane keeps. If failover needs state the outage can destroy, the design has a circular dependency.
  • Disaggregation moves the failure boundary. Authoritative data outlives a compute node, so replacement compute reuses shared storage and rebuilds only caches and query state; the shared store is still a failure domain with its own durability and recovery design.
Common mistakes · 3
  • Drawing boxes without state. An architecture diagram that names no per-component state cannot answer what survives a crash.
  • Treating a paper's cluster numbers as your targets. The Snowflake and FoundationDB figures describe their setups; your measurements need your own setup stated.
  • Missing the circular dependency: a failover plan that calls the control plane it is failing over from.
3

Try it yourself

Closed-book, before checking anything

Closed-book, sketch the request path of one system paper across protocol, storage, replication, consistency, failure, security and operations layers, marking every control-plane dependency on the data path.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.What seven paths does a reconstruction trace?Answer

    Protocol, storage, replication, consistency, failure, security and operations: what a request touches, where state lands, how replicas agree, which contract holds, what breaks it, who may do it and how operators see it.

  2. 2.Why must disaster failover prefer data-plane operations?Answer

    Control-plane operations (launching capacity, changing DNS, promoting replicas) can be impaired by the outage itself, as in the December 2021 AWS event the Handbook cites. Pre-provisioned capacity and pre-configured routing survive it.

  3. 3.What does disaggregated storage change about recovery?Answer

    Authoritative data outlives the compute node, so a replacement reuses shared storage and rebuilds only caches and in-flight query state. Losing the shared store is still its own failure, with its own durability and recovery design.

  4. 4.A paper reports sub-second failover. What do you need before citing it?Answer

    Its setup: cluster size, workload, failure type and what was measured. Without the setup it is a reported figure, not a claim about your system.

You're done when

You trace one unfamiliar system's request path across all seven layers from the paper, with control-plane dependencies marked and no paper number quoted as your own result.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 12 more in the section
  • 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.

  • 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.tla with their .cfg files) 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 RuleBasedStateMachine against 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.

  • 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.