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.

01

Why reading didn't stick

  1. 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.

  2. Every setting does something.

    Replicas, timeouts, retries, circuit breakers, replication, sharding, rate limiting, hashing. Change one and the run changes with it.

  3. 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.

02

A verdict, not a quiz

What comes back after a run: each goal, measured.

Faileddatabase down mid-run2 / 4 goals
goaltargetmeasured
Page latency≤ 150 ms412 ms✕
No single machine whose loss cuts users off—web-1✕
Availability≥ 99.9%99.95%✓
Monthly cost within budget—within✓
hint Your web tier is a single instance. Replay shows where requests start failing.

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.

03

Learn it, run it, prove it

Each topic: a short reading, experiments you run on the canvas, then a challenge to pass.

01Scaling from one server to millions of usersload balancing, caching, replication, queues, failover
02Back-of-the-envelope estimationfrom daily users to servers
03Rate limitingalgorithms and shared counters
04Consistent hashinglose a cache server, keep the cache
05Key-value storereplication and quorum
06Unique ID generationIDs across many machines
07URL shortenerencoding, redirects, caching

More topics are on the way.

04

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.

Order checkout · sandbox · 8 components
Shoppers200 rps Edge LBround robin Checkout APIcpu 28% · 1× Cart cachehit 91% Ordersp95 6 ms order.placedlag 0 Email worker2× · 0 jobs Email provider0 sent
Requests / s200
p95 latency42 ms
Errors0
Cost / mo$184
    healthy >80% load saturated · requests dropped instance down
    05

    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
    06

    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 $0Pro $9 / mo7-day free trial
    Lessons and guided experimentsEvery topic, read and proven on the canvas.AllAll
    Challenge modesEach challenge has several modes: standard, tight budget, chaos…First 2 of eachEvery mode
    Hard challengesCapstones that combine several concepts.1All
    Lab design sizeComponents on one canvas.Up to 10Up to 30
    Saved Lab designsDesigns you keep in your account and reopen any time.3Unlimited
    Failures per runPick failures before you run: crash a server, overload the database, spike the traffic.1Up 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 / dayUnlimited
    AI explanationsWhy a design failed and what would earn the missing stars.10 / day200 / 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 freeStart 7-day free trial

    Your first run fails. Good.

    That's the moment it finally makes sense.

    Run your first design →