Courses / System Design Interview
Course · Beta · FreeSystem Design Interview
Start with the round itself and the ideas every design rests on: network calls that fail, consistency, availability and quick estimates. Then learn nineteen building blocks one at a time, from DNS and load balancers to caches, queues, search and the parts a language model needs. Every block comes with small Python programs and their real output. Finish by designing twenty-two products in the order interviews tend to use them, including payments, a deployment system, a chat assistant and a support bot, and close with a timed mock round.
0 of 49 chapters done · saved on this device
Try a scene from chapter 1
Whole round: 45 min (a split to adapt, not a rule)
Read it as steps
Time per step in a 45-minute round: the steps and two deep dives add up to the full round
What you will be able to do
- Run a 45-minute design round: clarify requirements, estimate scale, sketch an API and data model, then go deep where it matters.
- Explain what consistency, availability and latency targets mean for a design, with the numbers behind each.
- Choose and combine DNS, load balancers, caches, CDNs, databases and key-value stores for a given access pattern.
- Build reliable asynchronous flows with queues, pub-sub and schedulers that survive retries, duplicates and crashes.
- Design systems that include a language model: serving, streaming, retrieval, guardrails and cost limits.
- Design twenty-two products end to end and defend each trade-off against a change in the requirements.
Who it is for
Final-year students, freshers and engineers with up to five years of experience preparing for system design rounds at product companies and global capability centres, and anyone who wants to know how the apps they use every day stay fast and stay up.
You will need
You can read a short Python program, know what an HTTP request and a status code are, and can read a simple SQL query. To run the examples yourself you need Python 3.12 and uv; the AI chapters also use a local Ollama install. No cloud account is needed.
Pick a path
Curriculum
11 modules · 49 chapters · 26 hModule 1Foundations0 of 4 done
How the design round runs, the distributed systems ideas every design rests on, and how to estimate scale.
- Not started: 01The System Design Interview: How It Runs and How to Answer23 min · 1 sceneHow the round runs, what is scored, a step-by-step method for answering, and a six-week study plan
- Not started: 02Core Concepts: RPCs, Consistency, Failures and Time24 min · 2 scenesWhat a network call hides, consistency from linearizable to eventual, failure models and logical clocks
- Not started: 03Non-Functional Requirements: Availability, Scale, Latency and More27 min · 2 scenesNines and downtime, reliability, scaling out, latency percentiles, maintainability and fault tolerance
- Not started: 04Back-of-the-Envelope Estimates23 min · 2 scenesNumbers worth knowing, then requests per second, storage, bandwidth and server counts from stated assumptions
Module 2Building Blocks I: Names, Traffic and Data0 of 7 done
The blocks on every request path: DNS, load balancers, databases, key-value stores, CDNs and unique IDs.
- Not started: 05Building Blocks: The Parts Every Design Reuses19 min · 1 sceneThe request, async and data paths, and which block each later chapter adds to a design
- Not started: 06DNS: Turning Names into Addresses29 min · 2 scenesThe name hierarchy, resolvers and caching, record types, TTLs, DNS-based load spreading and its failures
- Not started: 07Load Balancers33 min · 2 scenesLayer 4 and layer 7, balancing algorithms, health checks, sticky sessions, TLS and global balancing
- Not started: 08Databases: Choosing, Replicating and Partitioning35 min · 3 scenesStore families, transactions and isolation, replication and failover, quorums, partitioning and indexes
- Not started: 09Design a Distributed Key-Value Store29 min · 2 scenes · interview drillConsistent hashing, quorums, hinted handoff, vector clocks, Merkle trees, gossip and an LSM engine.
- Not started: 10Content Delivery Networks29 min · 2 scenesEdge caching, cache keys and headers, push and pull, invalidation, origin shielding and edge security
- Not started: 11Unique IDs: Sequencers, UUIDs and Snowflake IDs26 min · 2 scenesWhy IDs collide, counters and ranges, UUIDv4 and v7, Snowflake-style bit layouts, clock steps and causal order
Module 3Building Blocks II: Monitoring, Caching and Messaging0 of 6 done
Seeing failures on servers and clients, then caches, queues and pub-sub.
- Not started: 12Distributed Monitoring: Metrics, Logs and Traces25 min · 1 sceneGolden signals, the three telemetry signals, pull and push collection, time series and alert rules
- Not started: 13Monitoring Server-Side Errors25 min · 2 scenesHealth checks, black-box probes, error rates, SLOs, error budgets and burn-rate alerts
- Not started: 14Monitoring Client-Side Errors25 min · 1 sceneWhat servers cannot see, capturing errors in the browser, beacons, NEL, fingerprints, sampling and privacy
- Not started: 15Distributed Caches36 min · 2 scenesCache-aside and write policies, eviction, sharding, invalidation, stampedes and hot keys
- Not started: 16Distributed Message Queues33 min · 2 scenesAcknowledgements, delivery semantics, idempotent consumers, ordering, retries, dead letters and back-pressure
- Not started: 17Publish-Subscribe Systems25 min · 1 sceneTopics and fan-out, queues versus pub-sub, consumer groups and offsets, retention and replay
Module 4Building Blocks III: Limits, Storage and Search0 of 6 done
Rate limits, blob storage, search, logging, scheduled work and counters under heavy write load.
- Not started: 18Rate Limiters31 min · 2 scenesToken and leaky buckets, fixed and sliding windows, shared limits across servers, 429 and rate-limit headers
- Not started: 19Blob Stores30 min · 2 scenesBuckets and keys, multipart upload, metadata and data nodes, copies versus erasure coding, signed URLs
- Not started: 20Distributed Search27 min · 1 sceneInverted indexes, BM25 ranking, segments and merges, sharding by document, scatter-gather queries
- Not started: 21Distributed Logging23 min · 1 sceneStructured logs and request ids, collection pipelines, storage tiers, sampling and keeping secrets out
- Not started: 22Distributed Task Schedulers36 min · 2 scenesA durable task store, leases and heartbeats, retries, priorities, cron schedules and idempotent tasks
- Not started: 23Sharded Counters23 min · 1 sceneHot keys, spreading writes over shards, reading cached totals, choosing the shard count and HyperLogLog
Module 5AI Building Blocks and Review0 of 2 done
The parts a design needs when it includes a language model, then timed practice across every block.
- Not started: 24AI Building Blocks: Inference, Embeddings, Retrieval and Agents48 min · 3 scenesTokens and context, serving and batching, streaming, embeddings, retrieval, guardrails and tool calls
- Not started: 25Putting the Blocks Together: Timed Practice22 min · 1 sceneMatch requirements to blocks, the trade-offs that recur, and three timed small designs
Module 6Design Problems I: Video, Q&A and Location0 of 4 done
Four products built from the blocks: video streaming, a Q&A site, maps and nearby search.
- Not started: 26Design a Video Platform like YouTube31 min · 3 scenes · interview drillResumable uploads, transcoding, adaptive bitrate streaming, CDN delivery, view counts and recommendations
- Not started: 27Design a Q&A Platform like Quora29 min · 2 scenes · interview drillQuestions, answers and votes, ranking answers fairly, page caching, duplicate questions and moderation
- Not started: 28Design a Maps and Navigation Service like Google Maps31 min · 3 scenes · interview drillMap tiles, the road graph, shortest paths and shortcuts, ETAs from live traffic, and rerouting
- Not started: 29Design a Nearby Places Service like Yelp31 min · 2 scenes · interview drillSizing the index, geohash and quadtree cells, neighbour cells, ranking by distance and rating, and failures
Module 7Design Problems II: Rides and Social Feeds0 of 4 done
Ride matching, a microblog, a news feed and photo sharing.
- Not started: 30Design a Ride-Hailing Service like Uber32 min · 4 scenes · interview drillDriver location updates, a grid index, matching without double assignment, the trip state machine and surge
- Not started: 31Design a Microblogging Service like Twitter28 min · 2 scenes · interview drillPosts and ids, pushing or pulling timelines, a hybrid for big accounts, hashtag trends and timeline caching
- Not started: 32Design a News Feed31 min · 2 scenes · interview drillRanked feeds from stored lists: scoring signals, cursor pagination, seen posts and degraded modes
- Not started: 33Design a Photo-Sharing Service like Instagram35 min · 3 scenes · interview drillDirect uploads with signed URLs, resize workers, sharded ids that encode the shard, the follow feed and likes
Module 8Design Problems III: Links, Crawling and Collaboration0 of 5 done
A link shortener, a crawler, messaging, typeahead and collaborative editing.
- Not started: 34Design a URL Shortener like TinyURL31 min · 2 scenes · interview drillBase 62 codes, the birthday bound, 301 against 302, an LRU cache, custom aliases, expiry and abuse
- Not started: 35Design a Web Crawler35 min · 2 scenes · interview drillThe URL frontier, politeness, robots.txt, Bloom filters for de-duplication, traps and recrawl scheduling
- Not started: 36Design a Messaging App like WhatsApp35 min · 3 scenes · interview drillPersistent connections, a session directory, receipts and offline sync, groups, encryption and presence
- Not started: 37Design Typeahead Suggestions31 min · 2 scenes · interview drillPrefix tries with top-k lists, building from query logs, serving within a keystroke, and updates
- Not started: 38Design Collaborative Editing like Google Docs43 min · 3 scenes · interview drillConcurrent edits, operational transformation, a sequence CRDT, the edit log, snapshots and presence
Module 9Design Problems IV: Platforms and Money0 of 5 done
Deployments, payments, an online judge, calendars and a metrics and alerting system.
- Not started: 39Design a Deployment System42 min · 3 scenes · interview drillContent-addressed artifacts, a pull-based control plane, canaries, waves, bake time and feature flags
- Not started: 40Design a Payment System40 min · 3 scenes · interview drillProviders and webhooks, idempotency keys, a double-entry ledger and reconciliation
- Not started: 41Design an Online Judge like LeetCode44 min · 2 scenes · interview drillSubmission queues, sandboxed runs with limits, judging outputs, contests and live leaderboards
- Not started: 42Design a Calendar Service like Google Calendar41 min · 2 scenes · interview drillEvents and recurrence rules, time zones and daylight saving, free-busy search, reminders and sync
- Not started: 43Design a Metrics Monitoring and Alerting System37 min · 2 scenes · interview drillIngesting series, time-series compression, rollups, alert rules, grouping, silences and high availability
Module 10Design Problems V: AI and Data Systems0 of 4 done
A chat assistant, a data platform, a support bot and a code assistant, with every model run locally.
- Not started: 44Design a Chat Assistant like ChatGPT43 min · 4 scenes · interview drillStreaming replies, inference capacity, context trimming, token limits and safety layers
- Not started: 45Design a Data Infrastructure Platform43 min · 2 scenes · interview drillEvent and change capture, lake, batch and stream jobs, column files, orchestration and quality
- Not started: 46Design an LLM Customer Support Bot42 min · 3 scenes · interview drillIngesting help articles, grounded answers with citations, gated actions, handoff and evaluation
- Not started: 47Design an AI Code Assistant48 min · 2 scenes · interview drillRequest kinds and budgets, context ranking, fill in the middle, latency, and guarded edits
Module 11Wrap-up0 of 2 done
What public outages teach, then a timed mock round with model answers.
- Not started: 48Lessons from Real System Failures34 min · 1 scenePublic postmortems on bad commands, global pushes, network lockouts, retries and untested backups
- Not started: 49Mock Interview: Four Timed Design Rounds36 min · 1 sceneA rubric, then four timed prompts with model answers to score yourself against
How this course is made
Written by the aiiolar team. Every chapter is fact-checked by a second reviewer, checked against a shared set of numbers so chapters agree, and checked for originality before it goes up. Found a mistake? Tell us and we fix it within a week.
Questions
Is it free?
Yes. Every chapter, scene and quiz is free, with no sign-up wall.
Do I need to run the code?
No. Every program is shown with its real output, so you can read the course without installing anything. If you want to run them, Python 3.12 and uv are enough for most chapters, and the AI chapters use a free local Ollama install instead of a paid API.
Why Python?
System design rounds are mostly drawing and talking, so the code is there to make one idea concrete at a time: a token bucket, a hash ring, a quorum, a retry. Python keeps those programs short enough to read in a minute.
Do the designs describe how YouTube or Uber really work?
No. The product names set the scope of the problem. The designs are our own, and where a chapter states a fact about a real company it cites that company's own public engineering post or paper.
Is this enough for my interview?
It prepares you for the high-level design round. Many companies also run a low-level design or machine-coding round, which has its own course on aiiolar.
How long does it take?
About 26 hours of reading. Most people preparing for a round do one or two chapters a day for about six weeks, and run the mock chapter at least twice.
Will it work on slow mobile data?
Yes. Text loads first and scenes load only when you reach them, and every scene also has a text version you can read instead.