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