System Design Foundations
From one server to millions of users: the building blocks of every large system, from beginner to intermediate.

₹499
Start freeThe first 2 sections are free for any signed-in learner: 5 articles, 2 labs, 2 quizzes. No card needed.
Sign in to buyAbout this course
Learn how real systems handle millions of users, one building block at a time. Each topic follows the same story: a problem → the fix → the new problem that fix creates. Then you build the mechanism yourself.
What you'll do
- Estimate traffic, servers and storage with back-of-envelope maths, then code the estimator
- Build the core of a load balancer, an LRU cache with TTLs, a replica-aware database router, an idempotent queue worker and a token-bucket rate limiter, all checked by hidden tests
- Design APIs that survive retries (idempotency keys, cursor pagination) and guard them against IDOR
- Tune live simulations: scale a fleet for a peak, drain a queue, tune a cache, survive a server crash
- Find a p95 latency and an incident's worst minute in real logs, in a Linux terminal
- Run the 45-minute interview framework and build a URL shortener as the capstone
Prerequisites: basic web development (HTTP, a backend, a SQL table) and enough Python to edit a small function. Next course: System Design: Intermediate to Senior.
Course outline
Thinking at Scale
Free6 itemsScaling up vs out, stateless servers, the vocabulary of latency and availability, and back-of-envelope estimation.
How a Request Travels: Networking and APIs
Free5 itemsDNS, TCP/TLS, CDNs and gateways; API styles, status codes, cursor pagination and idempotency keys.
Load Balancing
4 itemsL4 vs L7, algorithms, health checks, connection draining and keeping the load balancer itself available.
- Load balancersArticle · 8 min
- Lab: Build a load balancer's braincompile Lab · 25 min
- Practice: keep traffic flowing through a crashInteractive · 10 min
- Quiz: Load balancingQuiz · 5 min
Caching and CDNs
4 itemsCache-aside, write strategies, eviction and TTLs, stampedes and hot keys, and caching at the edge.
- Caching and CDNsArticle · 10 min
- Lab: A cache-aside LRU cache with TTLscompile Lab · 25 min
- Practice: tune a cache without lying to usersInteractive · 12 min
- Quiz: CachingQuiz · 6 min
Databases
5 itemsChoosing by access pattern, ACID, indexes, pooling, read replicas and lag, partitioning and sharding.
- Choosing a databaseArticle · 8 min
- Scaling a databaseArticle · 10 min
- Lab: Route reads and writes across replicascompile Lab · 25 min
- Practice: the right store, the right next stepInteractive · 10 min
- Quiz: DatabasesQuiz · 6 min
Queues and Background Work
4 itemsQueues, pub/sub and logs; at-least-once delivery, idempotent consumers, retries and dead-letter queues.
- Queues: do it later, do it reliablyArticle · 9 min
- Lab: A queue worker that never double-sendscompile Lab · 25 min
- Practice: drain the dinner rushInteractive · 10 min
- Quiz: QueuesQuiz · 5 min
Files and Search
4 itemsObject storage and presigned uploads, CDNs for media, inverted indexes, keeping search in sync, and typeahead.
- Object storage, CDNs and searchArticle · 9 min
- Lab: A typeahead that's kind to the serverweb Lab · 25 min
- Practice: where files and text belongInteractive · 9 min
- Quiz: Files and searchQuiz · 5 min
Security Basics
4 itemsAuthentication vs authorization, sessions and JWTs, ownership checks, data protection, and common attacks.
- Authentication, authorization and common attacksArticle · 10 min
- Lab: Guard an API with signed tokenscompile Lab · 25 min
- Practice: 401, 403, and the attacks you'll meetInteractive · 9 min
- Quiz: SecurityQuiz · 6 min
Keeping It Up and Seeing Inside
6 itemsRate limits, timeouts, retries and breakers; metrics, logs and traces; alerting and safe deploys.
- Rate limits, timeouts and retriesArticle · 9 min
- Lab: Build a token-bucket rate limitercompile Lab · 25 min
- Observability and safe deploysArticle · 9 min
- Lab: Latency detective (server-verified)terminal Lab · 25 min
- Practice: limits, alerts and safe releasesInteractive · 12 min
- Quiz: Reliability and observabilityQuiz · 7 min
Capstone: Your First Design
5 itemsThe 45-minute interview framework, a full URL shortener walkthrough, and the capstone lab.
- The design interview frameworkArticle · 8 min
- Walkthrough: design a URL shortenerArticle · 10 min
- Capstone lab: A URL shortener's corecompile Lab · 35 min
- Practice: run the interviewInteractive · 10 min
- Final exam: System design foundationsQuiz · 15 min
