system design · as a lab
You've read about load balancers. Ever watched one drown?
Draw an architecture on a canvas. Send traffic through it. Watch what breaks, fix it, and pass the challenge.
Why reading didn't stick
-
You know the words. You've never seen them move.
Everyone says "add a cache". Here you add one, run, and watch latency drop. Then the cache restarts and you watch it climb back. You remember what you saw.
-
Every setting does something.
Replicas, timeouts, retries, circuit breakers, replication, sharding, rate limiting, hashing. Change one and the run changes with it.
-
Graded the same way every time.
Any design that meets the goals passes, not just one answer. AI can explain a run to you. It never grades one.
A verdict, not a quiz
What comes back after a run: each goal, measured.
| goal | target | measured | |
|---|---|---|---|
| Page latency | ≤ 150 ms | 412 ms | ✕ |
| No single machine whose loss cuts users off | — | web-1 | ✕ |
| Availability | ≥ 99.9% | 99.95% | ✓ |
| Monthly cost within budget | — | within | ✓ |
Fix it. Run again. Passed closes the attempt and opens the next challenge. Replay keeps every request, so you can scrub back to the second it fell over.
Learn it, run it, prove it
Each topic: a short reading, experiments you run on the canvas, then a challenge to pass.
| 01 | Scaling from one server to millions of users | load balancing, caching, replication, queues, failover |
| 02 | Back-of-the-envelope estimation | from daily users to servers |
| 03 | Rate limiting | algorithms and shared counters |
| 04 | Consistent hashing | lose a cache server, keep the cache |
| 05 | Key-value store | replication and quorum |
| 06 | Unique ID generation | IDs across many machines |
| 07 | URL shortener | encoding, redirects, caching |
More topics are on the way.
This is the Lab. Press Run.
An order checkout: API, cache, database, a queue and a worker. Press Run and watch it break under load, scale out and recover. Scripted here; in the app it's your design.
- ✓ p95 under 300 ms after scaling
- ✓ Availability ≥ 99.9% over the run
- ✓ Cost within $600 / month
- ✓ Recovered from cache restart in < 3 s
- ✓ Every order email delivered (queue drained)
Settings that actually do something
A sample from the inspector. Each one changes the run.
- replicas
- one instance is one point of failure
- autoscaling
- add instances under load, pay for what ran
- timeouts
- slow work gets cancelled
- retries
- each retry is more load
- circuit breaker
- stop calling what is failing
- load balancing
- round robin, least connections, hash
- rate limiting
- block abuse, not your users
- replication
- survive losing a database
Learn free. Go Pro to master it.
Every lesson and the Lab are free. Pro unlocks every challenge mode, bigger designs, stacked failures, more AI explanations and leaderboards. Try it free for 7 days, cancel anytime.
| Free $0 | Pro $9 / mo7-day free trial | |
|---|---|---|
| Lessons and guided experimentsEvery topic, read and proven on the canvas. | All | All |
| Challenge modesEach challenge has several modes: standard, tight budget, chaos… | First 2 of each | Every mode |
| Hard challengesCapstones that combine several concepts. | 1 | All |
| Lab design sizeComponents on one canvas. | Up to 10 | Up to 30 |
| Saved Lab designsDesigns you keep in your account and reopen any time. | 3 | Unlimited |
| Failures per runPick failures before you run: crash a server, overload the database, spike the traffic. | 1 | Up to 4, stacked |
| Traffic controls and replaySet the load, watch every request, step through the run. | ✓ | ✓ |
| Simulation runsChallenge and Lab runs. Lessons never count. | 30 / day | Unlimited |
| AI explanationsWhy a design failed and what would earn the missing stars. | 10 / day | 200 / day |
| Chaos modeYou don't choose: each run, AI reads your design and picks the failures that hit it. | — | AI picks the failures |
| LeaderboardsRank by the cheapest passing design, with medals. | — | Ranked, with medals |
| Start free | Start 7-day free trial |
Your first run fails. Good.
That's the moment it finally makes sense.
Run your first design →