System Design

Each lesson here is a complete system, not a component: a URL shortener, a feed, a payment ledger. You watch it take traffic, lose a node, and either survive or not, then you fix it.

01
URL SHORTENER
Short codes, hot links, and the collision you did not plan for
L318 MIN
02
DESIGN A DISTRIBUTED RATE LIMITER
A limit that holds across ten servers
L318 MIN
03
CHAT & PRESENCE
Who is online, and did my message arrive exactly once, in order?
L318 MIN
04
NEWS FEED: FAN-OUT
Push for most users, pull for celebrities
L318 MIN
05
NOTIFICATION PIPELINE
At-least-once delivery without spamming the user
L320 MIN
06
DISTRIBUTED LOCK SERVICE
The lock is the easy part; the expiry is the hard part
L320 MIN
07
UNIQUE ID GENERATOR
Sortable IDs from many machines without coordination
L318 MIN
08
SEARCH AUTOCOMPLETE
Top suggestions in under 50 ms, while the trends change
L318 MIN
09
PAYMENT LEDGER
Money is never created or destroyed, only moved
L318 MIN
10
METRICS PIPELINE
Millions of points a second, and the dashboard still loads
L318 MIN