Home
Learn
Simple
Detailed
Ten levels, one idea each, in order. Each run is judged on the goal and the budget.
0 of 10 passed
1
One server is not enough
Capacity
Your startup launched. 600 people per second are hitting a single API server.
Play
2
Don't put all your eggs in one basket
Replicas & health checks
Servers crash: out of memory, a bad disk, a kernel panic. Not if, but when.
Pass level 1
3
The database is always the bottleneck
Caching & read replicas
Your API tier scales easily: just add servers. The database does not. It has a fixed connection pool and every read and write goes through it.
Pass level 2
4
Your cache is lying to you
Cold caches & headroom
Caches make systems look much stronger than they are. A 90% hit ratio means the database only sees 1 in 10 reads.
Pass level 3
5
Retries can make things worse
Timeouts, retries & backoff
Your team made the API 'resilient': every failed database call is retried 3 times, immediately.
Pass level 4
6
Not everything is urgent
Queues & async work
Half your traffic is writes: orders being placed. Writes are expensive for the database.
Pass level 5
7
The network is not reliable
Partitions & failing fast
Two API servers talk to the database over the network. Networks break in strange ways: packets just stop arriving, and nobody gets an error, only silence.
Pass level 6
8
One customer is 60% of your traffic
Sharding & hot keys
Writes outgrew one database, so the data is split across four shards by key.
Pass level 7
9
Everyone at 9:00
Thundering herds
A scheduled job sends notifications every minute by calling your API directly, the same API that serves users.
Pass level 8
10
On-call night
Everything together
Final exam. You are on call. Chaos is set to Brutal: several different failures, sometimes overlapping, with misleading log noise.
Pass level 9