Design Problems
Classic system-design questions worked end to end, from requirements and estimates to deep dives. Try each one on a whiteboard first, then compare your design against the walkthrough.
Easy · 4
URL Shortener
35 minTurn long links into short codes and redirect billions of clicks with low latency.
Pastebin
35 minStore and share text snippets with expiry and optional privacy.
Unique ID Generator
30 minGenerate globally unique, roughly time-ordered 64-bit IDs without a central bottleneck.
Real-time Leaderboard
35 minRank millions of players by score and serve top-N and my-rank queries in milliseconds.
Medium · 9
Distributed Rate Limiter
40 minEnforce per-client request limits consistently across a fleet of API servers.
Notification System
40 minDeliver push, SMS, and email notifications reliably with user preferences and rate caps.
News Feed
45 minBuild a personalized home feed that stays fast even when celebrities post.
Upload, process, and serve photos at scale with follows, likes, and a feed.
Web Crawler
45 minCrawl billions of pages politely, avoid duplicates, and keep content fresh.
Search Autocomplete
40 minSuggest popular completions as users type, within tens of milliseconds.
Proximity Service (Yelp)
40 minFind nearby businesses within a radius for hundreds of millions of users.
Distributed Job Scheduler
45 minRun millions of scheduled and recurring jobs on time, at least once, without duplicates.
Metrics & Monitoring System
45 minCollect, store, query, and alert on millions of time series.
Hard · 9
Distributed Key-Value Store
50 minBuild a Dynamo-style store that stays available through node failures.
Chat System (WhatsApp)
50 minDeliver one-to-one and group messages in real time with offline sync and receipts.
Video Streaming (YouTube/Netflix)
50 minIngest, transcode, and stream video to millions of concurrent viewers.
Cloud File Storage (Dropbox)
50 minSync files across devices efficiently with deduplication and versioning.
Ride Matching (Uber)
50 minTrack drivers in real time and match riders to nearby drivers within seconds.
Ticket Booking (BookMyShow)
50 minSell seats for hot events without double-booking under massive flash-sale traffic.
Payment System
50 minMove money correctly through external processors with a double-entry ledger.
Ad Click Aggregation
50 minCount billions of ad clicks per day in near real time with accurate billing totals.
Collaborative Editing (Google Docs)
50 minLet many users edit the same document simultaneously and converge on one result.