Learn how big systems work, by playing with them.
Every concept comes with a live diagram you can poke at: change the load, break a server, add a cache and watch what happens. Start with the building blocks, then use them to design apps like YouTube or Netflix.
Today
🔥 0
day streak
⚡ 0
XP
Answer a quiz to start your streak.
Badges
Your XP, streak and badges are shared by every playbook.
Your learning path
Follow the units in order: concepts first, then real system designs, then design them yourself. Each lesson ends with a quick quiz, and completed units turn green.
- 00
Unit 0 · 0/3 done
Fundamentals
How systems grow: scaling, estimates and getting updates to clients.
- 01
Unit 1 · 0/8 done
Data & databases
Where data lives and how it scales: indexes, replicas, sharding, CAP.
- 02
Unit 2 · 0/4 done
Performance & traffic
Keeping things fast under load: caches, CDNs, balancers, limits.
- 03
- 04
Unit 4 · 0/5 done
Async & cloud
Queues, logs, serverless and doing work in the background safely.
- 05
Unit 5 · 0/4 done
Classic designs
The first designs every interview prep covers.
- 06
Unit 6 · 0/5 done
Media & feeds
Video, music and timelines for hundreds of millions.
- 07
Unit 7 · 0/3 done
Real time & marketplaces
Chats, rides and deliveries that can't wait.
- 08
Unit 8 · Ready
Design it yourself
Build each app on a canvas at 100 users, 1M and 100M+, and get it graded.
- ★
The building blocks
Short, visual explanations of the ideas that show up in every system design interview and in every real backend.
Fundamentals
Horizontal vs vertical scaling
Vertical scaling means a bigger server; horizontal scaling means more servers sharing the work. Vertical is simpler, horizontal goes further.
6 min read →Estimation
Estimation turns users into requests per second, storage and bandwidth with rounded numbers. The goal isn't precision: it's knowing whether you need one database or a hundred.
6 min read →Read-heavy vs write-heavy
A read-heavy part is read far more than it changes (a video page); a write-heavy part receives a constant flood of new data (view counts, analytics). Each one needs different tools.
7 min read →Data & databases
Query optimization & indexes
An index is a sorted copy of one or more columns that lets the database jump to the rows it needs instead of reading the whole table.
9 min read →Sharding
Sharding splits one big database into several independent databases (shards), each holding a slice of the rows, so storage and writes scale with the number of machines.
8 min read →Consistent hashing
Put servers and keys on the same hash ring; each key belongs to the next server clockwise. When a server joins or leaves, only the keys of one arc move, about 1/N of them, instead of almost all.
6 min read →Types of databases
Each database type is optimized for a different shape of data and access pattern. Pick by the questions you need to answer fast, not by fashion.
10 min read →CAP theorem
When a network partition splits your replicas, a system can stay Consistent (refuse what it can't answer correctly) or Available (answer anyway, maybe with old data). It can't do both until the network heals.
7 min read →Read replicas
A read replica is a copy of the database that receives every change from the primary and answers read queries, so you can add read capacity without touching writes.
7 min read →Precomputing values
Precomputing means doing the expensive work at write time (or on a schedule) and storing the result, so every read is a cheap lookup instead of a fresh calculation.
7 min read →Partitioning strategies
Partitioning divides one large table into smaller pieces by a rule (by date, by region, by hash, or by columns), so each query only reads the pieces that can contain its answer.
8 min read →Performance & traffic
Caching
A cache stores copies of data that are expensive to get (slow query, far away server) so the next request can be answered from somewhere fast and close.
9 min read →CDN
A CDN is a cache spread around the world. Users download images, video, scripts and even pages from the nearest edge server; only the first request in each region goes all the way to your origin.
6 min read →Load balancers
A load balancer is the single entry point that receives every request and forwards it to one of many healthy servers, so no single server is overloaded and failures stay invisible to users.
8 min read →Rate limiting
A rate limiter caps how many requests a client can make in a period ("100 per minute") and answers the rest with 429 Too Many Requests, so one client can't take the system down for everyone.
6 min read →Communication
Polling
Polling means the client keeps asking the server "anything new?" on a timer. It's the simplest way to get updates, and also the most wasteful.
6 min read →API gateway
An API gateway is one entry point for all your APIs. It handles the cross-cutting work (TLS, authentication, rate limiting, routing, logging) once, so each service only does its own job.
5 min read →Async & cloud
AWS Lambda
AWS Lambda runs a function only when an event arrives, scales to many copies by itself and bills per millisecond, but each run is capped at 10 GB of memory and 15 minutes.
8 min read →SQS vs SNS
SQS stores messages until one consumer pulls and processes each of them; SNS pushes each message to every subscriber immediately and doesn't store it.
8 min read →Kafka vs queues
A queue (SQS, RabbitMQ) deletes each message once one consumer handles it. A log (Kafka, Kinesis) keeps events in order for days; every consumer group tracks its own offset, so many services read the same stream and can replay it.
7 min read →Async writes with a queue
Instead of writing to the database during the request, the API puts the write in a queue and answers immediately; workers drain the queue at a pace the database can handle.
7 min read →Idempotency & retries
An operation is idempotent if doing it twice has the same effect as doing it once. With an idempotency key, the server recognizes a retry and returns the original result instead of charging, booking or sending again.
6 min read →System designs of real apps
YouTube, Netflix, WhatsApp, Uber… Each design reuses the building blocks above, and shows how the architecture changes from 100 users to hundreds of millions.
URL shortener
Store code → long URL in a key-value friendly table, generate unique short codes without collisions, and make the redirect path almost entirely cache hits.
12 min read →Eventbrite (ticketing)
Treat ticket inventory as a strongly consistent counter (atomic updates, holds with TTL), put a waiting room in front of hot on-sales, and issue signed QR tickets that can be checked at the door.
13 min read →Google Drive
Split files into content-addressed blocks in object storage, keep the folder tree, versions and permissions in a strongly consistent metadata store, and notify devices so they fetch only what changed.
13 min read →Tinder
Find candidates with a geo search index, precompute each user's stack, store swipes in a write-optimised store, and detect matches with a fast "did they like me?" lookup.
12 min read →YouTube
Upload straight to object storage, transcode asynchronously into many resolutions, stream small segments from a CDN, and keep metadata in a cached, replicated (later sharded) database.
14 min read →Netflix
Encode each title into many bitrates, pre-position them on servers inside ISPs, run the control plane (accounts, home, playback) as cached microservices, and precompute personalization offline.
13 min read →Spotify
Serve audio from a CDN plus the device's own cache, keep playlists in a horizontally scalable store, and treat every play as an event that feeds royalties, charts and batch-computed recommendations.
12 min read →Instagram vs TikTok
Instagram's feed is mostly precomputed on write (fan-out to followers), with celebrities merged on read; TikTok's For You feed is recommendation-first: candidates come from what you might like, not from who you follow.
15 min read →X / Twitter
Precompute home timelines in memory with hybrid fan-out, give every tweet a time-sortable Snowflake id, and run search and trends off a stream of tweet events.
13 min read →Each phone keeps a persistent connection to a chat server; a session map says which server each user is on; messages are stored until delivered and offline users are woken with push notifications.
13 min read →Uber
Keep live driver locations in an in-memory geo index, match by ETA in the rider's area, track every trip as a state machine in a durable database, and stream GPS pings for everything else.
14 min read →Uber Eats
Search restaurants with geo filters, keep each order in a state machine that publishes events, and dispatch couriers by predicted readiness, not just distance.
13 min read →Test yourself
Did it stick?
Every page ends with 3 quick questions. When you've read them all, take the final lesson: new questions about every concept and design, one after another, with hearts and streaks.
Let's talk
Got a project or an idea?
Products, teams, mentoring or collaborations: write to me and we'll take it from there.