Free system design course

Learn how big apps stay up by building them yourself.

88 short lessons in plain language, from your first web request to serving AI models. Every lesson has a live demo, and a playground lets you design systems and watch them survive traffic, or fall over.

Fig. 1: one app, more trafficSHEET 01
Lessons done0 / 88
Solved0 / 33
Reviews due0
Start withClients and servers

How lessons work

Five minutes, one idea, one demo

  1. 01

    Think of it like

    Every idea starts with an everyday analogy, before any jargon.

  2. 02

    Try it

    A live demo you can poke: add servers, crash things, change the settings.

  3. 03

    Remember

    Three short takeaways worth keeping, in plain words.

  4. 04

    Quick check

    One question. Miss it and it comes back for spaced review.

The learning path

From your first request to serving AI models

Seven modules, in the order engineers usually meet these ideas. Skip around if you like.

  1. 01Fundamentals Must knowHow a request gets from a phone to a server and back, and what can slow it down.0 of 10 done
  2. 02Backend architecture CoreHow to arrange servers, queues and gateways so an app keeps working as it grows.0 of 11 done
  3. 03Database design Very importantStoring data so it stays correct, fast to find, and safe when machines fail.0 of 11 done
  4. 04Caching and performance CoreKeeping answers close by so you don't do the same slow work twice.0 of 12 done
  5. 05Distributed systems AdvancedGetting many machines to agree, even when messages get lost and machines crash.0 of 16 done
  6. 06Reliability and infrastructure ProductionSeeing what your system is doing, recovering from disasters, and shipping safely.0 of 12 done
  7. 07AI infrastructure AdvancedHow large language models are served: GPUs, batching, caching and retrieval.0 of 16 done

The playground

Design a system. Then throw traffic at it.

Drag in load balancers, caches, queues and replicas, wire them up, and watch a live simulation tell you what holds and what breaks.

  • TA blog that hit the front pageKeep the blog up for 3,000 readers a second, under $400 a month.
  • E1URL shortenerRedirect 8,000 taps a second, create unique short codes, and survive any one machine crashing.
  • E2PastebinServe pastes fast, keep a year of text somewhere cheap, and delete expired pastes on time.
  • E3Weather appAnswer 3,000 forecast requests a second while calling the weather service under 100 times a second.
  • E4"Users viewing this page" counterCount live viewers per page from 6,000 heartbeats a second, with stale viewers expiring by themselves.
  • E5Price alert systemCheck alerts on a schedule and deliver a burst of 8,000 notifications a second within 2 minutes.
  • E6Latest stock prices worldwideServe 60,000 price reads a second worldwide while 2,000 updates a second flow in.
  • E7Parts compatibility for a shopAnswer 8,000 fuzzy compatibility searches a second and keep the catalogue in sync.
  • E8Top K: app store rankingsServe charts to 10,000 readers a second and rebuild rankings from 8 TB of logs in 2 hours.
  • E9Login and authenticationLog in 1,000 people a second, check 6,000 sessions a second, and stop password-guessing bots.
  • E10Likes with live updatesHold 200,000 live connections and push 25,000 like updates a second.
  • E11Job schedulerStore scheduled jobs and start every one within 5 minutes, even in the top-of-the-hour rush.
  • E12Marketplace listingsServe listings and photos fast, let people search them, and survive any one crash.
  • M1InstagramServe photos fast worldwide, take a flood of likes, and survive any one crash.
  • M2Photo sharing (Google Photos)Take 300 uploads a second, make thumbnails in the background, and serve 20,000 photo views a second.
  • M3Dropbox / Google DriveStore file blocks once, keep file listings fast and consistent, and never lose a file.
  • M4WhatsApp / MessengerDeliver 10,000 messages a second live, store every one, and queue messages for people who are offline.
  • M5Twitter for millionsServe 20,000 timeline reads a second and fan each tweet out to followers in the background.
  • M6Facebook News FeedServe 20,000 ranked feeds a second from a feed cache, with new posts spread to friends in the background.
  • M7YouTube / NetflixStream 100,000 chunks a second worldwide and transcode 20 uploads a second in the background.
  • M8API rate limiter (distributed)Limit 8,000 API calls a second per customer using shared counters, and survive a crash.
  • M9Web crawlerCrawl 4,000 pages a second from a frontier queue, skipping duplicates, and keep a month of pages.
  • M10Google CalendarServe 15,000 calendar views a second and send the hourly flood of reminders on time.
  • M11Sort a huge datasetSort 60 TB in under 5 hours by splitting the work across machines.
  • M12Notification service at scaleDeliver OTPs, push and email through the right providers, check opt-outs, and never let a burst delay a login code.
  • M13Hotel bookingTake every booking during the rush, never double-sell a room, and survive a crash.
  • M14Count likes on celebrity postsCount 20,000 likes a second when nine in ten hit the same post.
  • M15Document system (Notion / Wikipedia)Serve 12,000 page reads a second, keep every version, and make pages searchable.
  • M16Monitor the health of a clusterIngest 200,000 metrics a second, keep 15 days, and alert on trouble within a minute.
  • M176 million free burgers in one hourAccept 30,000 claims a second for 200 seconds, issue exactly 6 million coupons, and confirm everyone within an hour.
  • M18On-call escalation systemRecord incidents, page on-call by push and SMS, and escalate unanswered ones on time.
  • M19Live commentsHold 600,000 viewers and push 300,000 comment deliveries a second, storing every comment.
  • M20Netflix: limit screens per accountAllow at most 4 streams per account with leases that expire by themselves.
Open the playground
Fig. 2: a cached read pathHandles traffic