Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 1 of 6 · Concept · 20 min · revision 1

From prompt to requirements: users, use cases and non-goals

Turn a one-line design prompt into a short requirements brief: who the users are, what they must be able to do, what is deliberately out of scope, and which statements are requirements, assumptions, decisions or open questions.

Contentsand lesson path

On this page

  1. Why it matters
  2. Start with the people, then what they do
  3. Prioritise, then write the non-goals
  4. Requirement, assumption, decision or question?
  5. Check your understanding
  6. Apply it
  7. Review prompt

Lessons of Requirements & Estimation

  1. From prompt to requirements: users, use cases and non-goals Concept · 20 min
  2. Non-functional targets you can test Concept · 15 min
  3. Numbers to carry in your head: latency, throughput, powers of two Concept · 20 min
  4. Estimating a photo-sharing service end to end Worked example · 30 min
  5. A repeatable design sequence Concept · 15 min
  6. Estimation drill Knowledge check · 10 questions

What you will learn

  • Turn a vague prompt into prioritized functional requirements, explicit non-goals and measurable non-functional targets (latency percentiles, availability, durability, consistency).

01. Why it matters

A design problem rarely arrives as a specification. It arrives as one line: design a ticketing system, design a photo-sharing app, we need somewhere to keep our metrics. That line leaves out almost everything that shapes the design: who uses the system, what they do most often, how many of them there are, and what must never go wrong.

If you start drawing boxes straight away, you design for a problem you imagined instead of the one you were given. In an interview, that costs the time you needed for the hard parts. At work it costs more: weeks spent on features nobody asked for, and a design that fails on the one thing that mattered.

This lesson turns a vague prompt into a short requirements brief: users, use cases, priorities, non-goals, and a clear line between what is required, what you assumed and what you decided. The next lesson adds measurable targets for speed, availability and correctness. The running example is a ticket booking service for a company that runs concert venues.

02. Start with the people, then what they do

Begin by naming the actors: the people and external systems that interact with yours. For the ticketing prompt, a few questions to the person who set it (an interviewer, a product owner or a customer) give you four:

  • Fans browse events, choose seats and pay.
  • Event organisers at the company create events, set prices and open sales.
  • Door staff scan tickets at the venue entrance.
  • The payment provider is an external system that takes card payments and reports whether they succeeded.

Then write use cases: one sentence for each thing an actor needs to do, in the form actor + action + result, with a condition when it matters. A use case describes behaviour that someone outside the system can see, not how you will build it.

  1. A fan can see upcoming events in a city, sorted by date.
  2. A fan can hold up to six seats for ten minutes while paying, and nobody else can buy those seats during the hold.
  3. A fan who pays within the hold receives a ticket with a scannable code, by email and in the app.
  4. An organiser can create an event with a seating plan and a time when sales open.
  5. Door staff can scan a ticket and see whether it is valid, already used or for a different event.

Each of these is a functional requirement: a statement of what the system does. A good one is specific enough to test. Fans can find events easily cannot be tested. A fan can see upcoming events in a city, sorted by date can, because you can write a test that searches one city and checks the order of the results.

The questions that get you here are short and concrete. Who are the users, and roughly how many are there? What do they do most often? Which action, if it went wrong, would make the news? What already exists that you must work with, such as a payment provider or a mobile app? Is the service in one country or many? Any answer you cannot get becomes an assumption, which you write down, as the last section shows.

03. Prioritise, then write the non-goals

A first list always grows: resale between fans, waiting lists, dynamic pricing, seat recommendations, refunds, loyalty points. You cannot design all of that well in a 45-minute interview, or in a first release. So sort the list into three groups:

  • Core: the use cases without which the product does not exist. Here: browse, hold, pay, receive a ticket and scan it at the door.
  • Later: valuable, but the core works without them. Refunds and waiting lists go here.
  • Non-goals: things this design deliberately does not do, written down and agreed. Here: a resale marketplace, dynamic pricing, seat recommendations and sales in more than one currency.

A non-goal is not something you forgot. It is a decision, shared with the person who set the problem, about where the depth of the design goes. Writing it down has three effects. It stops scope from creeping, because each new idea is compared with an agreed list instead of being added quietly. It protects your time for the core. And it tells reviewers what not to criticise: a design without resale is not incomplete when resale was a non-goal.

