Skip to content

Lessons

Seven phases, in the order that builds on itself. Each lesson ends with check questions and a lab you run locally. Planned lessons are greyed out.

Phase 1 · Working like an engineer

Phase 2 · The web and APIs

Phase 3 · Data and state

Phase 4 · Concurrency and performance

Phase 5 · Shipping and operating

Phase 6 · Distributed systems

Scaling: up, out and stateless 10 min
Why one server stops being enough, what horizontal scaling requires, and where the bottleneck moves next.
Load balancing 14 min
L4 vs L7, algorithms, health checks.
Caching and CDNs 12 min
Cache-aside, write-through, invalidation, stampedes, and caching at the edge.
Replication and consistency 14 min
Leaders, followers, lag, quorums, and why replication is not a backup.
Partitioning and consistent hashing 12 min
Range vs hash vs directory, shard keys, hot spots, and the ring.
Unique IDs and ordering 15 min
Auto-increment vs UUID vs time-sorted IDs (snowflake/ULID style), clocks, and why ordering across machines is hard.
Queues, pub/sub and streams 13 min
When to go async, three shapes of messaging, delivery guarantees, DLQs.
Delivery guarantees and idempotency 16 min
Exactly-once myths, idempotency keys, the outbox pattern.
Rate limiting and load shedding 14 min
Token bucket, sliding window, per-user quotas, protecting a system (and a provider API) from overload.
Timeouts, retries and circuit breakers 15 min
Retry storms, backoff with jitter, bulkheads.
Microservices, gateways and service discovery 14 min
When to split a monolith, API gateways, service discovery, and the costs of distribution.
Availability, failover and disaster recovery 14 min
Nines, failure domains, RTO/RPO, and the four DR strategies.
Consensus and leader election 16 min
Raft intuition, why 2f+1, split brain.
ZooKeeper: coordination from first principles 60 min
Znodes, quorum, sessions, watches and fencing, then eight use cases and ten production problems with solutions. Eleven hand-drawn diagrams and three interactive figures.
Distributed transactions and sagas 16 min
2PC, sagas, compensation.
Distributed systems: interview drills 150 min
11 topics from scaling to sagas, 64 questions with detailed answers, 23 hand-drawn diagrams, and 7 interactive figures (scalability curve, URL-hash caches, quorums, queue lag, retry storm, failover RPO/RTO, Raft).
Sharding infrastructure drills 40 min
Seven deep dives: Cassandra LWT and Paxos, node failure in Cassandra versus CockroachDB, range versus hash hot spots, unbounded partitions, Vitess cutover, Redis failover oversell, top-k across shards. Three hand-drawn diagrams and four interactive figures.
Figure style preview: hand-drawn vs 3D 8 min
The same six ideas drawn twice, as Excalidraw-style diagrams and as interactive 3D figures, with a comparison table.

Phase 7 · Designing AI systems