Distributed Systems Fundamentals
Reason about partial failure, time, consistency models and consensus, and use CAP and PACELC to state what a design guarantees.
4 objectives 6 steps about 130 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Describe distributed failure modes (crashes, partitions, message loss and reordering, clock skew, gray failures) and their effect on a design.
- Place a design on the consistency spectrum (linearizable, sequential, causal, read-your-writes, eventual) and explain the trade-offs with CAP and PACELC.
- Explain event ordering with logical clocks and why wall-clock timestamps cannot safely order events across nodes.
- Explain conceptually how quorums and consensus (for example Raft) provide leader election and replicated state, and when to rely on a coordination service with leases and fencing tokens.
Lesson plan
6 steps, about 130 min · 5 of 5 lessons available so far
- Partial failure and the fallacies of distributed computing Concept · 20 min
- Time, clocks and ordering Concept · 20 min
- Consistency models from linearizable to eventual Concept · 25 min
- CAP and PACELC applied to real databases Worked example · 20 min
- Quorums, Raft and leader leases, step by step Lab · 25 min
- Distributed reasoning check Knowledge check · 8 questions
Practise it
For three data stores you might use (for example PostgreSQL with replicas, Cassandra and etcd), write a guarantee sheet: consistency model per operation, behavior during a network partition, latency cost of stronger settings, and one user-visible anomaly each could produce.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own BitTorrent ClientIntermediate · 12–24 h
- Build your own BlockchainIntermediate · 8–16 h
- Build your own Message BrokerAdvanced · 15–30 h
References
Hard prerequisites
None.
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.