Distributed Systems & Data Infrastructure

Build dependable data systems from versioned RPC and crash-safe storage through replication, consensus, transactions, streams, security, evolution and formal validation. The route revises the fundamentals, then requires deterministic fault histories and a single integrated subsystem whose guarantees remain precise under failure.

9 sections · 124 units · about 543 hours

0/124
Start hereRequest, response and streaming state machines, and textual versus binary encoding
1Protocols, RPC and Ambiguous Outcomes0 of 13 passed · project: Versioned RPC with replayable faults and bounded work
  1. Request, response and streaming state machines, and textual versus binary encoding4h
  2. Schema fields, defaults, unknown-field preservation and wire compatibility4h
  3. Length-prefixed and delimited framing, partial reads and writes and coalesced messages4h
  4. Message size, allocation and decompression limits, and checksum boundaries3h
  5. Request IDs, client incarnations and idempotency keys4h
  6. Ambiguous outcomes after timeout and monotonic deadline propagation3h
  7. Bounded retries, exponential backoff with jitter and duplicate-suppression state4h
  8. Structured errors, cancellation propagation and streaming flow control4h
  9. Authentication, authorization, service discovery and gRPC interceptors4h
  10. Connection pools, load balancing, health and HTTP/3 transport behavior4h
  11. Bounded queues, end-to-end backpressure, overload rejection and retry amplification4h
  12. Trace correlation without synchronized clocks and a deterministic faulty network4h
  13. Versioned framed RPC, a mixed-version test matrix and the rollout contract5h
2Time, Identity, Membership and Failure0 of 12 passed · project: Restart-safe clocks, membership and fenced authority
  1. Wall and monotonic clocks, drift, skew, backward jumps and synchronization uncertainty4h
  2. Happens-before, Lamport clocks and total-order tie breaking4h
  3. Vector clock comparison, concurrency and dotted version vectors4h
  4. Hybrid logical clock state, persistence and implementation4h
  5. Unique identifiers, incarnation numbers and restart-safe identity4h
  6. Heartbeats, observation windows, detector completeness and accuracy, and suspicion thresholds4h
  7. False suspicion, a \(\phi\) accrual detector and detection-delay measurement4h
  8. Gossip dissemination, a gossip membership implementation and convergence measurement5h
  9. Membership join, leave and replacement, versioned views and stale-view handling4h
  10. Partitions, asymmetric reachability, split-brain boundaries and correlated failure domains4h
  11. Leases, process pauses, fencing tokens and a lease implementation5h
  12. Deterministic membership and network simulation4h
3Storage Engines, Durability and Recovery0 of 12 passed · project: Crash-safe segmented storage with defensible acknowledgement boundaries
  1. Point, range and analytical workloads, OLTP versus OLAP, and records, pages and segments4h
  2. Append-only log layout, write-ahead ordering and checksummed records4h
  3. Buffered, flushed and durable write states and the fsync contract4h
  4. Torn, truncated and reordered writes and crash-consistent metadata publication4h
  5. Recovery scanning, tail repair and recovery-time measurement4h
  6. In-memory and sparse indexes, and B-tree page and split invariants4h
  7. LSM levels, memtable flush, SSTables and Bloom filter false positives4h
  8. Compaction policy, tombstones, atomic manifests and segment compaction with atomic swap5h
  9. Compression, buffer-pool caching and sequential versus random I/O4h
  10. Read, write and space amplification and their measurement4h
  11. Row versus column layout, columnar files, zone maps and object-storage table metadata4h
  12. A crash-safe key-value store with crash and corruption injection and model-based tests6h
4Replication, Consistency and Convergence0 of 14 passed · project: Replicated store with checked histories and repair evidence
  1. Leader-follower, multi-leader and leaderless replication4h
  2. Synchronous and asynchronous acknowledgement, replication logs, positions and lag4h
  3. Failover, stale-leader risk and replica rejoin and replacement4h
  4. Stale reads, read-your-writes and monotonic read and write guarantees4h
  5. Linearizability as a history property and sequential consistency4h
  6. Causal and eventual consistency, convergence and CRDT vocabulary4h
  7. Availability under partition, quorum intersection and its membership assumptions5h
  8. Sloppy quorums, hinted handoff and read repair4h
  9. Background anti-entropy and Merkle trees for difference localization4h
  10. Concurrent write conflicts and last-write-wins clock hazards3h
  11. Version vectors, dotted conflict sets and delete convergence with tombstones6h
  12. Operation history schema, a single-object reference model and a consistency checker6h
  13. Deterministic replicated-store simulation with partition, failover and repair schedules6h
  14. Latency, availability, staleness, conflict, repair traffic and convergence measurement6h
