System design
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
| Title | Difficulty |
|---|---|
| Design a Live Streaming Platform Take a live feed from a streamer or a stadium, transcode it in real time, deliver it to tens of millions of viewers a few seconds behind, and keep live comments flowing. | Hard |
| Design a Metrics Monitoring and Alerting System Build a Datadog-style platform that collects a billion metric series, draws dashboards in seconds, runs synthetic checks from many regions and pages the right on-call engineer within a minute. | Hard |
| Design a Payment System Build a Stripe-like payment service that authorizes, captures and refunds card payments exactly once, survives timeouts to banks, and routes across processors. | Hard |
| Design a Real-Time Analytics Platform Build an Amplitude-style clickstream platform that ingests a million events a second from SDKs that go offline, updates dashboards within seconds and answers funnel and retention queries fast. | Hard |
| Design a Real-Time Fraud Detection System Score every card transaction for fraud within 100 ms using streaming window rules like "five countries in one minute", ML scores from a model API, and per-bank rules for many banks. | Hard |
| Design a Recommendation System The serving and data side of recommendations, from Netflix-style home rows and "customers also bought" to an Instagram-style Explore feed, with candidate retrieval, ranking and freshness. | Hard |
| Design a Sports Betting Platform Stream fast-moving odds, accept bets only at prices still on offer, cap risk on hot markets, settle millions of bets exactly once, and see how a prediction-market exchange differs. | Hard |
| Design a Stock Exchange Match buy and sell orders for thousands of symbols in microseconds, with a single sequenced history that makes the engine deterministic, replayable and fair. | Hard |
| Design a Time Series Database Build a Prometheus-compatible time series database that ingests millions of samples a second, compresses them to about a byte and a half each, and keeps years of history with retention and downsampling. | Hard |
| Design a Web Search Engine Answer 100k queries a second over ten billion pages in a few hundred milliseconds, with an inverted index sharded across thousands of machines, multi-stage ranking and a fresh index. | Hard |
| Design a Workflow Engine Run long-lived, multi-step workflows that survive crashes, wait days for timers or human approvals, and connect third-party apps, from Temporal-style durable code to Zapier-style automations. | Hard |
| Design a Zero-Downtime Database Migration Move a live, 2 TB database to a new store and schema with no downtime, using backfill, dual writes or a trigger changelog, shadow reads and a reversible cutover; plus merging 30 regional databases. | Hard |
| Design an A/B Testing Platform Run a thousand concurrent experiments: assign users consistently, log exposures, turn 50 billion events a day into per-variant metrics, and report results you can trust. | Hard |
| Design an Ad Serving System Choose and serve an ad in under 500 ms, mixing direct campaigns with real-time bids from outside buyers, while pacing budgets, counting impressions for billing and filling ad breaks in streaming video. | Hard |
| Design an Authentication Service A multi-tenant login platform like Okta or Auth0, with password and federated login, single sign-on across apps, and tokens that a million requests per second can verify. | Hard |
| Design an Authorization Service like Zanzibar A central permissions service that answers "can this user do this to this object?" in milliseconds, for page sharing, nested groups, B2B roles and IAM-style policies. | Hard |
| Design an IoT Platform Connect 10 million devices over MQTT, ingest a million sensor readings per second, roll them up for dashboards and alerts, and manage device config, commands and firmware. | Hard |
| Design an Online Banking System Design a bank's online platform with accounts, transfers, real-time credit card authorization against limits and holds, and monthly statements. | Hard |
| Design GitHub Host hundreds of millions of git repositories with durable replicated storage, survive CI clone storms, keep pull requests correct as branches move, and search code across all of it. | Hard |
| Design Google Docs Let dozens of people type into the same document at once, see each other's changes in milliseconds, keep working offline, and always end up with the same text. | Hard |