System Design at Scale
Build systems that bend, not break.
How real systems handle millions of users: load balancers, caches, replication and sharding, queues, retries and failover, then classic designs from URL shorteners to flash sales. Vendor-neutral, with the building blocks mapped onto AWS, Google Cloud, Azure and open source. By the end you can sketch, size and defend a design.
- 8
- chapters
- 27
- modules
- ~14h
- of learning
- 27
- live now
Take modules in any order. The route suggests one that builds up naturally.
has a live module in progress complete
Take a look inside
The big picture, before the details
One app, from 100 users to 100 million, and what gets added at each step.
100 users. One server runs the app and the database. Perfectly fine.
Foundations
What changes as systems grow, and how to measure and estimate it.
3 modules · 75 min
Beginner
What "at scale" means
Follow one app from 100 users to 100 million and watch each part break in turn.
Beginner
Latency, throughput & percentiles
Why averages lie, and why the slowest 1% of requests matters so much.
Core
Back-of-the-envelope estimation
Turn a vague brief into requests per second, storage and bandwidth in minutes.
Scaling the stateless tier
Spreading requests across many servers, adding and removing them, and serving from the edge.
3 modules · 85 min
Core
Load balancing
How one address spreads traffic across many servers, and what happens when one is slow.
Core
Horizontal scaling & autoscaling
Keeping servers interchangeable, and adding them before users notice.
Core
CDNs & the edge
Serving content from near the user, and the hard part: keeping it fresh.
Caching
Remembering answers so you don't recompute them, and the problems that brings.
2 modules · 55 min
Data at scale
Copying, splitting and keeping data consistent across many machines.
5 modules · 165 min
Core
Replication
Copies of the database on many machines, and the lag between them.
Core
Partitioning & sharding
Splitting data across machines, and moving it when you add more.
Deep dive
Consistency, CAP & quorums
What happens when the network splits, and how quorums trade speed for correctness.
Core
Choosing a database
Relational, key-value, document, wide-column, graph, time-series and search, matched to real workloads.
Deep dive
Transactions across services
Keeping several databases in step without a single transaction.
Asynchronous systems
Queues, streams and events: decoupling work, and making retries safe.
3 modules · 90 min
Core
Queues & streams
Letting producers and consumers work at their own pace.
Core
Retries, idempotency & delivery guarantees
Why retries can take a system down, and how to make repeating an action safe.
Core
Event-driven architecture
Systems that react to events instead of calling each other directly.
Reliability
Designing for failure, containing it, and knowing when it happens.
4 modules · 120 min
Core
Availability math
What 99.9% really means, and how components add up.
Deep dive
Timeouts, circuit breakers & rate limiting
Stopping one slow service from taking everything down with it.
Deep dive
Multi-region & disaster recovery
Surviving the loss of a data centre, and deciding how much data you can afford to lose.
Core
Observability & SLOs
Metrics, logs and traces, and deciding how reliable is reliable enough.
Classic designs
Well-known systems designed end to end, one decision at a time.
4 modules · 140 min
Applied
Design a URL shortener
The classic warm-up: estimate, generate keys, store, cache and redirect.
Applied
Design a news feed
Building everyone's timeline fast, including when a celebrity posts.
Applied
Design real-time chat
Delivering messages instantly, in order, to people on flaky phones.
Applied
Design a flash-sale booking system
A million people, a thousand tickets, one minute, and nobody sold the same seat twice.
Platforms & capstone
The building blocks on real clouds, then two capstones.
3 modules · 105 min
Applied
Building blocks on AWS, Google Cloud, Azure & open source
Load balancers, caches, queues and databases, translated across platforms.
Applied
Capstone: the results-day portal
Design a state board's exam-results site for the day millions check at once.
Applied
Capstone: the outage
A cascading failure is unfolding. Read the evidence, find the cause, stop it.