System design
Real systems taken apart: payments, feeds, rate limiters. We start from the requirements an interviewer gives you, not from a box diagram.
Your progress
L1 · 0 of 13L2 · 0 of 48L3 · 0 of 45L4 · 0 of 15
Next
Level 1 · 13 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.
Level 1First ten minutesTwo-sentence answers to what gets asked first.
API, REST, gRPC and MCP compared
- 1.1What is an API, and how do REST, gRPC and MCP relate to it?Must‑knowReview againNext3 min
- 1.2Which HTTP methods are safe or idempotent, and how do status codes and caching fit?Must‑knowReview againNext5 min
CAP theorem in system design interviews
- 2.1What is the CAP theorem, and how do you use it in a design?Must‑knowReview againNext4 min
Elasticsearch query writing and optimization for product search
- 3.1How do you structure a bool query with must, should, filter and must_not?Must‑knowReview againNext3 min
- 3.2When do you use match, match_phrase or term, and what does each cost?Must‑knowReview againNext3 min
Embeddings for ML system design interviews
- 4.1Why use embeddings instead of one-hot IDs, and what decides what "close" means?Must‑knowReview againNext2 min
System design basics: the fundamentals interviewers expect
- 5.1How do you do a back-of-the-envelope estimate, and how does it change your design?Must‑knowReview againNext3 min
- 5.2What does a load balancer do, and what is the difference between L4 and L7 load balancing?Must‑knowReview againNext3 min
- 5.3What is a CDN, and when does it help?Review againNext2 min
Why an Elasticsearch query is slow even with an index
- 6.1Should a product ID be mapped as a number or a keyword in Elasticsearch?Must‑knowReview againNext3 min
Zalando search fundamentals: Lucene and Elasticsearch
- 7.1What happens during text analysis, and why must index and query analysis match?Must‑knowReview againNext2 min
- 7.2What is an inverted index, and how does Lucene store it?Must‑knowReview againNext3 min
- 7.3What is the difference between query context and filter context, and why does it matter?Must‑knowReview againNext2 min
Level 2Daily jobWhat you use at work every week.
API, REST, gRPC and MCP compared
- 1.1How do you evolve a Protocol Buffers message without breaking old clients?Review againNext3 min
- 1.2How does gRPC work, and what are the four RPC types?Review againNext5 min
- 1.3How does the Model Context Protocol work, and how does it differ from REST and gRPC?Review againNext8 min
- 1.4How should you version a REST API without breaking clients?Must‑knowReview againNext3 min
- 1.5What constraints define REST, and what does the uniform interface require?Review againNext4 min
Choosing monoliths or microservices
- 2.1When would you choose a monolith instead of microservices?Must‑knowReview againNext4 min
Elasticsearch query writing and optimization for product search
- 3.1How do you add typo tolerance without making every search slow?Review againNext3 min
- 3.2How do you search several product fields with boosts, and when do you pick best_fields or cross_fields?Review againNext3 min
- 3.3How do you write range and geo filters so they stay cheap?Review againNext3 min
- 3.4Should synonyms be applied at index time or at query time?Review againNext3 min
- 3.5What is the difference between filter and post_filter, and what does post_filter cost?Review againNext3 min
- 3.6Why can highlighting make search slower, and how do you keep it cheap?Review againNext3 min
- 3.7Write the Elasticsearch request for a product listing page with facets, sorting and pagination.Must‑knowReview againNext5 min
Embeddings for ML system design interviews
- 4.1How are embeddings used downstream: features, clustering and retrieval?Review againNext2 min
- 4.2Should you train your own text encoder, fine-tune one, or call an embedding API?Review againNext2 min
PostgreSQL query writing and optimization for backend interviews
- 5.1How do you choose the column order of a composite index, and when do partial or covering indexes help?Must‑knowReview againNext4 min
- 5.2How do you get the top N rows per group, such as the three best-selling products per category?Review againNext3 min
- 5.3How do you make a contains search like LIKE '%boot%' fast, and when do you use full-text search instead?Review againNext3 min
- 5.4How do you read an EXPLAIN ANALYZE plan, and what do you look for first?Must‑knowReview againNext4 min
- 5.5Live task: write the SQL for a monthly category report, then make it fast.Review againNext4 min
- 5.6When do you use EXISTS, IN or a JOIN, and why is NOT IN dangerous?Must‑knowReview againNext4 min
- 5.7Why can an OR condition make PostgreSQL ignore your indexes, and how do you rewrite it?Review againNext3 min
- 5.8Why does wrapping a column in a function or comparing it with a different type stop the index from being used?Must‑knowReview againNext3 min
Product search system design
- 6.1How do retrieval and ranking differ, and why separate them?Must‑knowReview againNext2 min
- 6.2How do you explain eventual consistency for price and stock in search?Must‑knowReview againNext2 min
- 6.3What requirements and trade-offs define a product-catalog search system?Must‑knowReview againNext3 min
- 6.4What would you observe and alert on for a search platform?Review againNext2 min
- 6.5Where do you cache in a product search stack, and what must stay uncached?Must‑knowReview againNext2 min
Redis beyond caching
- 7.1What can Redis do besides caching, and what guarantees must you check?Must‑knowReview againNext4 min
Scaling a real URL shortener to 1 million HTTP requests per second
- 8.1How do you load test this honestly and find the real bottleneck?Review againNext3 min
- 8.2Redis is no longer the limit, but Postgres CPU is. How does caching the links get you to half a million?Review againNext2 min
- 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?Review againNext2 min
System design basics: the fundamentals interviewers expect
- 9.1How do idempotency keys make retries safe for a payment API?Must‑knowReview againNext3 min
- 9.2How do services find each other in a microservices system?Review againNext2 min
- 9.3How do you keep a cache in sync with the database, and what is a cache stampede?Must‑knowReview againNext3 min
- 9.4How do you make a service fault tolerant when its dependencies fail?Must‑knowReview againNext3 min
- 9.5How do you shard data, and how do you choose a shard key?Must‑knowReview againNext3 min
- 9.6How does database replication work, and what is replica lag?Must‑knowReview againNext3 min
- 9.7How does rate limiting work, and which algorithm would you choose?Must‑knowReview againNext3 min
- 9.8What are two-phase commit, sagas and the outbox pattern, and when do you use each?Review againNext3 min
- 9.9What consistency models should you know, from linearizable to eventual?Review againNext3 min
- 9.10Your database is getting slow as traffic grows. What do you do, in what order?Must‑knowReview againNext3 min
Why an Elasticsearch query is slow even with an index
- 10.1A search query is slow even though every field is indexed. What do you check first?Must‑knowReview againNext3 min
- 10.2How do you make prefix and autocomplete queries fast in Elasticsearch?Review againNext3 min
- 10.3Why do date range queries with now miss the cache, and how does rounding help?Review againNext3 min
- 10.4Why do scripts make Elasticsearch queries slow, and what do you do instead?Review againNext3 min
- 10.5Why does searching across many fields slow Elasticsearch down, and how does copy_to help?Review againNext2 min
- 10.6Why is a wildcard search that starts with an asterisk slow, and how do you fix it?Must‑knowReview againNext3 min
Level 3SeniorProduction trade-offs and failure modes.
API, REST, gRPC and MCP compared
- 1.1When would you choose REST, gRPC or MCP for the same capability?Review againNext6 min
- 1.2Why can a TCP load balancer mishandle gRPC, and can a browser call it?Review againNext3 min
Driver delivery system design
- 2.1How would you design a delivery system from the driver's perspective?Review againNext6 min
Elasticsearch query writing and optimization for product search
- 3.1How do routing and shard count affect how many shards a query touches?Review againNext4 min
- 3.2How do you add business signals to ranking without paying for them on every match?Review againNext4 min
- 3.3How do you show one result per product model when each colour variant is its own document?Review againNext3 min
- 3.4Why is deep pagination with from and size expensive, and when do you use search_after, a point in time or scroll?Review againNext4 min
Embeddings for ML system design interviews
- 4.1How do you choose embedding size, retrain safely and keep vectors fresh?Review againNext2 min
- 4.2How do you know an embedding is any good?Review againNext1 min
- 4.3How does a new item get useful embeddings before it has any behaviour?Review againNext2 min
LLM factuality checking system design
- 5.1How do you cut the cost of LLM judging at scale without losing recall?Review againNext2 min
- 5.2How do you evaluate an LLM judge for factuality?Review againNext3 min
- 5.3How would you design an automated factuality checker for generated text at scale?Review againNext4 min
Multi-outlet ordering system design
- 6.1How would you design ordering across multiple restaurant outlets?Review againNext8 min
Observability knowledge graph system design
- 7.1How do you model entities and resolve identity across tools that name things differently?Review againNext2 min
- 7.2How do you turn LLM output and fuzzy matching into trustworthy graph facts?Review againNext3 min
- 7.3How would you correlate deploys, alerts, logs and traces into ranked root-cause hypotheses?Review againNext4 min
- 7.4How would you design an observability knowledge graph to speed up incident root-cause analysis?Review againNext4 min
OTP platform design
- 8.1How would you design a secure OTP platform?Review againNext5 min
PostgreSQL query writing and optimization for backend interviews
Product search system design
- 10.1How do you evaluate whether search relevance actually improved?Review againNext2 min
- 10.2How do you ingest product updates with CDC or application events?Review againNext3 min
- 10.3How do you keep search available when queries or updates overload the cluster?Review againNext2 min
- 10.4How should the search index be designed for a multi-market catalog?Review againNext3 min
- 10.5How would you separate the write model from the search read model?Review againNext2 min
- 10.6Walk through an end-to-end product search query pipelineReview againNext3 min
Proving a rewritten service behaves like the old one
Scaling a real URL shortener to 1 million HTTP requests per second
- 12.1At 50,000 requests/s the disk is mostly idle. Why is the write path still the bottleneck?Review againNext2 min
- 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?Review againNext4 min
- 12.3How do you batch the view writes without losing data if a process crashes?Review againNext3 min
- 12.4How do you keep request logging from becoming the bottleneck, or silently dropping lines?Review againNext2 min
- 12.5The app server is out of CPU at half a million. Do you scale up, scale out, or rewrite?Review againNext3 min
- 12.6The database is a single EC2 box at high load. What would you change for durability before production?Review againNext2 min
- 12.7Walk through the final 30-minute test. How do you prove nothing was lost?Review againNext3 min
- 12.8What should a senior candidate say about cost, and when is this scale overkill?Review againNext2 min
- 12.9Your write buffer lives in RAM. How do you size it, and what happens if the consumer falls behind?Review againNext3 min
System design basics: the fundamentals interviewers expect
- 13.1How does leader election work, and how do you prevent split-brain?Review againNext3 min
When to switch databases: Uber versus Instagram
- 14.1When is switching databases the right call? Compare Uber and Instagram.Review againNext7 min
Zalando search fundamentals: Lucene and Elasticsearch
- 15.1A relevant product ranks too low or does not appear. How do you debug it?Review againNext3 min
- 15.2How do shards and replicas shape query execution and latency?Review againNext3 min
- 15.3How much heap should an Elasticsearch node get, and why does the page cache matter?Review againNext3 min
- 15.4What is BM25, and how does it differ from TF-IDF?Review againNext4 min
- 15.5Why is Elasticsearch near-real-time, and how do refresh, flush and indexing latency trade off?Review againNext2 min
Level 4InternalsHow it works underneath, and at scale.
Elasticsearch query writing and optimization for product search
- 1.1How do the node query cache and the shard request cache work, and how do you write queries that hit them?Review againNext3 min
- 1.2What makes sorting expensive in Elasticsearch, and how can index sorting help?Review againNext3 min
- 1.3Why are terms aggregation counts approximate, and how do you trade accuracy against cost?Review againNext4 min
Embeddings for ML system design interviews
- 2.1How do you train a two-tower retrieval model with in-batch and hard negatives?Review againNext4 min
- 2.2How does matrix factorization learn item embeddings, and why start with it?Review againNext2 min
- 2.3When do graph embeddings help, and should you pick node2vec or GraphSAGE?Review againNext3 min
LLM factuality checking system design
- 3.1How do claim decomposition and atomic fact verification work?Review againNext2 min
Observability knowledge graph system design
PostgreSQL query writing and optimization for backend interviews
- 5.1How does PostgreSQL choose between a nested loop, hash join and merge join?Review againNext4 min
Product search system design
- 6.1How would you scale product search across regions and large catalogs?Review againNext2 min
Scaling a real URL shortener to 1 million HTTP requests per second
Zalando search fundamentals: Lucene and Elasticsearch
- 8.1How do you evaluate Boolean AND and OR over postings lists?Review againNext3 min
- 8.2How do you return the top K results without scoring and sorting every match?Review againNext2 min
- 8.3What is a Lucene segment, and how do updates, deletes and merges work?Review againNext2 min
- 8.4What is an FST, and why does Lucene use one for the terms dictionary?Review againNext2 min
Each card is a topic. Columns go from Level 1 to Level 4; the outlined card is where you are.