Distributed systems · Course
Distributed Systems, Read Closely
Work through MIT 6.5840 (Spring 2026) one mechanism per episode: MapReduce, RPC over an unreliable network, linearizability, Raft, a replicated KV service and sharding, with real runs of the lab code. Follows the public course materials; not affiliated with MIT.
2 parts out0.4 h of video43 episodes plannedEN · 中文
What you get
- A video for each part, with chapters
- Slides to read at your own pace (PDF)
- A code index with every file:line shown
- Practice questions answered from real runs
Good fit
- People working through 6.5840 and its labs on their own
- Backend engineers who use replicated stores and want to know how they agree
- Anyone who found the Raft paper hard to turn into code
Not for
- Solutions to the 6.5840 labs: the course shows runs, never lab code
- Operating Kubernetes, Kafka or other production tools
Syllabus
FreeFree with accountMembersPlanned
Overview
1 parts · 10 minMapReduce · Lab 1
1 parts · 11 min3Coordinator and Workers: Crashes, Reassignment, Atomic Rename
Go and RPC
Planned4Go Concurrency: Goroutines, Locks, Data Races
5labrpc: The Fake Network Inside Every Lab
6Go Patterns: Channels, Select and Timers
KV server · Lab 2
Planned7Put with a Version: A Single-Server KV
8Retries and ErrMaybe: At-Most-Once over a Lossy Net
9Building a Lock out of Put
Consistency & replication
Planned10Linearizability: What "Correct" Means
11How the Tests Judge: The Porcupine Checker
12GFS: A Weakly Consistent Real System
13Paxos (1): Agreeing on One Value
14Paxos (2): From One Value to a Log
26ZooKeeper (1): The API and Its Ordering Guarantees
27ZooKeeper (2): Locks and Config on Top
Raft · Lab 3
Planned15Raft Overview: Terms, Majorities, Split Brain
16Leader Election
17Log Replication: The AppendEntries Consistency Check
18Fast Backup of nextIndex
19Commit Rules and Figure 8
20Persistence and Crash Recovery
21Snapshots and InstallSnapshot
22Writing Raft in Go: Locks, the Applier, Debugging
KV on Raft · Lab 4
Planned23The Replicated State Machine Layer
24KV on Raft: Duplicates and Linearizable Reads
25Snapshots in the KV Service
Sharded KV · Lab 5
Planned28Shards and Configs: shardcfg and shardctrler
29Moving a Shard: Freeze, Install, Delete
30When Reconfiguration Fails Halfway
Transactions
Planned31Distributed Transactions: Two-Phase Locking
32Two-Phase Commit
33Spanner (1): TrueTime and External Consistency
34Spanner (2): Lock-Free Read-Only Transactions
36FaRM: Optimistic Concurrency Control
Real systems
Planned35Chain Replication
37Verifying Distributed Systems: IronFleet
38Memcache at Facebook: Cache Consistency
39AWS Lambda: On-Demand Container Loading
40Ray: Distributed Tasks and Actors
Untrusted participants
Planned41SUNDR: Fork Consistency
42Bitcoin: Consensus Without Identities
43Byzantine Fault Tolerance: PBFT