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.
42 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 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 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 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 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 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 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 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 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 Ledger System Design a double-entry ledger that records every money movement immutably, serves correct balances under heavy concurrency, handles hot accounts and reconciles with the banks. | Hard |
| Design a Payment System Build a Stripe-like payment service that authorizes, captures and refunds card payments exactly once, survives timeouts to banks, and routes across processors. | Hard |
| Design a Quota Management Service One storage quota shared by several products, like 15 GB across Drive, Photos and Gmail, checked on every upload and kept accurate as files come and go. | Medium |
| 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 a Zero-Downtime Database Migration Move a live, 2 TB database to a new store and schema with no downtime, using backfill, dual writes or a trigger changelog, shadow reads and a reversible cutover; plus merging 30 regional databases. | 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 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 Online Auction Build an eBay-style auction where thousands of people bid on the same item, everyone agrees on the highest bid, no bid is lost, and watchers see new bids within a second. | Medium |
| 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 Buy Now, Pay Later Design an Affirm-style buy now, pay later service that makes a credit decision at checkout, pays the merchant, and collects installments on schedule without missing or double-charging any. | Medium |