5Consensus, Replicated Logs and Coordination0 of 14 passed · project: Consensus log with durable authority and replayable counterexamples
  1. State-machine replication and safety versus liveness3h
  2. Terms and epochs, follower, candidate and leader states and randomized election timeouts6h
  3. The RequestVote freshness rule, split votes, pre-vote and leadership transfer4h
  4. The AppendEntries consistency check and the log matching property6h
  5. Conflict truncation, log repair and slow-follower backtracking5h
  6. Majority commitment, the current-term restriction, committed-entry preservation and leader completeness5h
  7. Ordered exactly-once application, persistent term, vote and log state, and crash and restart6h
  8. Leader partitions, stale messages and fenced locks4h
  9. Snapshot creation, log compaction and snapshot installation6h
  10. Membership change safety and joint consensus5h
  11. Linearizable read paths, ReadIndex and lease reads8h
  12. A deterministic message scheduler with seeded random schedules4h
  13. Invariant checks after every transition and failure-history minimization5h
  14. Election, commit, recovery, message and snapshot costs and availability versus safety diagnosis4h
6Partitioning, Transactions and Durable Workflows0 of 14 passed · project: Fenced shard movement and recoverable transaction workflows
  1. Range and hash partitioning2h
  2. Consistent hashing rings, rendezvous hashing and weighted virtual nodes4h
  3. Versioned partition maps, routing and redirects under stale configuration, with movement tests5h
  4. Replication-aware placement, online shard movement and ownership epochs4h
  5. Hot keys, load skew and scatter-gather tail latency4h
  6. Local and global secondary indexes, cross-shard aggregation and CDC-maintained indexes4h
  7. ACID boundaries, dirty and nonrepeatable reads, lost updates and write skew4h
  8. Serializability, strict serializability, two-phase locking and deadlocks4h
  9. Timestamp ordering, optimistic concurrency, MVCC and read-only snapshot coordination4h
  10. Two-phase commit states, durable prepare, coordinator failure and in-doubt recovery5h
  11. Saga orchestration and choreography and compensation semantics4h
  12. Transactional outbox and inbox, idempotent steps and the exactly-once effect boundary4h
  13. A durable workflow with fault tests and invariant reconciliation6h
  14. Skew, movement, abort and recovery measurement4h
7Durable Logs, Queues and Stream Processing0 of 15 passed · project: Replayable partition logs and checkpointed event-time effects
  1. Append-only segmented logs, offsets, sparse indexes, retention and compaction4h
  2. Partitions, per-partition ordering, replication and high-watermark visibility4h
  3. Producer acknowledgements, idempotent sequence state and transactional scope4h
  4. Pull consumers, fetch positions, consumer groups and rebalance protocols4h
  5. Offset commits versus application state and at-most-once, at-least-once and effectively-once delivery4h
  6. Retries, poison records, dead letters and bounded backlog4h
  7. Deterministic replay, schema registries and change data capture4h
  8. Event time versus processing time and tumbling, sliding and session windows4h
  9. Watermarks, idle-source stalls and late-data policy4h
  10. Keyed state, checkpoint barriers and the source-state-sink recovery boundary5h
  11. Distributed dataflow graphs, shuffle and operator parallelism4h
  12. Batch and stream unification, open table formats and incremental views4h
  13. A mini partition log with consumer groups and replay6h
  14. An event-time processor with checkpoints5h
  15. Lag, throughput, recovery and duplicate measurement4h
8Security, Operations, Evolution and ML Data Contracts0 of 15 passed · project: Operate and evolve a governed data path
  1. Threat models for clients, services and operators, workload identity and mutual TLS4h
  2. Authorization on every data path, tenant isolation and multi-tenant fault and restore tests5h
  3. Encryption in transit and at rest, secret and key rotation and audit integrity4h
  4. SLIs, SLOs, error budgets, telemetry and incident reconstruction5h
  5. Capacity headroom, failure reserve, overload detection and load shedding4h
  6. Retry budgets, circuit breaking, cascading and correlated failure and chaos scenarios4h
  7. Replication versus backup and verified backup and restore4h
  8. Recovery point and time objectives and disaster-recovery failover and failback4h
  9. Rolling protocol and schema evolution, mixed-version behavior and feature gates4h
  10. Expand, migrate and contract changes, rollback boundaries and migration tests5h
  11. Data classification, retention, residency and privacy-preserving analytics4h
  12. Deletion propagation, lineage, provenance and reproducible backfills4h
  13. Point-in-time feature joins and online and offline feature equivalence4h
  14. Model-registry state, artifact checksums, retrieval-index freshness and dataset version identity5h
  15. A load, chaos, backup and restore campaign with capacity, recovery and migration costs5h
