Home›System Design Tutorial
Free course
System Design Tutorial
Learn system design from zero, one small and easy step at a time. Every idea is explained in plain words, then shown with clear diagrams and real examples you can follow.
Course contents
Every lesson has its own page with the explanation, code you can copy, the real output, screenshots from the video, and a link that jumps straight to that moment in the video.
1. The Big Picture
2. Measuring Speed
3. Up, Big and Clear
4. Day One and a Framework
5. How the Network Works
- DNS Deep Dive13:58
- HTTP and HTTPS15:33
- TCP vs UDP16:45
6. Designing APIs
- REST APIs18:08
- Good API Design19:18
- Pagination20:20
7. Safe Retries and API Styles
- Idempotency21:29
- GraphQL and gRPC22:44
- Real-Time Updates23:49
8. Gateways and Practice
- API Gateways24:59
- Practice: Design an API26:06
- Networking Quiz27:10
9. Load Balancing
- Load Balancers28:33
- Balancing Algorithms29:36
- L4 vs L7 Balancing30:40
10. Healthy, Stateless Servers
- Health Checks31:57
- Stateless Servers33:09
- Where Sessions Live34:16
11. Closer and Bigger
- CDNs35:30
- Reverse Proxies36:44
- Autoscaling37:55
12. Rate Limiting
- Rate Limiting39:10
- Rate Limiter Algorithms40:25
- Scaling Quiz41:39
13. Database Families
- SQL vs NoSQL43:01
- Kinds of NoSQL44:20
- Indexes45:40
14. Correct and Copied
- Transactions and ACID46:54
- Replication48:11
- Read Replicas and Lag49:17
15. Sharding
- Sharding50:33
- Choosing a Shard Key51:51
- Consistent Hashing53:00
16. Hot Spots and CAP
- Hot Spots54:13
- The CAP Theorem55:27
- Consistency Models56:38
17. Storing More Kinds of Data
- Denormalization57:52
- Object Storage59:07
- Search Indexes1:00:09
18. Choosing Storage
- Choosing a Database1:01:21
- Practice: Shoply's Data1:02:33
- Databases Quiz1:03:36
19. Caching Basics
- Why Caching1:05:21
- Cache-Aside1:06:36
- Write Strategies1:07:43
20. Keeping Caches Healthy
- Eviction and LRU1:08:58
- TTL and Invalidation1:10:11
- Cache Stampedes1:11:24
21. Redis and Cache Layers
- Redis1:12:37
- Layers of Caching1:13:58
- Caching Quiz1:15:02
22. Async and Queues
- Sync vs Async1:16:29
- Message Queues1:17:43
- Pub/Sub1:18:53
23. Logs and Guarantees
- Kafka and Logs1:20:12
- Delivery Guarantees1:21:33
- Idempotent Consumers1:22:40
24. Robust Messaging
- Dead-Letter Queues1:23:51
- Backpressure1:25:05
- Event-Driven Design1:26:16
25. Batch, Stream and Schedules
- Batch vs Stream1:27:32
- Scheduled Jobs1:28:48
- Messaging Quiz1:30:00
26. Services and Timeouts
- Monolith vs Microservices1:31:29
- Service Discovery1:32:42
- Timeouts1:33:46
27. Resilience Patterns
- Retries and Backoff1:35:04
- Circuit Breakers1:36:18
- Bulkheads1:37:30
28. Surviving Failure
- Single Points of Failure1:38:42
- Failover1:39:52
- Disaster Recovery1:40:57
29. Observability
- Monitoring and Metrics1:42:19
- Logs and Tracing1:43:27
- SLIs, SLOs and SLAs1:44:35
30. IDs and Security
- Unique IDs at Scale1:45:53
- Security Basics1:47:09
- Architecture Quiz1:48:24
31. Case Study: URL Shortener
- URL Shortener: Requirements1:50:05
- URL Shortener: Estimates1:51:24
- URL Shortener: Short Codes1:52:25
32. Shortener Design and More
- URL Shortener: The Design1:53:29
- Rate Limiter Service1:54:55
- Chat App: Requirements1:56:10
33. Case Study: Chat and Feeds
- Chat App: Delivery1:57:29
- Chat App: Storage and Groups1:58:40
- News Feed: Requirements2:00:07
34. Case Study: Feeds and Notifications
- News Feed: Fan-Out2:01:22
- News Feed: Ranking and Cache2:02:42
- Notification System2:03:50
35. Case Study: Video and Crawling
- Video Streaming: Upload2:05:09
- Video Streaming: Playback2:06:29
- Web Crawler2:07:42
36. Case Study: Crawling and Location
- Web Crawler at Scale2:08:48
- Nearby Search: Geohash2:10:04
- Ride Matching2:11:19
37. Case Study: Autocomplete and Key-Value
- Search Autocomplete2:12:33
- Autocomplete at Scale2:13:45
- A Key-Value Store2:14:51
38. Quorums and Patterns
- Key-Value Store: Replication2:16:04
- Case Study Patterns2:17:38
- Case Studies Quiz2:18:47
39. The Interview
- The Interview, Step by Step2:20:10
- Talking About Trade-offs2:21:15
- Common Mistakes2:22:22
40. Practice and Next Steps
- Practice: Design a Pastebin2:23:30
- The Cheat Sheet2:24:52
- What to Learn Next2:25:54