System design

Real systems taken apart: payments, feeds, rate limiters. We start from the requirements an interviewer gives you, not from a box diagram.

121 questions19 topics4 levels33 must‑knowFree, no account

Your progress

L1 · 0 of 13L2 · 0 of 48L3 · 0 of 45L4 · 0 of 15

Level 1 · 13 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.

Start with Level 1
Level 1First ten minutesTwo-sentence answers to what gets asked first.13 questions · 7 topics

API, REST, gRPC and MCP compared

  1. 1.1What is an API, and how do REST, gRPC and MCP relate to it?Must‑know3 min
  2. 1.2Which HTTP methods are safe or idempotent, and how do status codes and caching fit?Must‑know5 min

CAP theorem in system design interviews

  1. 2.1What is the CAP theorem, and how do you use it in a design?Must‑know4 min

Elasticsearch query writing and optimization for product search

  1. 3.1How do you structure a bool query with must, should, filter and must_not?Must‑know3 min
  2. 3.2When do you use match, match_phrase or term, and what does each cost?Must‑know3 min

Embeddings for ML system design interviews

  1. 4.1Why use embeddings instead of one-hot IDs, and what decides what "close" means?Must‑know2 min

System design basics: the fundamentals interviewers expect

  1. 5.1How do you do a back-of-the-envelope estimate, and how does it change your design?Must‑know3 min
  2. 5.2What does a load balancer do, and what is the difference between L4 and L7 load balancing?Must‑know3 min
  3. 5.3What is a CDN, and when does it help?2 min

Why an Elasticsearch query is slow even with an index

  1. 6.1Should a product ID be mapped as a number or a keyword in Elasticsearch?Must‑know3 min

Zalando search fundamentals: Lucene and Elasticsearch

  1. 7.1What happens during text analysis, and why must index and query analysis match?Must‑know2 min
  2. 7.2What is an inverted index, and how does Lucene store it?Must‑know3 min
  3. 7.3What is the difference between query context and filter context, and why does it matter?Must‑know2 min
Level 2Daily jobWhat you use at work every week.48 questions · 10 topics

API, REST, gRPC and MCP compared

  1. 1.1How do you evolve a Protocol Buffers message without breaking old clients?3 min
  2. 1.2How does gRPC work, and what are the four RPC types?5 min
  3. 1.3How does the Model Context Protocol work, and how does it differ from REST and gRPC?8 min
  4. 1.4How should you version a REST API without breaking clients?Must‑know3 min
  5. 1.5What constraints define REST, and what does the uniform interface require?4 min

Choosing monoliths or microservices

  1. 2.1When would you choose a monolith instead of microservices?Must‑know4 min

Elasticsearch query writing and optimization for product search

  1. 3.1How do you add typo tolerance without making every search slow?3 min
  2. 3.2How do you search several product fields with boosts, and when do you pick best_fields or cross_fields?3 min
  3. 3.3How do you write range and geo filters so they stay cheap?3 min
  4. 3.4Should synonyms be applied at index time or at query time?3 min
  5. 3.5What is the difference between filter and post_filter, and what does post_filter cost?3 min
  6. 3.6Why can highlighting make search slower, and how do you keep it cheap?3 min
  7. 3.7Write the Elasticsearch request for a product listing page with facets, sorting and pagination.Must‑know5 min

Embeddings for ML system design interviews

  1. 4.1How are embeddings used downstream: features, clustering and retrieval?2 min
  2. 4.2Should you train your own text encoder, fine-tune one, or call an embedding API?2 min

PostgreSQL query writing and optimization for backend interviews

  1. 5.1How do you choose the column order of a composite index, and when do partial or covering indexes help?Must‑know4 min
  2. 5.2How do you get the top N rows per group, such as the three best-selling products per category?3 min
  3. 5.3How do you make a contains search like LIKE '%boot%' fast, and when do you use full-text search instead?3 min
  4. 5.4How do you read an EXPLAIN ANALYZE plan, and what do you look for first?Must‑know4 min
  5. 5.5Live task: write the SQL for a monthly category report, then make it fast.4 min
  6. 5.6When do you use EXISTS, IN or a JOIN, and why is NOT IN dangerous?Must‑know4 min
  7. 5.7Why can an OR condition make PostgreSQL ignore your indexes, and how do you rewrite it?3 min
  8. 5.8Why does wrapping a column in a function or comparing it with a different type stop the index from being used?Must‑know3 min

