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.
13 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 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 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 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 |
| Design Spotify Stream any of 100 million tracks in a few hundred milliseconds, keep playlists consistent under shared edits, control playback by voice across devices, and sync audiobook progress. | Medium |
| Design Truecaller Show who's calling and whether it's spam before the second ring, from a crowdsourced directory of billions of numbers, with spam reports that resist abuse. | Medium |
| Design Typeahead Autocomplete Return the top ten query suggestions for every keystroke in under 100ms, keep them fresh as trends change, and handle typos, next-word suggestions and instant results. | Medium |