Distributed Systems
NoisebridgeMIT 6.824: Distributed Systems Engineering
An intensive engineering course exploring core abstractions, fault tolerance, replication algorithms (Paxos, Raft), consistency semantics, distributed transactions, and scalable cloud architectures.
Course Overview & Pedagogical Philosophy
Distributed systems are notoriously tricky because failures are partial, concurrent message interleavings are non-deterministic, and networks are asynchronous. Offered as a high-trust, collaborative cohort at Noisebridge, this course pairs MIT 6.824's seminal papers and lectures with comprehensive hands-on implementation and diagnostics.
High-Trust Cohort & Untimed Self-Assessments
In keeping with Noisebridge's hacker ethic and collaborative spirit, examinations in this course are structured as live, untimed self-assessments. Rather than high-stress proctored tests with arbitrary countdown timers, the Midterm and Final assessments are continuously open diagnostics equipped with immediate answer checking and reset capabilities. Use them iteratively to test your conceptual model, uncover edge cases in consensus safety, and verify your systems intuition.
Comprehensive Self-Assessments
Both comprehensive milestones are synthesized directly from historical MIT 6.824 examinations, structured as interactive Open edX problems:
Midterm Self-Assessment
Coverage: Lectures 1–10 & Labs 1–2
Focuses on RPC semantics, Go concurrency, GFS chunk management, primary-backup state-machine replication, and Raft consensus safety.
- Problem 1: MapReduce Execution & Worker Crash Recovery
- Problem 2: Go Concurrency, RPCs & Channel Semantics
- Problem 3: Google File System (GFS) Chunk Lease & Mutations
- Problem 4: Primary-Backup Replication & Split-Brain Hazards
- Problem 5: Raft Leader Election & Term Transitions
- Problem 6: Raft Safety, Log Matching & Overwrite Invariants
Untimed • Immediate Feedback • Multiple Attempts Allowed
Final Comprehensive Self-Assessment
Coverage: Lectures 11–21 & Labs 3–4
Explores distributed commit protocols, Spanner TrueTime, optimistic concurrency control, cache coherence, and Byzantine consensus.
- Problem 1: Two-Phase Commit (2PC) & Distributed Transactions
- Problem 2: Google Spanner, TrueTime & External Consistency
- Problem 3: Optimistic Concurrency Control (OCC) Validation
- Problem 4: Frangipani Distributed File System & Petal Locks
- Problem 5: Scaling Memcached at Facebook & Lease Semantics
- Problem 6: Byzantine Fault Tolerance & Bitcoin Proof-of-Work
- Problem 7: Sharded Key-Value Store & Reconfiguration Races
Untimed • Immediate Feedback • Multiple Attempts Allowed
Hands-On Laboratory Sequence (Go)
Students implement real distributed protocols in Go and test them against adversarial testbenches that inject network partitions, packet loss, delays, and crash-restarts:
- Lab 1: Distributed MapReduce — Build a fault-tolerant MapReduce coordinator and worker architecture with task reassignment on worker timeouts.
- Lab 2: Raft Consensus Algorithm:
- 2A: Leader election and heartbeats.
- 2B: Log replication and committed entry execution.
- 2C: Persistent state recovery across server crashes.
- 2D: Log compaction and snapshot installations.
- Lab 3: Fault-Tolerant Key/Value Service — Construct a linearizable, replicated key/value database built on top of the Lab 2 Raft consensus library.
- Lab 4: Sharded Key/Value Service — Partition key spaces across multi-replica Raft groups with a dynamic shard controller and live shard transfers.
Complete Course Syllabus
| Unit / Module | Topic & Lecture Focus | Core Lab / Assessment Milestone |
|---|---|---|
| Unit 1 | Lecture 1 - Introduction & MapReduce | Lab 1: MapReduce Assignment |
| Unit 2 | Lecture 2 - RPC and Threads in Go | Crawler & RPC Exercises |
| Unit 3 | Lecture 3 - Google File System (GFS) | Lab 2: Raft Consensus Architecture |
| Unit 4 | Lecture 4 - Primary-Backup Replication (VM-FT) | Replication Protocol Analysis |
| Unit 5 | Lecture 5 - Fault Tolerance - Raft Part 1 | Lab 2A: Raft Leader Election |
| Unit 6 | Lecture 6 & 7 - Fault Tolerance - Raft Part 2 | Lab 2B: Raft Log Replication |
| Unit 7 | Lecture 8 & 9 - ZooKeeper | Lab 2C: Raft Persistence |
| Unit 8 | Lecture 10 - Go Concurrency in Practice | Lab 2D: Raft Snapshots / Compaction |
| Unit 9 | Lecture 11 - Chain Replication & CRAQ | CRAQ Linearizability Case Study |
| Unit 10 | Lecture 12 - Cache Consistency (Frangipani) | Distributed Lock Management |
| Milestone | Midterm Self-Assessment | 6 Multi-Part Self-Assessment Problems (Lectures 1–10) |
| Unit 11 | Lecture 13 - Distributed Transactions & 2PC | Lab 3A: KV Service Based on Raft |
| Unit 12 | Lecture 14 - Google Spanner & TrueTime | Lab 3B: KV Snapshots & Compaction |
| Unit 13 | Lecture 15 Part 1 - Optimistic Concurrency Control | OCC Read/Write Validation Phases |
| Unit 14 | Lecture 15 Part 2 - OCC Continued | Lab 4A: The Shard Controller |
| Unit 15 | Lecture 16 - Big Data Processing (Spark) | Resilient Distributed Datasets (RDDs) |
| Unit 16 | Lecture 17 - Cache Consistency: Memcached at Facebook | Leases & Invalidation Storms |
| Unit 17 | Lecture 18 - Fork Consistency & SUNDR | Untrusted Storage Verification |
| Unit 18 | Lecture 19 - Peer-to-Peer Networks: Bitcoin | Lab 4B: Sharded Key/Value Server |
| Unit 19 | Lecture 20 - Blockstack & Decentralized Identity | Name Resolution Invariants |
| Unit 20 | Lecture 21 - Project Demos & Retrospective | Final Capstone Implementations |
| Milestone | Final Comprehensive Self-Assessment | 7 Multi-Part Self-Assessment Problems (Lectures 11–21) |