A new post can take a few seconds to show up on Twitter and the timeline is still usable. When the last ticket is on sale, two people can click Buy milliseconds apart, but only one can reserve the seat. Both problems involve reading and writing to a database. The first asks when to compute the result. The second asks how to ensure that two writes can't both succeed.
I mapped nine categories of problems from Aced's system design interview course onto a skill tree.1 Read it from left to right. Pick a user action, draw the interfaces and data it touches on a whiteboard, then follow the requirement that's hardest to meet. The leaves list problems you can use to practice that skill.
flowchart LR
root["一次用户操作<br/>做什么?多频繁?能等多久?"]
root --> read["读多写少<br/>哪些结果值得提前算好?"]
read --> r["短链接、搜索框自动补全<br/>Instagram、Twitter、Reddit 首页"]
root --> event["事件驱动<br/>一次状态变化要通知谁?"]
event --> e["分布式消息队列、Webhook 投递<br/>Uber Eats 订单流转"]
root --> jobs["后台任务<br/>工作交给后台后,中断了怎么接着做?"]
jobs --> j["网页爬虫、任务调度器<br/>用户数据下载应用"]
root --> storage["分布式存储与分区<br/>数据分到哪台机器?坏一台怎么读?"]
storage --> s["键值存储、限流器、分布式 LRU 缓存<br/>Dropbox、S3 对象存储"]
root --> txn["事务<br/>多人同时争用,谁能占到最后一个?"]
txn --> t["Ticketmaster 抢票、酒店预订、停车场"]
root --> batch["批处理与数据管道<br/>一批数据怎样汇总?漏了一批怎么补?"]
batch --> b["指标与日志、应用性能监控、文档处理<br/>Zillow 房产数据、天气应用"]
root --> live["实时通信与协作<br/>掉线重连后,怎样让各端重新对齐?"]
live --> l["Facebook Messenger、WhatsApp、Slack(预告)<br/>Chess.com 对局、Google Docs 协同编辑"]
root --> media["流媒体与内容分发<br/>带宽有波动,播放怎样跟得上?"]
media --> m["YouTube、Netflix、TikTok、Twitch"]
root --> ai["智能体与 AI 服务<br/>怎样缩短等待?工具能替用户做什么?"]
ai --> a["AI 客服、ChatGPT、聊天文件上传(上、下)<br/>大模型请求合批、Claude Code、实时语音 AI"]
The tree starts with a user action: what happens, how often, and how long can the user wait?
| Branch | Design question | Practice problems |
|---|---|---|
| Read-heavy traffic | Which results are worth computing ahead of time? | URL shorteners, search autocomplete, Instagram, Twitter, Reddit's homepage |
| Event-driven systems | Who needs to know about a state change? | Distributed message queues, webhook delivery, Uber Eats order flow |
| Background jobs | If a background task is interrupted, how does it resume? | Web crawler, job scheduler, user data download app |
| Distributed storage and partitioning | Which machine holds the data? How do reads continue when a machine fails? | Key-value store, rate limiter, distributed LRU cache, Dropbox, S3 object storage |
| Transactions | When several people compete for the last item, who gets it? | Ticketmaster ticket sales, hotel reservations, parking lot |
| Batch processing and data pipelines | How do you aggregate a batch? How do you recover a missing batch? | Metrics and logs, application performance monitoring, document processing, Zillow property data, weather app |
| Real-time communication and collaboration | How do clients get back in sync after reconnecting? | Facebook Messenger, WhatsApp, Slack (preview), Chess.com matches, Google Docs collaborative editing |
| Streaming media and content delivery | How does playback keep up when bandwidth fluctuates? | YouTube, Netflix, TikTok, Twitch |
| Agents and AI services | How do you shorten waits? What can tools do on a user's behalf? | AI customer service, ChatGPT, chat file uploads (parts 1 and 2), LLM request batching, Claude Code, real-time voice AI |
Why are event-driven systems and background jobs on separate branches? Take Uber Eats. When a restaurant accepts an order, both dispatch and notifications may need to know. Publish/subscribe lets each service subscribe to the same event. A design question here is: “If the notification is delivered twice, will two couriers be dispatched?” Now take a user downloading their personal data. Generating the export might take minutes. The API can return a job ID while a background process generates the file. Here the question is: “If the process exits halfway through, can the user still get the file?”
How do the fundamentals fit into the tree? When you draw the request path, mark the web protocols, APIs, authentication, authorization checks, and encryption. Follow read traffic to its bottlenecks and you'll encounter load balancing, caches, and CDNs that put content close to users. On the storage branch, use query and transaction requirements to choose SQL or NoSQL, then consider sharding, replicas, and consistent hashing to reduce the amount of data moved when you expand. If replicas lose their network connection to one another, you have to choose between continuing to respond and guaranteeing each read reflects the latest successful write. That's the issue the CAP theorem addresses.
Finally, cross out one component on the whiteboard and trace the arrows again. If a background process stops, the API might still accept jobs while users wait indefinitely for their files. Besides the API error rate, you need to watch how long the oldest queued job has been waiting and explain where processing resumes on a replacement machine. That brings asynchronous processing, cloud deployment, availability, and reliability back into the same problem.
Footnotes
-
Aced. (n.d.). System Design Interview Prep: Fast Track. System Design Interviews. This article uses April 14, 2025, the date I visited the old Exponent guide. The questions in the diagram come from the course outline checked on November 23, 2026. The questions beside the branches are my own synthesis. The course overview also covers approaches to answering, common patterns, scoring criteria, and whiteboard demonstrations. The appendix includes practice problems, cheat sheets, a glossary, and engineering blogs. ↩