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.
18 write-ups
| Title | Difficulty |
|---|---|
| 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 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 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 Real-Time Fraud Detection System Score every card transaction for fraud within 100 ms using streaming window rules like "five countries in one minute", ML scores from a model API, and per-bank rules for many banks. | Hard |
| Design a Webhook Delivery System Deliver events to thousands of customer endpoints with retries, signatures and isolation from slow receivers, plus an events API so a customer who missed deliveries can catch up. | Medium |
| Design Amazon Locker Let shoppers pick a self-service locker at checkout that is guaranteed to have room, let drivers drop off, and let customers open their compartment with a one-time code, even when the locker is offline. | 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 an Authentication Service A multi-tenant login platform like Okta or Auth0, with password and federated login, single sign-on across apps, and tokens that a million requests per second can verify. | 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 OTP and MFA Service Send and verify one-time codes by SMS and email, support authenticator apps, and enforce expiry, retry and resend limits so a six-digit code can't be guessed or abused. | Easy |
| 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 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 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 |
| Design Mint A personal finance app that links bank accounts through an aggregator, keeps transactions in sync and categorized, and tracks monthly budgets with timely alerts. | Medium |
| Design Shopify A multi-tenant store builder for millions of merchants, covering tenant isolation in pods, Salesforce-style custom fields, custom domains with automatic HTTPS, and one store's flash sale. | Hard |
| 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 VirusTotal Accept file uploads, run each file through dozens of antivirus engines in isolated sandboxes, stream verdicts back as they arrive, and answer hash lookups instantly. | Medium |