Requirements: Functional and Non-Functional
Core Concepts (5)
- 1.Functional requirements say what the system does
- 2.Non-functional requirements say how well it does it
- 3.Constraints are fixed limits you cannot trade away
- 4.Vague qualities must become measurable targets
- 5.Requirements conflict, and architects arbitrate
Map to Your Experience
Recall a product that was slow, flaky, or insecure even though every feature worked. Which unstated requirement was missed?
Design Brief: Requirements Sheet for a Photo-Sharing App
Learn
Requirements describe what a system must do and how well it must do it. Splitting them into two kinds keeps conversations clear.
Functional requirements describe behaviour: a user can upload a photo, follow another user, and see a feed. If one is missing, the system plainly does not work. They are usually easy to list because stakeholders think in features.
Non-functional requirements describe qualities: speed, availability, durability, security, cost, and how easy the system is to change. They are harder to collect because people assume them until they fail. Nobody writes that the feed should load, yet everyone is upset when it takes ten seconds.
The key move is to make each quality measurable. Fast is not a requirement. The feed loads in under 500 milliseconds for 95 percent of requests is. Highly available is not a requirement. The service is reachable 99.9 percent of each month is. Measurable targets let you test a design against them, and tell you when you are over-building.
Constraints are a third category: facts you cannot change. Examples include a fixed budget, a team of four engineers, data that must stay in a particular country, or an existing database you must integrate with. Constraints narrow the option space before design starts, so capture them early.
Requirements also conflict. Strong security slows users down. Low cost limits redundancy. Fast delivery limits polish. The architect does not remove these conflicts; they make the trade-off visible and get a stakeholder to choose. A useful question is: if we can only have two of these, which two?
A tip for gathering them: ask what would embarrass the company on the front page. Data loss, a leak, or a day-long outage often reveal the true priorities faster than a feature list does.
Map
Take a ticket-booking website. Write two functional requirements and, for each of availability, latency, and durability, a plausible numeric target. Then note one place where two of your targets could pull against each other.
Design
Write the requirements sheet for a photo-sharing app. Include the functional list, the measurable non-functional targets, and constraints such as a small team and a limited cloud budget. Finish by naming the single non-functional requirement you would protect first if time ran out, and justify it in two sentences.
Requirements
- •List 5 functional requirements
- •List 4 measurable non-functional requirements
- •List 2 constraints
Constraints
- •Every non-functional item needs a number
- •Keep to one page
Must Cover
Trade-off Axis
features vs quality attributes
Referenced Patterns
Competencies Advanced
Ready to Design?
Open this day in the Design Studio. The studio follows this track: its days, concepts, patterns and trade-offs are loaded, and you keep one design across the whole track.
Open in Studio →