Courses Free · self-paced
System Design, Hands On
System design means deciding which parts a big piece of software is made of, and how those parts work together: how many servers, where a cache goes, where a queue goes, where the data lives and how many copies it has. Most material teaches this with still diagrams and long text. In this course you see each idea work, and you change it yourself.
The course is free, and there is nothing to sign up for. Everything runs in your browser, on a phone too.
Who it is for
- Developers with a year or two of experience who want to move from “writing a service” to “designing a system”.
- People preparing for a system design interview.
- Computer science students who have seen these topics in pieces and want the whole picture.
You need to know what a server, a database and an HTTP request are. You do not need to write code.
What the lessons look like
- Lab: a small machine you play with. Five short lessons set it up for one point each, and then it is your turn. About 10 minutes.
- Reading: a short text with numbers you can check yourself. About 8 minutes.
- Case study: we design a real product step by step, and use the labs as building blocks. About 15 minutes.
Follow the lessons in order. Lessons marked “coming soon” are added one at a time, about once a week.
Part 1: How to think about a design
- A method for any design question · reading
- Numbers every engineer should know · reading
- Latency, throughput and availability · reading
Part 2: Spreading the load
- Load balancer · lab
- Cache · lab
- Consistent hashing · lab
- DNS and CDN: how a request finds the nearest server · reading
- Cache problems: stampedes and stale data · lab
Part 3: Protecting the system
- Rate limiter · lab
- Circuit breaker · lab
- Backpressure: the water tank on the roof · lab
- Retries, backoff and jitter · lab
- Observability: knowing when your system is sick · reading
Part 4: Working asynchronously
- Message queue · lab
- A partitioned log, Kafka style · lab
- Delivery guarantees and idempotency keys · reading
- Saga: one order, three services · lab
Part 5: Storing data
- Database index · lab
- Write-ahead log: surviving a power cut · lab
- Replication and consensus · lab
- Quorums: when does a read see the latest write? · lab
- Unique IDs in a distributed system · lab
- Sharding: splitting one database into many · reading
- SQL or NoSQL, and CAP in plain words · reading
- Storage engines: B-tree or LSM-tree · reading
- The last ticket: race conditions and locks · lab
- Bloom filter: “definitely not” or “maybe” · lab
Part 6: Case studies
- A URL shortener · case study
- A notification system (SMS, email, push) · case study
- A chat app · case study
- A news feed · case study
- A payment flow · case study
- A web crawler · case study
- Ride sharing · case study
- Concert ticket booking · case study
After this course
To go deeper, two good books: “Designing Data-Intensive Applications” by Martin Kleppmann, for data and distributed systems, and “System Design Interview” by Alex Xu, for interview practice.
If a lesson was unclear, or a topic is missing, write it in the comments. This course grows from that feedback.