System Design interview questions

System design interviews ask you to design a real system on a whiteboard in about 45 minutes. Interviewers look for clear requirements, a sound high-level design, a deep dive into the hardest part and honest trade-offs.

13 questions below, each one a practice interview: the AI interviewer asks it out loud, follows up on your answer, and sends you a scored feedback report.

Practise free with the AI interviewer

What the interviewer scores

  • Requirements

    Pins down functional and non-functional requirements and scale before designing.

  • High-Level Design

    A coherent set of components, APIs and data flow that meets the requirements.

  • Deep Dive & Scalability

    Goes deep on the hard parts: data model, bottlenecks, sharding, caching, failure modes.

  • Trade-offs

    Compares alternatives and justifies choices against the requirements.

  • Communication

    Explains their thinking out loud, answers the question asked, checks assumptions and responds to hints and follow-ups.

Questions

Design a URL Shortener

System Design · Medium · 35 min · Free to practise

Design a URL-shortening service like bit.ly.

Cover: API design, short-code generation, storage schema and estimates, read/write ratio, caching, redirects, and how the design scales to 100M new URLs per month.

Start with requirements clarification, then work through the design end to end.

Practise this question with the AI interviewer

Design a Rate Limiter Service

System Design · Medium · 35 min · Free to practise

Design the rate-limiting service behind Pallwick, a developer platform whose public APIs are served by about 40 gateway nodes in three regions.

Product teams configure limits without a deploy: per API key (for example 100 requests per second with short bursts allowed, and 10,000 per hour), per key and endpoint, and per IP address for unauthenticated calls. A rejected request gets HTTP 429 with a hint of when to retry.

Rough scale to start from: 2 million requests per second at peak, 5 million active API keys, and the limit check may add at most 5 ms at p99 to a request.

Cover:

  • The limiting algorithm (fixed window, sliding window, token bucket) and what each costs in memory and accuracy.
  • Where counters live, and how gateway nodes and regions share them without a network round trip on every request.
  • What happens when the counter store is slow or down: fail open or fail closed, and for which limits.
  • Hot keys, and how limit changes reach the gateways.

Start by clarifying requirements, then work through the design end to end.

Practise this question with the AI interviewer

Design Live Score Alert Fanout

System Design · Medium · 40 min

Design the push-alert system for Scorvia, a sports app. Users follow teams, players and matches, and choose which alerts they want: goals, kickoff, final score. When a goal is scored, every interested follower should get a push notification on each of their devices.

Rough scale to start from: 60 million installed devices and 25 million daily users; the most-followed team has 18 million followers; a busy evening has 300 matches at once. A goal alert should reach 95% of recipients within 5 seconds of the event arriving from the data feed.

Cover:

  • Ingesting events from the data provider, including duplicates and corrections.
  • The fanout model: precomputed recipient lists or a lookup at send time, and how per-user preferences, muted matches and quiet hours are applied.
  • Sending through the mobile platforms' push services, which limit throughput per connection and reject expired device tokens.
  • Retries, delivery tracking and what you would monitor during a big final.

Start by clarifying requirements, then work through the design end to end.

Practise this question with the AI interviewer

Design a Video Upload and Transcoding Pipeline

System Design · Medium · 40 min · Free to practise

Design the video upload and processing pipeline for Lumenhall, an online course platform. Instructors upload lecture videos, often over unreliable connections. Each video is transcoded into several renditions (1080p, 720p, 480p and audio-only), packaged for adaptive streaming, given thumbnails and auto-generated captions, and published to students when ready. Instructors see progress while they wait.

Rough scale to start from: 50,000 uploads per day with a peak of three times the average on Sunday evenings; files up to 4 GB and 3 hours long; transcoding one hour of video into one rendition takes about 30 minutes on a single worker; students watch about 20 million hours per month.

Cover:

  • Resumable uploads and where raw and processed files are stored.
  • Orchestrating the processing steps, including splitting long videos into chunks to process in parallel.
  • Retries, duplicate work and partial failure: what if one rendition fails?
  • Status updates for instructors, delivery to students, and keeping compute cost down.

Start by clarifying requirements, then work through the design end to end.

Practise this question with the AI interviewer