Non-goals usually mean not now rather than never. When a later feature is likely, write one sentence about it, such as resale may come later, so a ticket should be able to change owner, so that the data model you choose today does not block it. Do not design the feature itself.

04. Requirement, assumption, decision or question?

Notes from a requirements conversation mix several kinds of statement. Keeping them apart is one of the most useful habits in system design, because each kind is handled differently:

  • A requirement is something the system must do or be. It comes from the problem owner, and you test it. A fan can hold up to six seats for ten minutes.
  • A constraint is a fixed fact about the environment that limits your choices. Payments go through the company's existing payment provider.
  • An assumption is something you believe but have not confirmed. Most events have fewer than 5,000 seats. Mark it, give your reason and confirm it when you can, because a wrong assumption quietly invalidates everything built on it.
  • A decision is a choice you made to meet the requirements. Seat holds are stored in the main database with an expiry time. Decisions belong to the design, not to the requirements, and each one needs a reason.
  • An open question is something you must ask before you can finish. Can a fan transfer a ticket to a friend?

One more kind deserves its own name. A business invariant is a rule that must stay true at all times, including when a request is retried, a server crashes or a payment confirmation arrives twice. The key invariant for ticketing is a seat is sold to at most one fan for each event. Invariants drive the hardest parts of a design, so find them early by asking: what would be a disaster if it happened even once?

Here is the brief for the ticketing prompt, in the shape you will reuse in the practice task for this skill.

Requirements brief · ticketing.txt
Prompt: design a ticket booking service for a company that runs concert venues.

Actors: fans, event organisers, door staff, payment provider (external).

Core use cases
  1. Fan sees upcoming events in a city, sorted by date.
  2. Fan holds up to 6 seats for 10 minutes while paying.
  3. Fan who pays in time gets a ticket with a scannable code.
  4. Organiser creates an event with a seating plan and a sale start time.
  5. Door staff scan a ticket: valid, already used, or wrong event.
Later: refunds, waiting lists.
Non-goals: resale marketplace, dynamic pricing, seat recommendations,
  more than one currency. (Resale may come later: a ticket can change owner.)

Invariant: a seat is sold to at most one fan per event, even on retries.
Constraints: existing payment provider; one country.
Assumptions: most events have fewer than 5,000 seats (to confirm).
Open questions: can fans transfer tickets? What happens to a hold if
  the payment provider is down?

05. Check your understanding

Practice check · 3 questions

Sorting statements in a requirements brief

Each question uses a new prompt, not the ticketing example. Pick the best answer.

Q1. Notes for a city library's book-reservation service say: "Members borrow about two books a month." The librarian thinks this sounds right but has no data. Where does this line belong in the brief?
Q2. A bike-rental app's brief lists group rentals (one person renting several bikes at once) as a non-goal. The product owner expects to add them next year. What should this year's design do about group rentals?
Q3. For a gift-card service, which statement is a business invariant: a rule that must stay true even when a redemption request is retried after a timeout?
Practice only: not graded, not saved, not evidence.

06. Apply it

The practice task for this skill asks for one page for each of three prompts: a paste service (users paste text and share a link to it), a ride-hailing location service (drivers' phones report their position; riders see nearby cars) and a metrics ingestion pipeline (servers send measurements that engineers query on dashboards). Start all three pages today with the first half of the brief:

  1. List the actors, including external systems.
  2. Write four to six core use cases as actor + action + result.
  3. Write a Later list and at least three non-goals, each with a one-line reason.
  4. Name at least one business invariant, two assumptions with the reason behind each, and two open questions.

Leave room on each page: the next lesson adds measurable targets, and lesson 4 adds estimates.

07. Review prompt

Without looking back, answer in your own words:

  1. What is the difference between a functional requirement and a design decision? Give one example of each for a food-delivery app.
  2. Why write non-goals down instead of just leaving those features out?
  3. What makes a statement an assumption, and what should you record next to it?
  4. What question helps you find a business invariant, and what is the invariant of a ticketing service?

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

10 questions · about 8 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check