Computer scienceLearning library

Distributed systems

Reason about concurrency, communication, and partial failure using original papers and reproducible models. Historical papers establish foundations; production products are examples rather than universal implementations of those ideas.

Advanced12 chapters11 practice questions5 references
Start coursePractise questions

Get an in-app notice when new lessons or practice are added.

12 chapters across 4 modules

Course chapters

Explore all 12 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.

01 · Models and uncertainty3 chapters
  1. Partial failure and uncertain outcomes

    Reason about what a client knows when a remote operation times out.

    • Explain why a timeout does not reveal whether remote work executed

    Practice: Draw the possible outcomes of a timed-out payment-like operation without implementing a real payment.

    Read the primary referenceExpanded reading · Ready
  2. Logical clocks and causality

    • Distinguish wall-clock order from happens-before relationships

    Practice: Assign logical timestamps to events and identify concurrent pairs.

    Read the primary referenceLesson guide · Ready
  3. Consistency models and histories

    • Separate per-operation guarantees from informal claims of freshness

    Practice: Check sample read/write histories against a stated consistency model.

    Read the primary referenceLesson guide · Ready
02 · Replication and agreement3 chapters
  1. Leader-based replication

    • Explain log replication, acknowledgment rules, and stale followers

    Practice: Trace a write through a three-node replicated log.

    Read the primary referenceLesson guide · Ready
  2. Consensus and leader election

    • State safety and liveness assumptions in a consensus design

    Practice: Simulate a split vote and a leader failure using a small event trace.

    Read the primary referenceLesson guide · Ready
  3. Quorums and read/write tradeoffs

    • Explain what quorum overlap does and does not guarantee

    Practice: Compare quorum settings under partitions with explicit version-resolution rules.

    Read the primary referenceLesson guide · Ready
03 · Data and messaging3 chapters
  1. Partitions, ordering, and delivery

    • Specify the scope of ordering and duplicate delivery guarantees

    Practice: Partition a stream of account-like events and identify where ordering is required.

    Read the primary referenceLesson guide · Ready
  2. Transactions and coordination

    • Compare local atomicity with a multi-participant commit protocol

    Practice: Trace a coordinator failure and identify which participants may block.

    Read the primary referenceLesson guide · Ready
  3. Clocks and globally distributed data

    • Explain why bounded clock uncertainty changes a design’s assumptions

    Practice: Read the original Spanner architecture and contrast its assumptions with ordinary client clocks.

    Read the primary referenceLesson guide · Ready
04 · Resilience and a failure lab3 chapters
  1. Retries, idempotency, and deduplication

    • Bound retries while preventing repeated side effects

    Practice: Implement a simulated idempotency store and test a lost response.

    Read the primary referenceLesson guide · Ready
  2. Fault injection and invariants

    • Write a safety invariant before injecting packet loss or reordering

    Practice: Test a toy replicated register against a deterministic failure schedule.

    Read the primary referenceLesson guide · Ready
  3. Design a resilient learning-progress service

    • Separate business requirements from chosen consistency and availability tradeoffs

    Practice: Document offline edits, conflict rules, recovery behavior, and evidence from a small simulator.

    Read the primary referenceLesson guide · Ready

Learn it. Check it. Try again.

11 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.

Open Distributed systems practice

Books & references

Free reading at the publisher or author’s site. External materials keep their own licenses.