System design
A system design round is a design review, not a vocabulary test. This track builds the method (requirements before boxes, arithmetic before opinions, one named bottleneck before any deep dive), then the mechanisms every real answer is assembled from, the handful of technologies you will actually name, the recurring patterns that turn up in most prompts, and ten designs worked end to end.
Most candidates lose this round by drawing a correct diagram they cannot defend. The score comes from the trade-offs you name out loud, so that is what this track drills.
The method: framework, arithmetic, APIs, data, storage, caching
The things that decide the round before you get anywhere near a fan-out strategy. How the 45 minutes are scored and spent, how to size a system in your head without lying, how to write the API and the data model the rest of the design hangs from, how to pick a datastore and index it for a reason you can state, and how caching changes the numbers you just computed.
-
1
What the round actually measures
A system design interview is forty-five minutes of design review conducted on a system that does not exist yet. This is the time budget that survives contact with a real interviewer, and the four signals your score is actually assembled from. Free -
2
The delivery framework, from entities to deep dives
Once the requirements and numbers are on the board, the rest of the round has a shape an interviewer can follow. This is that shape, step by step: the core entities, the interface, an optional data flow, a high-level design built one requirement at a time, and deep dives chosen from the non-functional targets rather than from whatever you know best. Free -
3
Back-of-the-envelope estimation
The eight minutes of arithmetic that make every later decision decidable — QPS from one anchor number, storage over five years, and the single question all of it exists to answer: does the hot set fit in memory? Free -
4
API design: the contract the boxes have to honour
The interface you write in minute ten is the contract every later box must honour, so it is worth getting the parts interviewers check right: resources and verbs with their real semantics, the case for GraphQL or gRPC, pagination that survives concurrent writes, idempotency keys, honest status codes, versioning, and where authentication and the API gateway sit. Free -
5
Data modeling from the access pattern
A data model is a set of answers to the queries your product will run, so it is built from those queries rather than from the nouns alone. This covers keys that will not hurt you later, one-to-many and many-to-many relationships, normalising first and denormalising for a named read, and how the same domain is laid out differently in a relational store and a partitioned key-value store. Free -
6
Picking a datastore, for a reason you can state
"SQL versus NoSQL" is the wrong axis and interviewers know it. The real decisions are your access pattern, your consistency requirement, and whether your storage engine is a B-tree or an LSM tree — and the last one explains most of what people mean when they say a database is "fast at writes". Free -
7
Indexes: what a query costs with and without one
An index turns a scan of every page into a walk of three or four, but only for the queries whose shape it matches, and every index you add is paid for on every write. This counts the page reads, shows why a planner ignores an index for unselective queries, and covers composite column order, covering indexes, the write cost, and how to read a query plan. Free -
8
Caching, eviction, and stampedes
A cache is the cheapest way to hit a latency target and the easiest way to invent a new outage. This is where the caching patterns actually differ, why a stampede is arithmetic rather than bad luck, and the access pattern that separates LRU from LFU. Free
Mechanisms: networks, replication, queues, limits, and placement
The machines every distributed answer is assembled from, each derived rather than named. What a request crosses on the network and where a load balancer sits; how copies of data disagree and what a quorum actually buys; why a queue is a decision about what to drop; what a rate limiter costs per request; how to split data across machines by a key you will live with; and how to place a key so that adding a machine doesn't move every other key.
-
1
Networking essentials: what a request actually crosses
Every box on your diagram is joined by an arrow, and every arrow is a network hop with a handshake, a round-trip time and a failure mode; this lesson prices those arrows, from DNS and the TCP and TLS handshakes to HTTP versions, load balancers, timeouts and the speed of light between regions. 22 min · app -
2
Replication, quorums, and what "consistent" means to your interviewer
One copy of your data is a single point of failure; two copies are a disagreement waiting to happen. This derives what replication buys, what a quorum guarantees and — more importantly — what it does not, and how to answer "is this strongly consistent?" without reciting CAP. 27 min · app -
3
Queues, backpressure, and what you are willing to drop
A queue does not make a slow system fast; it changes what happens when the system is too slow. This derives the arithmetic of a growing queue, the difference between a buffer and a backlog, exactly-once as a fiction you replace with idempotency, and why every queue design is really a policy about dropping work. 28 min · app -
4
Rate limiting: four algorithms, one distributed problem
Every rate limiter answers the same question — may this request proceed? — and the four standard algorithms differ only in what they remember. This builds the token bucket and the sliding window from scratch, shows the burst the fixed window lets through, and then confronts the part that is actually hard: making the counter correct across many servers. 26 min · app -
5
Sharding: choosing the key you will live with
Sharding splits one dataset across machines so that each holds a slice, and almost every consequence (which queries stay cheap, which become a fan-out to every shard, where the hot spots form) follows from one choice, the shard key, which is also the hardest choice in the system to reverse. 23 min · app -
6
Consistent hashing, and why `hash % N` breaks on the day you scale
Placing a key on a machine looks like a one-line problem until the machine count changes. This measures how much data `hash % N` moves when you add a node, builds the ring that fixes it, shows why the ring is lumpy without virtual nodes, and names what consistent hashing still does not solve. 24 min · app
Key technologies: the tools you will actually name
Interviewers expect you to name real systems and know how they behave under load. This part covers the six that appear in most strong answers (Postgres, DynamoDB and Cassandra, Redis, Kafka, Elasticsearch, and object storage with a CDN in front), each through the same lens: the data model, the one number that sizes it, the failure that bites, and when to reach for something else.
-
1
Postgres as the default, and where it stops
A single well-run Postgres primary with replicas is the correct starting answer for most system design prompts, and the skill an interviewer is checking is whether you know what it gives you (transactions, isolation, indexes, JSONB) and the specific signals, such as write volume, connection count and replica lag, that tell you it is time for something else. 22 min · app -
2
DynamoDB and Cassandra: design the table from the query
DynamoDB and Cassandra both descend from the same idea, hash a partition key to a machine and keep rows sorted inside it, so using either well means writing the queries first and deriving the keys from them, then handling the hot partitions, secondary indexes, consistency settings and deletes that this model makes awkward. 24 min · app -
3
Redis: one thread, many jobs
Redis turns up in nearly every design as a cache, a counter, a leaderboard, a lock or a little queue, and each of those uses leans on the same two facts: every command runs alone on one thread, and the data lives in memory first and on disk second. 22 min · app -
4
Kafka and event streams: a log, not a queue
Kafka is a replicated, partitioned, append-only log that consumers read at their own pace, and nearly every design question about it (ordering, scaling, durability, replay) is really a question about partitions and offsets. 24 min · app -
5
Elasticsearch and the search index beside your database
A search engine answers "which documents best match these words" by precomputing an inverted index, which makes it superb at relevance and filtering and a poor place to keep the only copy of your data, so the design question is always how the index stays in step with the database that owns the truth. 22 min · app -
6
Blob storage, direct uploads, and CDNs
Photos, videos and files belong in object storage with only their metadata in your database, uploaded straight from the client with a signed URL, split into parts so a dropped connection costs one part instead of the whole file, and served through a CDN whose cache rules you design as carefully as the schema. 22 min · app
Patterns: the problems hiding inside most prompts
A small set of problems turns up inside nearly every design prompt, whatever the product is called. Pushing updates to connected clients, moving slow work off the request path, keeping two buyers from taking the last seat, scaling reads, scaling writes, coordinating a process that spans several services, and finding what is nearby. Each one is a recognisable signal in the requirements and a short list of defensible answers.
-
1
Real-time updates: getting the server's news to the client
When the prompt says "live", "instantly" or "as it happens", the design has two separate problems, how the bytes reach the browser and how the server finds the one connection that should receive them, and most candidates only answer the first. 22 min · app -
2
Long-running jobs: answer now, finish later
Work that takes longer than a user will hold a request open must leave the request path, and the design that replaces it (a job record, a queue, a worker pool and a way to report status) has a handful of failure modes that decide the grade. 21 min · app -
3
Contention: two buyers, one seat
Whenever two users can try to take the same scarce thing at the same time, the design needs an explicit answer to who wins, and the answer is almost always an atomic conditional write in one database rather than a distributed lock. 24 min · app -
4
Scaling reads: index, replicate, cache, in that order
Most products read far more than they write, and the reliable way to scale those reads is a fixed order of moves (fix the query, add replicas, add a cache, push to the edge), each sized with arithmetic and each carrying a consistency cost you should name. 22 min · app -
5
Scaling writes: spread them, batch them, or shrink them
Reads can be copied and cached, but every write has to land somewhere durable, so scaling writes comes down to three moves (spread the writes across machines, batch them into fewer operations, or shrink them before they arrive), and each move is paid for in durability, latency or read complexity that you should name before the interviewer does. 22 min · app -
6
Multi-step workflows: when one request touches five services
When a single user action has to change state in several services that share no transaction, you cannot make it atomic, so you make it recoverable instead, with sagas and compensating actions, an outbox that never loses the event, and (when the steps are many or slow) a durable execution engine that remembers where the process got to. 24 min · app -
7
Proximity search: finding what is nearby
"Show me what is near me" is a range query in two dimensions, which an ordinary index handles badly, so the real design choice is how to turn location into something an index can range-scan (a geohash, a quadtree, an S2 or H3 cell) and whether the things you are searching for sit still or move every few seconds. 22 min · app
Cases: ten designs, worked end to end
The mechanisms, tools and patterns assembled into full answers under interview conditions. Each design is built in the order an interviewer expects to hear it (requirements, numbers, entities and API, the high-level design, then the deep dives that decide the grade), with the numbers written down. A URL shortener, a news feed, typeahead, chat, ticket booking, ride-sharing, file sync, a video platform, a web crawler and a click aggregator.
-
1
Design a URL shortener
The classic warm-up, and the one candidates most often answer shallowly. This works it in interview order — requirements, numbers, id generation, storage, the read path, then the parts that decide the grade: expiry, custom aliases, analytics that don't slow the redirect, and abuse. 28 min · app -
2
Design a news feed
One question decides this design — does the poster pay to deliver, or does the reader pay to assemble? This works the cost model in numbers, shows why every real feed is a hybrid, implements the k-way merge the read path needs, and handles the celebrity problem, ranking, and pagination that does not skip posts. 28 min · app -
3
Design search typeahead
Suggestions must appear in under 100 ms while the user is still typing, which rules out ranking anything at read time. This derives the latency budget, builds a trie whose nodes cache their own answers, and then handles the parts that make it a real system — updating popularity from a stream, trimming memory, and personalisation. 26 min · app -
4
Design a chat app
Chat looks like a real-time problem and is really a sync problem, because the network will drop, duplicate and reorder messages no matter how good your sockets are. This works it in interview order, with per-conversation sequence numbers and per-device cursors as the two ideas that make delivery, ordering, offline catch-up and read receipts fall out of one design. 28 min · app -
5
Design a ticket booking system
Selling seats is a small inventory problem wrapped in a very large traffic problem, and the two need opposite designs. This works it in interview order, with a conditional seat hold that expires on its own, a payment step that cannot double-sell, and an admission queue paced by the seats that are actually left. 28 min · app -
6
Design a ride-sharing app
A ride-sharing backend is two systems with opposite needs, a firehose of disposable driver locations and a small number of trips that must never be lost or double-booked. This works it in interview order, sizes the location stream, builds the grid search that finds nearby drivers, and makes matching safe with one offer at a time and a short lock per driver. 28 min · app -
7
Design file storage and sync
A file sync service looks like an upload form with a folder tree, but the grade comes from three decisions underneath it. Splitting metadata from bytes, cutting files into content-addressed chunks so an edit uploads only what changed, and a per-folder change journal that lets every device catch up from a cursor without ever scanning the tree. 27 min · app -
8
Design a video platform
A video platform is two systems joined at an object store. A write path that turns one large upload into thousands of small, pre-encoded segments, and a read path that is almost entirely a CDN, so the design questions are how to parallelise transcoding, how much storage the bitrate ladder costs, and what the CDN hit rate does to the bill. 27 min · app -
9
Design a web crawler
A crawler is a loop (fetch a page, find its links, fetch those) that becomes a design problem only at scale, where three constraints collide. A throughput target measured in thousands of pages a second, a politeness rule that limits how hard you may hit any one site, and a memory of billions of URLs you have already seen. 26 min · app -
10
Design an ad click aggregator
An ad click aggregator has to redirect a user in milliseconds, count every click exactly once for billing, and answer per-minute questions about millions of ads, which means separating the fast path from the counting path and then deciding how much correctness to buy in the stream versus in a batch job behind it. 27 min · app
Work through it with feedback
Reading the pattern is step one. The app runs you through it: editable code cells, the question bank, and a mock loop that grades your answer.
Log in to open the curriculum