Design Search Autocomplete

System Design · Medium · 35 min

Design search autocomplete for Tessaly, an online marketplace. As a shopper types in the search box, up to 8 suggested queries appear, ranked by how often shoppers searched for them, with recent days weighted more. A query that starts trending should appear in suggestions within 15 minutes. Suggestions must exclude offensive terms and queries that return no products, and are tailored to the shopper's language; the site supports 12.

Rough scale to start from: 40 million daily users; about 6 suggestion requests per search as people type; 150,000 suggestion requests per second at peak; 100 million distinct queries logged per month. A suggestion must reach the shopper within 50 ms at p99.

Cover:

  • The data structure that serves a prefix lookup quickly, and what you precompute.
  • The pipeline from raw search logs to suggestions, and how trending queries take the fast path.
  • Serving and caching at each layer, partitioning the data, and very hot prefixes such as single letters.
  • Filtering, and how you would measure whether suggestions are good.

Start by clarifying requirements, then work through the design end to end.

Practise this question with the AI interviewer

Design a Feature Store for Delivery-Time Predictions

System Design · Medium · 40 min

Design the feature platform behind delivery-time estimates at Parcelpine, a grocery delivery company.

Parcelpine delivers about 1.2 million orders a day from 3,000 partner stores. Its model predicts each order's delivery time at checkout and re-predicts it every 30 seconds while the order is in progress, about 800 predictions per second at peak. Features include how busy the store has been in the last 30 minutes, the number of items, the courier's location and current traffic.

The model's error was 4.1 minutes on offline validation but is 7.8 minutes in production. The team suspects the features the model sees in production differ from the ones it was trained on.

Design a feature system that serves fresh features to the model within 20 ms, produces training data that matches exactly what the model would have seen at prediction time, and lets the team find and prevent mismatches like this one. Cover the storage layers, how features are defined and computed once for both training and serving, backfills, and monitoring.

Clarify requirements first, then design end to end.

Practise this question with the AI interviewer

Design a Model Monitoring Platform

System Design · Medium · 40 min · Free to practise

Design the model monitoring platform at Bramblecart, an online home-goods retailer that runs about 60 machine learning models in production.

The models vary widely. Search ranking makes 20,000 predictions per second and learns whether it was right within minutes, from clicks. Demand forecasts run nightly and are checked against sales the next day. A customer churn model scores weekly and only learns its true outcome 60 days later. Across all models there are about 1.5 billion predictions a day. Today, problems are found when a business team complains, usually weeks late.

Design a platform that every model team can plug into. It should catch broken input data, shifts in what the models see and predict, and drops in real performance, including for models whose outcomes arrive late. Cover what to log and where to store it, which checks and statistics to compute and how often, alerting that people will not learn to ignore, dashboards, and how monitoring connects to retraining.

Clarify requirements first, then work through the design end to end.

Practise this question with the AI interviewer

Design a Real-Time Chat System

System Design · Hard · 40 min

Design a real-time chat system (1:1 and group) supporting online presence, delivery receipts, and message history.

Cover: connection management (WebSockets), message fan-out, ordering guarantees, storage, offline delivery/push, and scaling to 50M daily actives.

Practise this question with the AI interviewer

Design Real-Time Collaborative Editing

System Design · Hard · 45 min

Design real-time collaborative editing for Folioweave, a document product. Several people edit the same rich-text document at once, see each other's cursors, and see each other's edits almost immediately. A person can keep editing offline for hours, and when they reconnect both their work and everyone else's must survive. Every document has a browsable version history.

Rough scale to start from: 10 million documents edited per day; 99% of active documents have 1 to 3 editors at a time, but a company-wide document can have 200 editors and 2,000 viewers at once; documents reach 5 MB. Edits should appear for others in the same document within 200 ms.

Cover:

  • How concurrent edits are merged: operational transformation or a CRDT, and what the server's role is in each.
  • Routing every editor of one document to the same place, and what happens when that server dies.
  • Storage: an operation log, snapshots, and how a document loads quickly.
  • Cursors and presence, offline merge, and version history.

Start by clarifying requirements, then work through the design end to end.

Practise this question with the AI interviewer

Design an Idempotent Payment Ledger

