Text size
Playbook
Common problems in a design, such as too much traffic or two people wanting the same thing, and the usual ways to solve them. Each page follows the deep-dive structure from step 7: the problem, the options, a choice and its trade-off.
- Too many reads: the database can't keep up with lookups.
- Too many writes: one machine can't absorb the incoming data.
- One key gets all the traffic: a viral item overloads a single shard or cache node.
- Two users want the same thing: seats, stock or usernames that only one person can get.
- Pushing updates live: clients must see changes without refreshing.
- Work that takes minutes: jobs too slow to finish inside a request.
- Steps that must all happen: a process across services that can fail halfway.
- Huge files: uploads and downloads too big for your servers.
- Adding an LLM: a slow, costly, unpredictable dependency in the request path.