Product search system design

  1. 6.1How do retrieval and ranking differ, and why separate them?Must‑know2 min
  2. 6.2How do you explain eventual consistency for price and stock in search?Must‑know2 min
  3. 6.3What requirements and trade-offs define a product-catalog search system?Must‑know3 min
  4. 6.4What would you observe and alert on for a search platform?2 min
  5. 6.5Where do you cache in a product search stack, and what must stay uncached?Must‑know2 min

Redis beyond caching

  1. 7.1What can Redis do besides caching, and what guarantees must you check?Must‑know4 min

Scaling a real URL shortener to 1 million HTTP requests per second

  1. 8.1How do you load test this honestly and find the real bottleneck?3 min
  2. 8.2Redis is no longer the limit, but Postgres CPU is. How does caching the links get you to half a million?2 min
  3. 8.3The database CPU is pinned at 5,000 requests/s. What's the first fix, and does switching from Node.js to Go help?2 min

System design basics: the fundamentals interviewers expect

  1. 9.1How do idempotency keys make retries safe for a payment API?Must‑know3 min
  2. 9.2How do services find each other in a microservices system?2 min
  3. 9.3How do you keep a cache in sync with the database, and what is a cache stampede?Must‑know3 min
  4. 9.4How do you make a service fault tolerant when its dependencies fail?Must‑know3 min
  5. 9.5How do you shard data, and how do you choose a shard key?Must‑know3 min
  6. 9.6How does database replication work, and what is replica lag?Must‑know3 min
  7. 9.7How does rate limiting work, and which algorithm would you choose?Must‑know3 min
  8. 9.8What are two-phase commit, sagas and the outbox pattern, and when do you use each?3 min
  9. 9.9What consistency models should you know, from linearizable to eventual?3 min
  10. 9.10Your database is getting slow as traffic grows. What do you do, in what order?Must‑know3 min

Why an Elasticsearch query is slow even with an index

  1. 10.1A search query is slow even though every field is indexed. What do you check first?Must‑know3 min
  2. 10.2How do you make prefix and autocomplete queries fast in Elasticsearch?3 min
  3. 10.3Why do date range queries with now miss the cache, and how does rounding help?3 min
  4. 10.4Why do scripts make Elasticsearch queries slow, and what do you do instead?3 min
  5. 10.5Why does searching across many fields slow Elasticsearch down, and how does copy_to help?2 min
  6. 10.6Why is a wildcard search that starts with an asterisk slow, and how do you fix it?Must‑know3 min
Level 3SeniorProduction trade-offs and failure modes.45 questions · 15 topics

API, REST, gRPC and MCP compared

  1. 1.1When would you choose REST, gRPC or MCP for the same capability?6 min
  2. 1.2Why can a TCP load balancer mishandle gRPC, and can a browser call it?3 min

Driver delivery system design

  1. 2.1How would you design a delivery system from the driver's perspective?6 min

Elasticsearch query writing and optimization for product search

  1. 3.1How do routing and shard count affect how many shards a query touches?4 min
  2. 3.2How do you add business signals to ranking without paying for them on every match?4 min
  3. 3.3How do you show one result per product model when each colour variant is its own document?3 min
  4. 3.4Why is deep pagination with from and size expensive, and when do you use search_after, a point in time or scroll?4 min

Embeddings for ML system design interviews

  1. 4.1How do you choose embedding size, retrain safely and keep vectors fresh?2 min
  2. 4.2How do you know an embedding is any good?1 min
  3. 4.3How does a new item get useful embeddings before it has any behaviour?2 min

LLM factuality checking system design

  1. 5.1How do you cut the cost of LLM judging at scale without losing recall?2 min
  2. 5.2How do you evaluate an LLM judge for factuality?3 min
  3. 5.3How would you design an automated factuality checker for generated text at scale?4 min

Multi-outlet ordering system design

  1. 6.1How would you design ordering across multiple restaurant outlets?8 min

Observability knowledge graph system design

  1. 7.1How do you model entities and resolve identity across tools that name things differently?2 min
  2. 7.2How do you turn LLM output and fuzzy matching into trustworthy graph facts?3 min
  3. 7.3How would you correlate deploys, alerts, logs and traces into ranked root-cause hypotheses?4 min
  4. 7.4How would you design an observability knowledge graph to speed up incident root-cause analysis?4 min

OTP platform design

  1. 8.1How would you design a secure OTP platform?5 min

