Chapters & contents Lesson 1 of 20
3 min read
System design fundamentalsExpanded reading

Start a design with requirements

Turn an ambiguous product request into decisions that can be evaluated.

What you’ll learn

  • Separate behavior from quality constraints
  • State assumptions explicitly
  • Choose measurements that influence the design

Describe the user action

System design starts with an action someone needs to complete, not with a list of infrastructure products. For a learning platform, examples include opening a public lesson, saving personal progress, and finding material through search. Write down the input, the expected result, and who is allowed to perform the action. These descriptions become functional requirements. They help prevent a discussion about caches or message queues from drifting away from the behavior the system actually needs to provide.

Define quality in context

A requirement such as fast is too ambiguous to evaluate. Decide which operation matters, which users or locations are relevant, and which response-time measure represents their experience. A percentile can reveal slow requests that an average hides. Availability, privacy, durability, accessibility, and cost can matter just as much as raw latency. Avoid inventing precise targets without a reason; record them as proposed assumptions until the product context or measurements provide evidence.

Estimate before choosing scale

Estimate the number of learners, the frequency of key actions, and the amount of data each action reads or writes. Show the arithmetic and the unit for every step. An estimate is a way to uncover what matters, not a prediction that will remain exact. Public lesson reads and private progress writes have different patterns: one may be cacheable at the edge, while the other requires identity and authorization. Separating these paths can simplify a design more than adding a distributed database.

text · Worked example
Reading-list service: initial assumptions

User action: save a book to a personal list
Identity: every list belongs to an authenticated account
Durability: a successful save must survive a process restart
Read path: client -> API -> database
Failure question: what if the save succeeds but its response is lost?

Measure traffic and latency before adding caches or queues.

List failure and change scenarios

Ask what should happen when a dependency times out, a learner retries a request, or a deployment introduces an incompatible field. Consider how long stale content is acceptable and whether a missed progress update can be retried safely. These scenarios turn quality requirements into concrete design questions. They also reveal recovery work that a happy-path diagram omits, such as restoring a database or identifying which version of an application produced a faulty update.

Keep a decision record

A useful first design can be a short document containing requirements, assumptions, a request-flow diagram, a data model, and the most important tradeoffs. Explain why a component exists and what would justify replacing it later. Include uncertainties rather than hiding them behind confident technology names. During review, test the design against one ordinary request, one traffic increase, and one failure. A design that can explain those cases clearly is easier to improve than a complicated diagram without stated goals.

Try it yourself

Write three requirements for saving a learner’s course progress and one quality constraint that could affect storage design.

Show a possible solution

Examples: only the learner can update their progress; repeated completion of the same lesson does not create duplicate completions; progress can be read after signing in on another device. A quality constraint could state an agreed acceptable delay before another device sees an update, with the value treated as a product decision.

Check your understanding

Try 14 questions across system design fundamentals. Read each explanation and revisit anything that needs another pass.

Practise this subject

Go to the source

Use these primary references to check details and explore the topic further.

Saved in this browser. Signed-in progress syncs to your account.