Distributed Systems Foundations
Partial failure, safety, liveness, system models, and the building blocks every distributed design assumes.
Figure: Independent nodes with partial failure — the defining constraint of distributed systems.
What You'll Learn
This domain establishes the vocabulary and mental models used throughout the curriculum. You will be able to explain why distribution is hard, separate safety from liveness, state assumptions about failures and timing, and design APIs that survive ambiguous outcomes.
Chapters
| Chapter | Focus |
|---|---|
| What Is a Distributed System? | Definition, independent failure, architectural consequences |
| Partial Failure | Timeout ambiguity, retries, cascading failures |
| Safety and Liveness | Correctness properties and what can be guaranteed |
| Distributed System Models | Sync vs async, crash vs Byzantine failures |
| Failure Detectors | Suspecting crashed nodes, lease-based detection |
| Idempotency | Safe retries, idempotency keys, deduplication |
Learning Path
- Start with What Is a Distributed System? for vocabulary and motivation.
- Study Partial Failure and Safety and Liveness — these appear in every interview.
- Read Distributed System Models before consensus and consistency chapters.
- Finish with Failure Detectors and Idempotency — directly applicable to production APIs.
Interview Prep
| Resource | Topic |
|---|---|
| Stripe Payment Idempotency | Timeout ambiguity, duplicate charges |
| Netflix Cascading Failure | Retry storms, circuit breakers |
| Lab 008 idempotent API | Intro idempotency on :8081 / :8091 (Docker) |
| Lab 017 Stripe stack | Full PostgreSQL + Redis + webhooks on :8080 |
Prerequisites
- Computer Architecture — helpful for memory and concurrency intuition
- Networking — TCP, latency, partitions
Production readiness + Game Day
Every substantive chapter in this domain targets the Production LLD and Game Day Standard: whiteboard Production LLD (APIs, data, failure paths) and run Game Day drills (inject → detect → mitigate → verify → learn).
| Start here | What you practice |
|---|---|
| Chapter §22A / §22B (where present) | Ship-ready LLD + drill catalog |
| Chapter §23 PRACTICE | Full interview script |
| Curriculum Overview — Phase 7 | Rollout status |
Next Domain
Continue to Time, Ordering, and Coordination, then Consistency Models.
Return to the Curriculum Overview for the full learning path.