9Formal Validation and Real-System Extension0 of 15 passed · project: Validate a bounded extension and defend its evidence
  1. Abstract state-machine specifications: variables, initial state and next-state relation4h
  2. Safety invariants, liveness properties and fairness assumptions4h
  3. Implementation versus specification refinement, nondeterminism and environment actions4h
  4. Finite model bounds, TLC checking, counterexample traces and a two-phase commit specification6h
  5. A replicated-log or workflow specification5h
  6. State-based and operation-based CRDT requirements and one CRDT implementation5h
  7. Property-based state-machine testing with crash and restart, and deterministic schedule replay4h
  8. Operation-history normalization and linearizability checker scope4h
  9. Jepsen generator, client, nemesis and checker roles and a fault and workload coverage matrix4h
  10. Real-system architecture reconstruction, path tracing and control-plane versus data-plane state5h
  11. Consistency, durability and delivery contract extraction and ML data-plane provenance closure4h
  12. Geo-replication assumptions, storage disaggregation and a geo-replication design comparison4h
  13. One bounded real-code contribution with a reference fallback and layered tests6h
  14. Three ablations, three workload regions and preserved negative results5h
  15. Raw histories, evidence labels, an independent reproduction package and a skeptical defense5h

Final project: Replicated Log and Stream Processor

Carry one reduced data system through the entire track. Build correctness and recovery on deterministic local processes, then add one bounded real-system extension whose performance, failure and evidence boundaries can withstand skeptical review.

  • A versioned protocol, deterministic network and storage fault harness, restart-safe identity and time model, checksummed local log, explicit acknowledgement contract, replication histories and executable consistency checks.
  • A replicated or consensus-backed partition log with ownership epochs, durable producer and consumer state, rebalance, transaction or saga boundary, event-time processing, checkpoints, backpressure, replay and minimized safety and liveness failures.
  • A secured and observable production dossier plus one bounded real-code extension with migration and rollback, verified backup and restore, three ablations, three workload regions, an honest negative result, formal or property validation and independent reproduction with evidence labels.
How it's graded · about 24 to 36 hours

Executable distributed foundations

Pass: A versioned protocol, deterministic network and storage fault harness, restart-safe identity and time model, checksummed local log and explicit acknowledgement contract have retained replication histories and executable consistency checks against independent references, with timing-free safety gates.

Great: Planted protocol, persistence and identity faults fail before repair. Event-stream replay reproduces minimized counterexamples independently of random draws, and acknowledged-prefix checks distinguish receipt, persistence, commit, application and visibility without relying on wall-clock order.

Replicated stream data path

Pass: A replicated or consensus-backed partition log integrates ownership epochs, durable producer and consumer state, rebalance, a transaction or saga boundary, event-time processing, checkpoints, backpressure and replay. Independent history and state oracles check minimized safety and conditional liveness failures.

Great: Fault campaigns cover network, identity, clock, storage, snapshot, consumer, sink, schema, overload and hot-partition failures; verdicts link raw traces to contracts, with explicit liveness assumptions and coverage gaps. Snapshot-plus-suffix recovery agrees with full replay.

Production dossier and extension

Pass: The secured, observable dossier verifies backup and restore. The DS-9 project's bounded real-code extension artifacts cover migration, rollback, three ablations, three workload regions, an honest negative result and formal or property validation; its reproduction package supplies evidence labels.

Great: A blinded fault campaign preserves policy and effect boundaries through restore, migration and fallback. Repeated matched measurements report latency distributions, goodput, lag, resource costs, checkpoint and recovery costs, uncertainty and observer overhead, including losing regimes.

Reproducibility and judgment

Pass: An independent reader runs the DS-9 reproduction package from a clean checkout, regenerating exact verdicts and tables from raw records. Evidence labels distinguish proof, bounded model checks, simulation, measurements and inference; assumptions and negative results bound every claim.

Great: The skeptical defense quantitatively compares three architectures across workload, failure, consistency, cost and evolution, separates cross-region inference from measurements on your machine, and identifies mechanisms to remove when their benefit is unsupported.