Requirements and quality attributes
Turn vague asks into measurable functional requirements and quality-attribute scenarios that actually drive design.
15 min readFunctional versus quality requirements
Functional requirements say what the system does: users can place an order, admins can refund. Quality attributes (non-functional requirements) say how well it does it: latency, availability, security, cost, operability. Functional requirements decide the features; quality attributes decide the architecture. Two systems with identical features, one serving 100 users and one serving 10 million with 99.99% availability, look nothing alike. Most failed designs got the features right and never pinned down the qualities. When a stakeholder hands you a feature list, your first job is to ask what qualities each feature must have, because those answers drive the expensive choices.
Write quality-attribute scenarios
Words like fast, scalable and secure are not requirements. Convert each into a scenario with six parts so it can be tested and traded off. A good scenario reads: 'During Black Friday peak (environment), 5,000 shoppers per second (source and stimulus) submit checkout (artifact), and 99% receive a confirmation (response) within 800 ms (measure).' Now you can size servers, choose a cache, and know when you are done.
- Source: who or what triggers it (user, attacker, failed node)
- Stimulus: the event (request, outage, deploy, breach attempt)
- Environment: normal load, peak, degraded, during deploy
- Artifact: which part of the system is affected
- Response: what the system should do
- Measure: a number you can verify (p99 latency, minutes to recover)
Questions that surface hidden requirements
Stakeholders rarely volunteer the requirements that hurt most. Ask directly, and ask for numbers. Expect to hear 'I don't know'; then propose a number and let them push back, which is far quicker than waiting for a perfect answer.
- How many users, requests per second and records, today and in two years?
- What happens to the business if this is down for one hour? For one day?
- How much data loss is acceptable after a failure (RPO) and how fast must it recover (RTO)?
- Who must never see this data? Which laws or contracts apply?
- What is the budget per month, and who pays for it?
Rank the qualities
You cannot maximise everything: availability fights consistency, security fights convenience, latency fights cost. Ask stakeholders to rank their top three quality attributes and write the ranking at the top of the design doc. When a later trade-off appears, the ranking decides it. On the SystCode canvas, the problem brief plays this role: its load, latency and availability numbers are the scenarios your design must pass. A typical ranking for a checkout might be availability, then correctness, then latency; for an internal reporting tool it might be cost, then simplicity, then freshness. Same techniques, very different designs.
Key takeaways
- Features decide what the system does; quality attributes decide what the architecture looks like.
- Write qualities as scenarios with a stimulus, environment, response and a measurable number.
- Ask for numbers on load, downtime cost, RPO/RTO, data sensitivity and budget; propose numbers if none exist.
- Get an explicit ranking of the top three qualities so trade-offs have a tie-breaker.
Sign in to track lessons and earn badges.