Sub topic 4
Eliciting requirements from stakeholders
This chapter assumes you can tell a functional requirement from a non-functional one, as covered in the previous two chapters. It also assumes you have used a web API and a database. Here you will learn how to find out what a system must do and how well it must do it, before you write either kind of requirement down.
What elicitation is and why it fails
Elicitation is the activity of drawing requirements out of the people who care about the system. A stakeholder is anyone who is affected by the system or can affect its success. Requirements rarely arrive as a finished list. Stakeholders describe symptoms, solutions, or wishes, and you have to turn those into statements you can design and test against.
Elicitation usually fails in four ways:
- Missing stakeholders. Nobody asked the on-call team, so operability never appears.
- Solutions disguised as needs. "We need Redis" is a design choice. The underlying need might be "profile pages load in under 200 ms."
- Unspoken assumptions. People rarely state what feels obvious, such as "short links never expire."
- Vague quality words. "Fast," "reliable," and "scalable" mean different things to different people.
Identify the stakeholders
Start with a stakeholder list before you hold any meetings. Think in categories, because each category tends to care about different qualities.
| Stakeholder | Typical concerns | Qualities they often raise |
|---|---|---|
| End users | Tasks they can complete, response time | Latency, usability, availability |
| Business owner or product manager | Revenue, launch date, cost | Scope, cost, time to market |
| Operations or on-call engineers | Alerts, deploys, debugging | Operability, observability |
| Security and compliance | Data protection, audit | Security, retention, privacy |
| Downstream and upstream teams | API contracts, data formats | Compatibility, throughput limits |
| Finance | Infrastructure spend | Cost per request, storage growth |
Note that users are only one row. A system with happy users and an unmaintainable deployment process still fails its stakeholders.
Elicitation techniques
No single technique covers everything. Combine several.
- Interviews. One-to-one conversations. Use open questions ("Walk me through the last time this broke") before closed ones ("Is 200 ms acceptable?").
- Workshops. A group session that surfaces disagreement early, because conflicting stakeholders are in the same room.
- Document and system analysis. Read existing runbooks, incident reports, support tickets, and logs. Existing traffic is often the best source of real numbers.
- Observation. Watch people use the current process. What they do often differs from what they say.
- Prototypes and mock APIs. Showing a draft response often exposes missing fields faster than discussion.
- Questionnaires. Useful when stakeholders are many and distant, but weak at finding things nobody thought to ask.
Questions that expose non-functional requirements
Stakeholders seldom volunteer quality targets, so ask for them directly. Each question below is aimed at one quality attribute.
- What happens to the business if this feature is unavailable for ten minutes? For an hour? (availability)
- At what response time do users start to give up? (latency)
- How many users do you expect at launch, and in two years? (scalability)
- Is it acceptable to lose data? Is it acceptable to show data that is a few seconds old? (durability, consistency)
- What data is sensitive, and who may see it? (security)
- Who gets paged when this fails, and what do they need to see? (operability)
- What would you not pay for? (cost constraint)
The answers are usually qualitative. "Pretty fast" is a starting point, not a requirement. Your follow-up is always: "Can you give me a number, and how would we measure it?"
The elicitation loop
Elicitation is iterative. You gather, write drafts, play them back, and fix what stakeholders correct.
Playing back is the step people skip. Reading your draft aloud to the person who gave you the input catches misunderstandings while they are cheap to fix.
Recording what you learn
Keep raw input separate from agreed requirements. A simple record per item lets you trace each requirement to its source and see what is still unsettled. The YAML below is one possible format. It reuses the URL shortener from this tutorial.
stakeholders:
- name: Product manager
concern: Launch in one quarter, low running cost
- name: On-call engineer
concern: Needs dashboards and a safe rollback
- name: Security lead
concern: Block links to known malicious sites
raw_input:
- id: IN-1
source: Product manager
statement: "Links must open instantly."
status: needs_number
- id: IN-2
source: Security lead
statement: "We must not redirect to phishing pages."
status: needs_scope_decision
open_questions:
- id: Q-1
question: What response time counts as "instantly" at the 99th percentile?
owner: Product manager
- id: Q-2
question: Is checking links at creation time enough, or must redirects be checked too?
owner: Security leadThe statuses make progress visible. IN-1 cannot become a requirement until Q-1 produces a number. IN-2 cannot until the scope question is answered, since checking at redirect time would add work to the hot path.
Handling conflicts
Stakeholders will disagree. The product manager wants the launch in one quarter, and the security lead wants a link-scanning pipeline that takes two. You are not the judge. Your job is to make the conflict explicit and get a decision from someone with authority.
- State both requirements and the quality each protects.
- Show the cost of satisfying both, in time, money, or complexity.
- Ask the decision owner to choose, or to rank the two.
- Record the decision, who made it, and the reason.
Later chapters on trade-offs and architecture decisions build on this record. An undocumented decision is hard to defend months later.
Turning input into requirement candidates
Take each piece of raw input through the same checks.
- Separate the need from the solution. "Use a CDN" becomes "static assets load in under 300 ms for users on three continents."
- Replace vague words with measures. Replace "fast" with a percentile and a measurement point.
- Find the actor. Who performs the action, and who benefits?
- Check for unstated conditions. Ask what happens on failure, at peak load, and with invalid input.
- Record the source. If a requirement has no named stakeholder, ask why it exists.
Common elicitation pitfalls
- Interviewing only the loudest or most senior person.
- Treating the first answer as final. Follow up with "why?" until you reach the underlying need.
- Letting the current system define the requirements. People ask for what they already have.
- Collecting requirements once and never revisiting them. Priorities change, so schedule a review.
- Writing requirements nobody confirmed.
Exercise
Exercise
A product manager says, "The checkout page needs to be really fast and we should put it behind a cache." Identify the solution disguised as a need, the vague quality word, and two follow-up questions you would ask.
Show answer
The solution disguised as a need is "put it behind a cache," which is a design choice rather than a requirement. The vague quality word is "really fast." Follow-up questions: (1) What response time is acceptable, stated as a percentile such as the 99th percentile, and where is it measured? (2) How fresh must the checkout data be? This matters because caching can serve stale prices or stock levels, and the answer tells you whether caching is even allowed.
Exercise
The security lead wants every redirect checked against a malicious-site list. The product manager wants redirects under 100 ms at the 99th percentile. Describe the steps to handle this conflict.
Show answer
State both requirements and the quality each protects (security and latency). Estimate the cost of a per-redirect check, for example the extra latency of a lookup on the hot path. Ask the decision owner to choose or rank the two, or to accept a compromise such as checking at link creation time plus periodic rescans. Record the decision, who made it, and why.