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.
74 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 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 Configuration Management System Let engineers add, delete and search configuration, and push every change to a hundred thousand running service instances within seconds, safely, with history and rollback. | Medium |
| Design a Coupon System Promo codes with global, per-user and per-card redemption limits, time windows and referral rewards, enforced exactly under sale-day concurrency and kept in step with orders that fail or get refunded. | Medium |
| Design a Digital Wallet Design a stored-value wallet with top-ups, transfers, withdrawals and history that never double-spends, plus how a custodial crypto wallet changes deposits and withdrawals. | Medium |
| Design a Distributed Cache Grow a single memcached-style server into a cluster that serves millions of reads a second, evicts with LRU, survives node loss without crushing the database, and stays close to the source of truth. | Medium |
| Design a Distributed Lock Let many service instances agree on who owns a resource right now, with TTLs so crashed holders let go, fencing tokens so paused ones can't do damage, and seat holds as the worked example. | Medium |
| 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 Driver Location Heatmap Turn 375k driver location pings per second into a live heatmap of distinct drivers per area over the last 20 minutes in 1-minute buckets, and feed the same counts to surge pricing. | Medium |
| Design a Fantasy Sports Platform Let tens of millions of users build teams before a match locks, score every team live as the real game unfolds, rank huge contests in seconds and pay winners exactly once. | 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 a Hotel Booking System Search millions of properties by place and dates, show live prices and rooms left, and book a multi-night stay without ever selling the same room twice, for Booking.com, Agoda or Airbnb. | Medium |
| Design a Large File Distribution System Get a 10 GB binary or model onto 10,000 servers in a few minutes with peer-to-peer piece exchange, locality-aware peers, integrity checks and staged software rollouts. | Medium |