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 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 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 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 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 a Distributed Job Scheduler Run millions of one-off and cron jobs a day on a fleet of workers, on time and without losing or double-running them, then extend it to GPU jobs and ML training submissions. | Hard |
| Design a Distributed Logging System Collect close to a petabyte of logs a day from every service, make them searchable within seconds, alert on log patterns and keep tamper-evident audit logs for years. | Hard |
| Design a Distributed Message Queue Build a queue service with partitions, replication, consumer groups, per-message acks, FIFO ordering and delayed delivery, durable enough that an acknowledged message is never lost. | Hard |
| Design a Distributed Tracing System Follow one request across hundreds of services: propagate trace context, ingest OpenTelemetry spans, keep the traces that matter with tail sampling, and capture HTTP payloads safely. | Medium |
| Design a Flash Sale Site Sell 10,000 units to 10 million people who all click at the same second, without overselling and without taking the rest of the site down. | Hard |
| Design a Likes Counter Count likes, votes and views for billions of posts, where one viral post can take tens of thousands of likes a second, without losing a like or counting one twice. | Medium |
| 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 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 Reminder Service Let millions of users set one-time and recurring reminders and fire each one exactly once within five minutes of its due time, through time zones, DST changes, edits and traffic spikes at the top of the hour. | Medium |
| Design a Routing and Fleet Management System Track 200,000 vehicles live, plan optimized multi-stop routes for each day, keep ETAs accurate, and dispatch new jobs into running routes, for delivery and field-service fleets. | Medium |
| Design a Shipment Tracking System Track tens of millions of parcels a day through hubs, trucks and partner carriers, turning out-of-order scan events from many parties into a correct status, location history, ETA and notifications. | Medium |
| 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 an Inventory Management System Track 100M SKUs across hundreds of warehouses, reserve stock at checkout without overselling, and keep an auditable ledger through receipts, returns, damage and cycle counts. | Medium |
| 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 Presence Service Show who's online, away or offline in a Slack-like app with 30M live connections, detect disconnects from heartbeats, and push presence changes without fanning out to everyone. | Medium |
| Design Find My iPhone Let owners see where their phones, laptops and AirTags are within 30 seconds at a billion requests a day, including offline devices found by nearby phones over Bluetooth with end-to-end encryption. | Medium |