COURSE
System design course
Short lessons with live diagrams. Step through each system, then change it and watch what happens.
- lessons done
- 0 of 32
Level 1: How the web works
- 01What happens when you type a URLThe journey of one request: DNS, the connection, the server, and the answer coming back.9 minBeginnerStart
- 02Client, server and databaseThe three boxes almost every system starts with, and what each one is responsible for.9 minBeginnerStart
- 03Latency and throughputThe two numbers we use to judge a system, and why making one better can make the other worse.9 minBeginnerStart
- 04Scale up or scale out?A bigger machine or more machines: what each costs and where each one stops working.9 minBeginnerStart
- 05How a load balancer worksWhy one server stops being enough, and how a balancer shares requests between several.8 minBeginnerStart
- 06Scaling an app step by stepFrom a single server to a system that grows with its traffic, one stage at a time.10 minBeginnerStart
Level 2: Speed
- 07What a cache doesKeeping answers close so the database is asked less often, and what goes wrong when they go stale.8 minBeginnerStart
- 08Cache strategiesWhen to write to the cache, when to expire it, and what to throw out when it is full.9 minIntermediateStart
- 09What a CDN doesServing images and files from a server near the user instead of from the other side of the world.9 minBeginnerStart
- 10How a database finds a rowIndexes and B-Trees: how a database searches millions of records in a fraction of a second.9 minIntermediateStart
- 11Rate limitingProtecting a system from too many requests, whether from a bug, a spike or an attack.9 minIntermediateStart
Level 3: Data at scale
- 12SQL or NoSQL?What each kind of database is good at, and how to choose without following the fashion.9 minIntermediateStart
- 13Replication and shardingTwo ways to make a database carry more: copy it, or split it.10 minIntermediateStart
- 14Consistency and the CAP theoremWhy two users can see different data for a moment, and what you give up to prevent it.9 minIntermediateStart
- 15Auto increment or UUID?Generating IDs when there is more than one database server, and what each choice costs.9 minIntermediateStart
- 16Race conditions: the last item sold twiceTwo buyers, one item. How transactions and locks keep the data correct under pressure.9 minIntermediateStart
- 17Storing filesObject storage for images and videos, and why the database is the wrong place for them.9 minIntermediateStart
Level 4: Services that talk to each other
- 18Monolith or microservices?When splitting an app into services helps, and when it only moves the problems around.9 minAdvancedStart
- 19REST or event-driven?Calling a service and waiting, or announcing what happened and moving on.9 minAdvancedStart
- 20Queues and streamsWhat a message broker is for, and when to pick Kafka or RabbitMQ.9 minIntermediateStart
- 21The circuit breakerStopping one failing service from taking the rest of the system down with it.8 minIntermediateStart
- 22Retries, timeouts and idempotencyTrying again safely: how to repeat a request without charging the customer twice.9 minAdvancedStart
- 23Dual write and the outboxSaving to the database and publishing an event without losing one of them.9 minAdvancedStart
- 24The Saga patternOne business operation across several services, and how to undo it when a step fails.9 minAdvancedStart
- 25Deploying with zero downtimeShipping a new version while users are still using the old one.9 minAdvancedStart
- 26Logs, metrics and alertsKnowing that something is wrong, and where, before your users tell you.9 minAdvancedStart
Level 5: Design real systems
- 27How to approach any design questionRequirements, rough numbers, a first sketch, then the weak points: one method for every system.9 minAdvancedStart
- 28Design a Likes systemA like button that survives thousands of clicks a second.9 minAdvancedStart
- 29Design a notification systemSending millions of notifications without losing or repeating them.9 minAdvancedStart
- 30Design online and last seenShowing who is online, like WhatsApp, for millions of users at once.9 minAdvancedStart
- 31Design driver matchingFinding the nearest driver in a moving city, like Uber.9 minAdvancedStart
- 32Design a URL shortenerThe classic first interview question, from one server to billions of links.9 minAdvancedStart