Real apps, designed end to end
How would you build WhatsApp, Uber or YouTube? Each design follows a 45-minute interview: you try every step first, then compare with a full answer covering requirements, estimates, APIs, data model, architecture, deep dives, failures and follow-up questions.
0 of 33 lessons doneRead at your own paceStep-through diagramsNo sign-up
Interview patterns
- Design 1Scaling readsHow to serve far more reads than one database can handle: caches, read replicas, CDNs and read models, with worked numbers, and how to make sure users still see their own writes.Intermediate · High priority · 40 min
- Design 2Scaling writesHow to accept more writes than one database can take: sharding, batching, queues, write-behind and LSM stores, with worked numbers, hot partitions and write amplification.Intermediate · High priority · 30 min
- Design 3Hot keys and hot partitionsWhy one popular key can overload a whole cluster, how to detect it, and the fixes: local caches, key splitting, request coalescing, sharded counters and the celebrity problem.Advanced · High priority · 30 min
- Design 4Real-time updatesHow servers push changes to users as they happen: polling, long polling, SSE and WebSockets compared, connection servers, pub/sub fan-out to sockets, and presence.Intermediate · High priority · 30 min
- Design 5Fan-outHow one event reaches many readers: fan-out on write, fan-out on read and the hybrid, with worked numbers for feeds, the celebrity problem and what each choice costs.Advanced · High priority · 30 min
- Design 6Large files and mediaHow to upload, process and serve large files: presigned URLs, multipart and resumable uploads, processing pipelines, CDN delivery, and where the money actually goes.Intermediate · High priority · 30 min
- Design 7Contention and double bookingHow to stop two users taking the same seat, room or last item: pessimistic and optimistic locking, conditional writes, holds with a TTL, per-key queues and fenced locks.Advanced · High priority · 40 min
- Design 8Duplicates and idempotencyWhy retries create duplicate payments, orders and messages, and how idempotency keys, dedup tables and idempotent consumers make "exactly once" effectively true.Advanced · High priority · 45 min
- Design 9Transactions across servicesHow to keep data consistent when one action spans several services: why two-phase commit is avoided, sagas with compensations, the transactional outbox and change data capture.Advanced · High priority · 40 min
- Design 10Long-running and background jobsHow to move slow work out of the request: job queues and workers, status by polling or webhooks, retries with backoff, dead-letter queues, leases and scheduled jobs.Intermediate · High priority · 35 min
- Design 11Unique IDs at scaleHow to generate unique IDs across many servers: auto-increment and its limits, UUIDv4 versus UUIDv7 and ULID, Snowflake's bit layout, clock skew and ID blocks.Intermediate · Medium priority · 35 min
- Design 12Counting at scaleHow to count likes, views and unique visitors at huge rates: sharded counters, batching, windowed stream aggregation, HyperLogLog, count-min sketch and top-k.Advanced · Medium priority · 30 min
- Design 13Location and proximity searchHow to find what is near a point quickly: geohash, quadtrees, S2 and H3 cells, radius queries, static places versus moving drivers, and how to shard geographic data.Advanced · High priority · 30 min
- Design 14Multi-region systemsWhy and how to run in several regions: active-passive versus active-active, routing users, replication lag and write conflicts, data residency, and failover drills.Advanced · Medium priority · 30 min
Messaging and social
- Design 15WhatsApp1:1 and group chat, delivery ticks, offline users.Intermediate · High priority · 55 min
- Design 16InstagramPhoto uploads, follows and the home feed.Intermediate · High priority · 50 min
- Design 17Twitter / X timelineTweets, fan-out and celebrities.Advanced · High priority · 55 min
- Design 18Notification systemPush, SMS and email to millions, reliably.Intermediate · High priority · 55 min
Media and real time
- Design 19YouTubeUploads, transcoding and adaptive streaming.Advanced · High priority · 55 min
- Design 20ZoomLive video calls for 2 to 1,000 people.Advanced · High priority · 60 min
- Design 21Google DocsMany people typing in one document at once.Advanced · High priority · 60 min
- Design 22DropboxFile sync across devices, chunk by chunk.Advanced · High priority · 55 min
Location
Commerce and money
Infrastructure
- Design 29Web crawlerFetch a billion pages politely.Advanced · Medium priority · 55 min
- Design 30Search autocompleteSuggestions on every keystroke.Intermediate · High priority · 55 min
- Design 31Game leaderboardLive rankings for millions of players.Intermediate · Medium priority · 55 min
- Design 32Distributed job schedulerRun millions of jobs on time, exactly once.Advanced · Medium priority · 55 min