Sub topic 3
Set Scope and Write Down Your Assumptions
What this chapter assumes
You have read the previous chapter on functional and non-functional requirements. You can read short Python snippets and know what an HTTP API and a database are. This chapter covers the step between "I know what the system should do" and "I can start calculating load": deciding what you will and won't design, and recording the numbers and beliefs your design depends on.
Why this step exists
Requirements tell you what the system must do. They rarely tell you how big it is, which features are out of bounds, or which parts of the problem you can treat as solved. A prompt like "design a service where users post short items and read them back" leaves all of this open.
If you skip this step, three things tend to happen:
- You design for an imagined scale. A system for 1,000 users and one for 100 million users have different architectures, and a vague prompt supports both.
- You spend time on features nobody asked about, such as search, analytics, or recommendations.
- Your estimates cannot be checked. A reviewer who disagrees with a number cannot tell whether you made an error or started from a different premise.
Scope and assumptions are the shared premises of the design. Once they are written down, everything later (capacity numbers, storage choice, scaling plan) can be traced back to them. If one changes, you know which downstream decisions to revisit.
Scope: in, out, and deferred
Scope is the boundary around what you will design. Sort every feature or concern you can think of into one of three groups.
| Group | Meaning | Example for an "items" service |
|---|---|---|
| In scope | You will design it and size it. | Create an item, fetch an item, list a user's items |
| Out of scope | You will not design it, and you say so. | Billing, admin tools, full-text search |
| Deferred | You will design it only if time remains, or after the core is settled. | Edit history, notifications |
The "out of scope" group needs an explicit statement. Silence is ambiguous. If you never mention search, a reviewer cannot tell whether you forgot it or chose to exclude it. One sentence ("I'm treating search as out of scope; it would be a separate index fed from this data") settles the question.
Choose scope by asking which requirements drive the architecture. Features that shape the data model, the traffic pattern, or the consistency needs belong in scope. Features that could be added later behind a new service without changing the core can usually be deferred.
Scope also covers depth
Besides which features you cover, decide how deeply. Authentication is a good example. You can say "requests arrive with a verified user identity from an existing auth service" and move on. That is a scoping decision about depth: you are treating a component as a black box with a known interface. Name each black box you rely on so that it is clear which parts you are not designing.
Assumptions: what to write down
An assumption is a statement you treat as true without proof. In system design, assumptions fall into four kinds.
- Scale assumptions. Daily active users (DAU, the number of distinct users who use the system in a day), actions per user per day, record size, and the read-to-write ratio.
- Behavior assumptions. Traffic is evenly spread or bursty. Most reads target recent data. Items are rarely edited or deleted.
- Environment assumptions. You deploy in one region or several. You use a managed cloud database or run your own. Clients are mobile apps or browsers.
- Quality assumptions. Target availability, acceptable read latency, and whether a user must see their own write immediately.
The last kind overlaps with non-functional requirements. The difference is in where the number came from. A requirement comes from the problem statement or the interviewer. An assumption is your own filling of a gap. Label them differently so that you can tell which numbers you are free to change.
Label the source of each number
For every assumption, note where it came from:
- Given: stated in the problem.
- Asked: you asked and got an answer.
- Estimated: you reasoned from something known, such as a similar product.
- Guessed: a placeholder with no better basis.
A guess is acceptable if you mark it as one. An unmarked guess looks like a fact and misleads everyone who reads it later.
A worked example
Take the prompt: "Design a service where users create short text items and read them back." Here is a first pass at scope and assumptions.
In scope: create an item, fetch one item by ID, list a user's items with pagination.
Out of scope: search, edits, media attachments, billing, and building the login system.
Assumptions:
- 10 million DAU (asked).
- 5 writes per user per day (estimated from a typical posting habit).
- 100 reads per user per day (estimated; people read far more than they write).
- 500 bytes per record on average (guessed).
- Peak traffic is about twice the average (guessed).
- A user should see their own new item immediately. Other users may see it a few seconds later (asked).
- A single region at first (assumed for simplicity).
Notice the read-to-write ratio, 20 to 1. It follows directly from the two behavior numbers, and it will strongly influence the caching and replication choices in later chapters. A single assumption you wrote down early ends up shaping several decisions.
Keep assumptions in a form you can compute with
A list in prose is fine for conversation, but a structured record works better when you start estimating. The next snippet stores each assumption with its source, then shows how one change propagates. It runs as written with Python 3.8 or later.
from dataclasses import dataclass
SECONDS_PER_DAY = 86_400
@dataclass(frozen=True)
class Assumption:
name: str
value: float
source: str # "given", "asked", "estimated", or "guessed"
ASSUMPTIONS = {
"dau": Assumption("dau", 10_000_000, "asked"),
"writes_per_user": Assumption("writes_per_user", 5, "estimated"),
"reads_per_user": Assumption("reads_per_user", 100, "estimated"),
"record_bytes": Assumption("record_bytes", 500, "guessed"),
}
def read_qps(reads_per_user: float) -> float:
dau = ASSUMPTIONS["dau"].value
return dau * reads_per_user / SECONDS_PER_DAY
for a in ASSUMPTIONS.values():
print(f"{a.name:16} {a.value:>12,.0f} ({a.source})")
base = ASSUMPTIONS["reads_per_user"].value
print(f"read QPS at {base:.0f} reads/user: {read_qps(base):,.0f}")
print(f"read QPS at {2 * base:.0f} reads/user: {read_qps(2 * base):,.0f}")The output lists the four assumptions, then shows that doubling reads per user moves average read QPS from about 11,574 to about 23,148. This is a quick sensitivity check: you ask how much a guess matters by changing it and watching the result. A guess that barely moves the answer, such as a record size off by 20 percent, needs little care. A guess that doubles your load, such as reads per user, deserves a question to whoever set the problem.
The loop between requirements, scope, and assumptions
Scope and assumptions are not a one-time step. New assumptions expose gaps in scope, and scope decisions create new assumptions.
The decision point matters most. A "high-impact guess" is an assumption that is both unsupported and able to change the architecture. Those are the ones worth a clarifying question. If nobody can answer, narrow the scope or pick a value and flag it.
Common errors
- Hiding assumptions inside calculations. If "100 reads per user" appears only inside a formula, no one can challenge it. State it before using it.
- Treating guesses as givens. Without source labels, a rough placeholder gets defended as a fact later.
- Scoping by omission. Not mentioning a feature is not the same as excluding it. Say what is out.
- Over-scoping. Trying to cover every feature leaves no depth for the parts that drive the design. Three well-handled operations beat ten shallow ones.
- Assuming away the hard part. "Assume the database scales" removes the very problem you were asked to solve. Black-box components you don't own (authentication, for example), not the core of the problem.
- Asking too many questions. Questions are for high-impact unknowns. If a number barely affects the design, choose a reasonable value and move on.
Revising scope and assumptions
Plan to revise. A new constraint ("this must work across regions") may move a deferred item into scope or invalidate an environment assumption. When that happens, repeat three steps: update the list, find the decisions that depended on the changed item, and re-evaluate only those. Written assumptions make this practical, because you can search them instead of rethinking everything.
The next chapter turns these assumptions into traffic, storage, and bandwidth figures. Its numbers will only be as trustworthy as the list you wrote here.
Exercise
A prompt says "design a photo-sharing service." You write down these assumptions: 20 million DAU (asked), 2 uploads per user per day (estimated), average photo size 3 MB (guessed), and "search is out of scope." Which assumption would you check first by sensitivity analysis, and which statement is a scope decision rather than an assumption?
Show answer
Check photo size first. It is a guess, and it multiplies directly into daily storage (20 million x 2 x 3 MB = 120 TB per day), so a wrong value changes storage and bandwidth planning a lot. "Search is out of scope" is the scope decision, because it sets a boundary on what you design. The other three statements are scale assumptions.
Exercise
Why should you label each assumption as given, asked, estimated, or guessed, instead of just listing the values?
Show answer
The label shows how much trust a number deserves and which numbers you are free to challenge or change. Without it, guesses look like facts, and a reviewer cannot tell whether a number came from the problem statement or from you. It also tells you which numbers are worth a clarifying question.