25 classic system design problems, and the order to practise them
There is no official list of system design questions, and companies do not publish theirs. What exists is a set of classic problems that keep turning up in study material, because each one forces a particular skill.
The order matters more than the list. Done in the right sequence, every problem reuses something from an earlier one, so you are building on what you know instead of starting over each time.
Here are 25, in seven stages. Each links to the worked design on System Design AI, marked free or Pro.
Stage 1: reads, keys and caching
- [Design a URL Shortener](/designs/url-shortener) (free). Unique short codes that never clash, a read-heavy path behind a cache, and why the redirect is a 302 rather than a 301.
- [Design a Text Sharing Service like Pastebin](/designs/pastebin) (free). The same shape with a bigger value: the text moves into object storage, and expiry has to delete the object as well as the row.
- [Design a Distributed Rate Limiter](/designs/rate-limiter) (free). A decision in a couple of milliseconds that holds across every gateway, which comes down to where the counter lives and how it is updated atomically.
- [Design a Distributed Cache](/designs/distributed-cache) (Pro). Spreading keys across nodes, eviction, TTLs, replication, hot keys and stampedes.
Stage 2: fan-out and real time
- [Design a News Feed](/designs/news-feed) (free). Fan-out on write against fan-out on read, and the hybrid for accounts with huge followings.
- [Design a Chat System](/designs/chat-system) (free). Long-lived connections on gateways, routing a message to whichever server holds the recipient's socket, and delivery to every device.
- [Design Live Comments like Facebook Live](/designs/live-comments) (free). Broadcasting to millions of viewers of one video, and what changes when a video gets hot.
- [Design a Notification System](/designs/notifications) (Pro). Push, email, SMS and in-app, with priorities, and no duplicates a user would notice.
- [Design Post Search like Facebook](/designs/post-search) (free). Building an inverted index yourself, and why likes, at ten times the post rate, shape the design.
Stage 3: contention and money
- [Design a Ticket Booking System like Ticketmaster](/designs/ticket-booking) (free). Holding a seat with one conditional write, and a waiting room when millions of fans arrive at once.
- [Design a Local Delivery Service like Gopuff](/designs/local-delivery) (free). Multi-item orders that never sell a unit twice, against a read rate far above the order rate.
- [Design a Flash Sale System](/designs/flash-sale) (Pro). A million people for 10,000 units at noon: a gate in front of the database, and holds that expire.
- [Design a Payment System like Stripe](/designs/payment-system) (Pro). Charging exactly once: idempotency keys, timeouts treated as unknown outcomes, a double-entry ledger and reconciliation.
Stage 4: location and matching
- [Design a Proximity Search Service](/designs/proximity-search) (free). "What is near me" with geohashes, cells and trees, for places that rarely move and drivers that move all the time.
- [Design a Ride-Sharing Service like Uber](/designs/ride-sharing) (free). Matching a rider to a nearby driver, without ever giving one driver two rides.
- [Design a Dating App like Tinder](/designs/tinder) (free). Stacks of nearby people built ahead of time, swipes at tens of thousands a second, and a match that is never missed.
Stage 5: big files and big crawls
- [Design a File Storage Service](/designs/file-storage) (free). Large uploads that go straight to object storage, files split into blocks named by their hash, and sync across devices.
- [Design a Video Streaming Platform](/designs/video-streaming) (free). Resumable uploads, a transcoding pipeline, and adaptive bitrate delivery over a CDN.
- [Design a Web Crawler](/designs/web-crawler) (free). Politeness per domain, progress that survives a crash, deduplication, and the bandwidth arithmetic.
Stage 6: streams and counting
- [Design an Ad Click Aggregator](/designs/ad-click-aggregator) (free). Counting every click once, fast enough to chart live and exactly enough to bill.
- [Design YouTube Top-K](/designs/youtube-top-k) (free). The most-viewed videos over the last hour, day, month and all time, from a firehose of views.
- [Design a Metrics Monitoring Platform](/designs/metrics-monitoring) (Pro). Millions of samples a second, stored as time series, charted and alerted on.
- [Design a Job Scheduler](/designs/job-scheduler) (Pro). Jobs run on time and at least once, with retries and fairness between tenants, while their effects happen exactly once.
Stage 7: the hard ones
- [Design an Online Judge like LeetCode](/designs/leetcode) (free). Running strangers' code safely, verdicts within seconds, and a contest whose peak dwarfs a normal evening.
- [Design a Collaborative Editor like Google Docs](/designs/google-docs) (Pro). Many people typing in one document, every copy converging, and nothing acknowledged ever lost.
How to work through the list
- Go in order the first time. Stage 3 assumes you can already put a cache in front of a database; stage 6 assumes you know why a retry needs an idempotency key.
- Attempt before you read. Give each problem 45 to 60 minutes on paper, then compare with the worked design's board for your level.
- Come back. A week later, redo two problems from an earlier stage from memory.
- Short on time? Do one per stage: 1, 5, 10, 14, 17, 20 and 24. All seven are free.
For a day-by-day version of this, see the 30-day plan.
Free and Pro
Eighteen of these 25 are free worked designs that anyone can read in full, signed in or not. Pro ($10/month) opens the other seven and the rest of the library, and adds the practice canvas, an AI review of your attempt against the rubric, and the Coach.
Questions people ask
Is this a list of the questions companies actually ask?
No. Companies do not publish their question lists, and this is not a claim about any company. It is a set of well-known problems chosen so that, between them, they cover the building blocks that most interview questions are assembled from.
Why start with the URL shortener?
It is small enough to finish in an hour at any level, and it introduces ideas nearly every later problem reuses: unique ids, a read path behind a cache, and an estimate that shows where the load really is.
What if I am interviewing for a machine learning or AI role?
Do stages 1 to 3 anyway, because ML system design rounds still expect data stores, queues and caches. The library also has machine learning and generative AI designs, which are part of Pro.