System design, from storage engines to global consensus.
An open-source interactive textbook for distributed systems engineering. Model capacity envelopes, step through 33 live protocol simulators, debug production incident war-rooms, and build 20 core services in your browser.
6 architecture tracks · 201 lessons · 33 simulators · 20 from-scratch builds · 12 incident war-rooms · MIT & CC BY 4.0
Production architecture case studies
Ground theoretical quorum math, LSM compaction, and idempotency invariants in primary engineering papers and postmortems.
Amazon Dynamo & Sloppy Quorums
Consistent hashing, tunable N/R/W quorums, hinted handoff, and anti-entropy Merkle trees under network partitions.
Discord Trillion-Message Storage
Why Discord migrated from Cassandra GC pauses to ScyllaDB with Rust request coalescing for hot channels.
Stripe Idempotent Payment APIs
Atomic idempotency keys, recovery points, and transactional outboxes that guarantee exactly-once side effects.
GitLab Replication Lag Postmortem
Dissecting cascading WAL replication failure, backup verification gaps, and production disaster-recovery guardrails.
Step through distributed protocols live
Adjust quorum thresholds, trigger leader failovers, and inspect MVCC snapshot visibility directly inside the browser.
6-track architecture curriculum
From workload modeling and network protocols to storage internals, distributed consensus, stream processing, and end-to-end system designs.
Architectural Foundations & Workload Modeling
Data Architecture, Storage Engines & State Persistence
Distributed Systems, Consensus & Coordination
Asynchronous Execution, Queues & Real-Time Processing
Production Operations, Resilience & System Hardening
Systems Design Labs & Architectural Evolution
20 from-scratch distributed builds
Implement Raft leader leases, LSM storage engines, L7 load balancers, token-bucket limiters, and vector clocks with automated unit tests.
Ready to reason from first principles?
Start with Module 1.1 with zero account setup, or inspect the interactive prerequisite graph.