PostgreSQL query writing and optimization for backend interviews

  1. 9.1A query that was fast yesterday is slow today with no code change. How can statistics cause that?4 min
  2. 9.2Why is COUNT(*) slow on a large table, and what do you do about it?4 min

Product search system design

  1. 10.1How do you evaluate whether search relevance actually improved?2 min
  2. 10.2How do you ingest product updates with CDC or application events?3 min
  3. 10.3How do you keep search available when queries or updates overload the cluster?2 min
  4. 10.4How should the search index be designed for a multi-market catalog?3 min
  5. 10.5How would you separate the write model from the search read model?2 min
  6. 10.6Walk through an end-to-end product search query pipeline3 min

Proving a rewritten service behaves like the old one

  1. 11.1A team says moving a service from Java to Go cut memory 40 times. Is that a fair Java-versus-Go comparison?4 min
  2. 11.2You are porting a production service to a new language. How do you prove the new one behaves exactly like the old one?5 min

Scaling a real URL shortener to 1 million HTTP requests per second

  1. 12.1At 50,000 requests/s the disk is mostly idle. Why is the write path still the bottleneck?2 min
  2. 12.2Design and scale a real URL shortener's redirect to 1M HTTP requests/s and about 2B Postgres rows every 30 minutes. Where do you start?4 min
  3. 12.3How do you batch the view writes without losing data if a process crashes?3 min
  4. 12.4How do you keep request logging from becoming the bottleneck, or silently dropping lines?2 min
  5. 12.5The app server is out of CPU at half a million. Do you scale up, scale out, or rewrite?3 min
  6. 12.6The database is a single EC2 box at high load. What would you change for durability before production?2 min
  7. 12.7Walk through the final 30-minute test. How do you prove nothing was lost?3 min
  8. 12.8What should a senior candidate say about cost, and when is this scale overkill?2 min
  9. 12.9Your write buffer lives in RAM. How do you size it, and what happens if the consumer falls behind?3 min

System design basics: the fundamentals interviewers expect

  1. 13.1How does leader election work, and how do you prevent split-brain?3 min

When to switch databases: Uber versus Instagram

  1. 14.1When is switching databases the right call? Compare Uber and Instagram.7 min

Zalando search fundamentals: Lucene and Elasticsearch

  1. 15.1A relevant product ranks too low or does not appear. How do you debug it?3 min
  2. 15.2How do shards and replicas shape query execution and latency?3 min
  3. 15.3How much heap should an Elasticsearch node get, and why does the page cache matter?3 min
  4. 15.4What is BM25, and how does it differ from TF-IDF?4 min
  5. 15.5Why is Elasticsearch near-real-time, and how do refresh, flush and indexing latency trade off?2 min
Level 4InternalsHow it works underneath, and at scale.15 questions · 8 topics

Elasticsearch query writing and optimization for product search

  1. 1.1How do the node query cache and the shard request cache work, and how do you write queries that hit them?3 min
  2. 1.2What makes sorting expensive in Elasticsearch, and how can index sorting help?3 min
  3. 1.3Why are terms aggregation counts approximate, and how do you trade accuracy against cost?4 min

Embeddings for ML system design interviews

  1. 2.1How do you train a two-tower retrieval model with in-batch and hard negatives?4 min
  2. 2.2How does matrix factorization learn item embeddings, and why start with it?2 min
  3. 2.3When do graph embeddings help, and should you pick node2vec or GraphSAGE?3 min

LLM factuality checking system design

  1. 3.1How do claim decomposition and atomic fact verification work?2 min

Observability knowledge graph system design

  1. 4.1Why use RDF, OWL, SHACL and SPARQL rather than a property graph, and how do you query and store it?4 min

PostgreSQL query writing and optimization for backend interviews

  1. 5.1How does PostgreSQL choose between a nested loop, hash join and merge join?4 min

Product search system design

  1. 6.1How would you scale product search across regions and large catalogs?2 min

Scaling a real URL shortener to 1 million HTTP requests per second

  1. 7.1What broke in the Postgres schema and insert path only at a million rows per second?3 min

Zalando search fundamentals: Lucene and Elasticsearch

  1. 8.1How do you evaluate Boolean AND and OR over postings lists?3 min
  2. 8.2How do you return the top K results without scoring and sorting every match?2 min
  3. 8.3What is a Lucene segment, and how do updates, deletes and merges work?2 min
  4. 8.4What is an FST, and why does Lucene use one for the terms dictionary?2 min