System Design · Hard · 45 min · Free to practise

Design the ledger and payments service for Tallowmere Market, an online marketplace with built-in wallets. Buyers pay sellers, the marketplace takes a fee on every sale, buyers can be refunded, and sellers withdraw their balance to a bank account. Card charges and bank payouts go through an external payment processor.

Requirements: every movement of money is recorded as double-entry and never edited; a payment happens exactly once even when the mobile app retries after a timeout; a seller's wallet can never go negative; and the ledger is reconciled daily against the processor's settlement file.

Rough scale to start from: 3,000 payments per second at peak, 20 million wallets, about 400 million ledger entries per month, and balance reads under 50 ms at p99. For writes, correctness matters more than availability.

Cover:

  • The data model for accounts, transactions and entries, and how balances are read.
  • Idempotency keys: where they are stored, their scope, and what a retry returns.
  • Calls to the external processor that can fail or time out, and keeping the ledger and the processor consistent.
  • Hot accounts, reconciliation and auditing.

Start by clarifying requirements, then work through the design end to end.

Practise this question with the AI interviewer

Design a Metrics Ingestion and Query System

System Design · Hard · 45 min

Design the metrics system behind a large software company's internal observability platform. Services emit counters, gauges and histograms tagged with labels such as service, host, endpoint and status code. Engineers build dashboards on them, and alert rules run against them continuously.

Rough scale to start from: 200,000 hosts, each emitting about 2,000 series every 10 seconds; raw data kept for 15 days and 5-minute rollups for 13 months; 20,000 alert rules evaluated every 30 seconds; dashboard queries over the last 24 hours should return within 2 seconds at p95.

Cover:

  • The ingestion path: push or pull, buffering, and what happens when storage falls behind.
  • What identifies a series, how labels are indexed, and how samples are stored and compressed.
  • Downsampling and retention.
  • Query execution across many storage nodes, and keeping alerting healthy when dashboards overload the query path.
  • Protecting the system from label combinations that explode the number of series.

Start by estimating the load, then work through the design end to end.

Practise this question with the AI interviewer

Design Recommendations for a Handmade Goods Marketplace

System Design · Hard · 45 min

Design the recommendation system for Kindlewood Market, an online marketplace for handmade and vintage goods.

Kindlewood has 40 million monthly active buyers, 6 million active sellers and 120 million live listings. Most listings are one of a kind: a vintage lamp sells once and disappears, and about 30% of listings each month are new. You are designing two surfaces: a personalized "Picked for you" feed on the home page and "Similar items" on each listing page. Peak traffic is about 15,000 recommendation requests per second, and each must return in under 200 ms at the 99th percentile.

Cover:

  • What to optimize, and how you would measure success offline and online.
  • Candidate generation and ranking: the stages, the features and models, and the training data.
  • Cold start for new buyers and new listings, and keeping sold items out of results.
  • Serving, storage and freshness at this scale.
  • Feedback loops, and fairness of exposure for small and new sellers.

Start by clarifying requirements, then work through the design end to end, and be ready to defend your trade-offs.

Practise this question with the AI interviewer

Design Real-Time Payment Fraud Scoring

System Design · Hard · 45 min · Free to practise

Design the real-time fraud scoring system for Tallyrun, a payments company that processes card payments for online merchants.

Tallyrun handles about 50 million transactions a day, peaking at 3,000 per second. Each payment must be approved, sent to manual review or declined within 100 ms at the 99th percentile end to end; fraud scoring gets 30 ms of that budget. About 0.1% of transactions are fraudulent, and most fraud is confirmed only when a chargeback arrives, 30 to 90 days later. A team of analysts can review about 15,000 transactions a day.

Cover:

  • The decision flow and how rules and a model work together.
  • The features that matter (for example, how many cards a device has used in the last ten minutes) and how you compute them fresh, within the latency budget.
  • Labels, training data and how you deal with labels arriving months later.
  • Thresholds for approve, review and decline, given the review capacity and the costs of each mistake.
  • Deploying new models safely, monitoring, and what happens when a dependency is slow or down.

Clarify requirements first, then design end to end and defend your trade-offs.

Practise this question with the AI interviewer