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.
23 write-ups
| Title | Difficulty |
|---|---|
| Design a Distributed Rate Limiter Cap how many requests each user, IP or API key can make, across a fleet of gateways, at a million requests per second, while adding about a millisecond of latency. | Medium |
| Design a Collaborative Whiteboard like Figma A shared canvas where many people draw, drag and resize the same shapes at once, with live cursors, smooth motion and a clear rule for who wins when two people move one object. | Hard |
| Design a Crypto Exchange like Coinbase Design a custodial crypto exchange that credits on-chain deposits safely, lets users buy, sell and withdraw, matches orders around the clock and keeps private keys out of reach. | Hard |
| Design a Feature Flag System Turn features on for specific users, segments and percentages across environments and platforms, evaluate a million flags a second in-process, and audit every change. | Medium |
| 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 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 API Gateway One front door for hundreds of microservices that routes, authenticates and rate limits 500k requests per second, shapes responses per client with BFFs, and survives slow backends. | Medium |
| 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 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 Country IP Blocking Block banned countries and IPs at the edge in microseconds, serve an IP-range geo lookup API, sync a distributed denylist to thousands of servers, and keep a slow reputation API off the hot path. | Medium |
| Design DNS Resolve names to addresses at millions of queries per second, from the root down to authoritative servers, with caching, fast record updates, anycast and defenses against poisoning and DDoS. | Medium |
| Design Facebook Post Privacy Enforce only me, friends, friends of friends, public and custom-list audiences on every read path at millions of checks per second, plus Instagram's private accounts and Close Friends. | Medium |
| Design LinkedIn Connections Store a billion-member connection graph, show 1st/2nd/3rd-degree badges and the shortest path up to four hops in milliseconds, and search people by name and jobs by keyword. | Medium |
| Design Multiplayer Matchmaking Put 1M concurrent players into fair 12-player matches and 100-player lobbies within seconds, balancing skill, latency and queue time, then hand each match a game server. | Medium |
| Design Online Chess Pair players by rating, relay moves in milliseconds with fair server-side clocks, survive server crashes mid-game, and keep ratings and leaderboards correct. | Medium |
| Design Shazam Identify a song from ten noisy seconds of audio against a catalog of 50 million tracks, and reuse the same fingerprint index to catch copyrighted audio and duplicate content in user uploads. | Medium |