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.
179 write-ups
| Title | Difficulty |
|---|---|
| Design a Distributed Key-Value Store Build a Dynamo-style key-value store that spreads 100 TB across hundreds of nodes, survives machine and zone failures, and lets each read choose between fast and strongly consistent. | Hard |
| 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 Ride-Sharing App Match riders to nearby drivers in seconds like Uber, track trips live, price with surge, and match pooled rides and carpools whose routes overlap. | Hard |
| Design a Ticket Booking System Let millions of people pick seats for concerts, movies and trains without selling a seat twice, with seat locking, a waiting room for on-sales, booking across theater chains and train seats sold by segment. | Hard |
| Design a Unique ID Generator Hand out unique, roughly time-ordered 64-bit IDs across many machines without coordination, plus strictly ascending sequences and idempotency keys for safe retries. | Easy |
| Design a URL Shortener Turn long URLs into short, unique codes and redirect billions of clicks a day quickly, with custom aliases, expiry, and a Pastebin-style variant for text. | Easy |
| Design a Web Crawler Crawl ten billion pages in days without hammering any one site, crawling a URL twice or storing the same page twice, including a peer-to-peer version on 10,000 phones and crawling for LLM training data. | Hard |
| Design an Ad Click Aggregator Record a billion ad clicks a day, redirect users instantly, and give advertisers minute-level, near real-time reports that are accurate enough to bill on, even when one ad goes viral. | Hard |
| Design an Online Judge Design a LeetCode-style judge that runs untrusted code safely and fairly, survives contest-start spikes, keeps a live leaderboard, and extends to Replit-style interactive sandboxes. | Medium |
| Design Facebook Post Search Let users search billions of status updates by keyword, sorted by recency or likes, with new posts and likes searchable within a minute, plus a public search API for third-party developers. | Medium |
| Design Google Drive Store files of any size, keep them in sync across every device a user owns, share them with others, keep old versions, and avoid storing the same bytes twice. | Medium |
| Design Instacart Order groceries from many stores and have a personal shopper pick them, with fresh catalogs, delivery slots and live substitutions, plus 10-minute delivery from dark stores like Zepto and Blinkit. | Medium |
| Design Top K / Trending Hashtags Find the top K hashtags, posts or products over sliding 10-minute, 1-hour and 24-hour windows, by location and category, with past trends, from a stream of a billion events a day. | Medium |
| Design Twitter Post short messages, follow people, and load a home timeline in under 200ms, even when an account with 100 million followers tweets. | Medium |
| Design WhatsApp A chat app for billions of phones: 1-1 and group messages over persistent connections, offline delivery, sent/delivered/read receipts, and a mobile client that survives flaky networks. | Medium |
| Design YouTube Accept multi-gigabyte uploads, turn them into adaptive streams in many resolutions, and serve billions of views a day without the origin ever feeling it. | Medium |
| Design a Blob Store like S3 Store 100 PB of objects with eleven nines of durability, split into a strongly consistent metadata layer and an erasure-coded data layer, with multipart uploads and pre-signed URLs. | Hard |
| Design a Block Storage Service like EBS Give virtual machines network disks on demand, with sub-millisecond replicated writes, placement that avoids fragmentation, incremental snapshots to object storage and safe failover. | Hard |
| Design a CDN Serve customers' content from hundreds of edge locations, steer each user to a nearby one with anycast and DNS, protect the origin, and purge stale objects worldwide in seconds. | Hard |
| Design a CI/CD System Build and test every push on isolated runners like GitHub Actions or Jenkins, then roll the result out safely to a global server fleet, or over the air to millions of devices. | Hard |