5.1 · Functional vs Non-Functional Requirements
A functional requirement (FR) states an externally observable behaviour: "the system shall issue a refund within 24 hours of approval." A non-functional requirement (NFR), also called a quality attribute, constrains how a behaviour is realised: latency, availability, security, modifiability, observability. NFRs drive the structure of the system; FRs drive the features. Two systems can implement the identical feature list with radically different architectures because their NFRs differ.
The eternal mistake is stating an NFR as an adjective. "Must be fast." "Must scale." "Must be secure." None of these is testable. A usable NFR is a measurable assertion under a named condition: "p99 checkout latency < 800 ms at 5 000 RPS sustained over 30 minutes, measured at the edge."
| Bad NFR | Better NFR |
|---|---|
| System must be fast | p95 search latency < 250 ms at 1 000 RPS |
| System must be scalable | Linear throughput to 10× current load by adding stateless replicas, no schema change |
| System must be secure | All data-at-rest AES-256; all traffic TLS 1.3; OWASP ASVS Level 2; SOC 2 Type II |
| System must be available | 99.95 % monthly availability; RTO 15 min; RPO 1 min; multi-AZ |
5.2 · ISO/IEC 25010 — the quality model
ISO/IEC 25010:2011 (the successor to ISO/IEC 9126:2001) defines a Product Quality Model used across software and systems engineering. The 2023 revision (ISO/IEC 25010:2023) refines the model and adds explicit characteristics for safety and freedom from risk. The eight top-level characteristics are an industry-standard checklist; cite them by number in NFR documents.
| Characteristic | Sub-characteristics |
|---|---|
| Functional suitability | Completeness · Correctness · Appropriateness |
| Performance efficiency | Time behaviour · Resource utilisation · Capacity |
| Compatibility | Co-existence · Interoperability |
| Usability | Appropriateness recognisability · Learnability · Operability · User-error protection · UI aesthetics · Accessibility |
| Reliability | Maturity · Availability · Fault tolerance · Recoverability |
| Security | Confidentiality · Integrity · Non-repudiation · Accountability · Authenticity |
| Maintainability | Modularity · Reusability · Analysability · Modifiability · Testability |
| Portability | Adaptability · Installability · Replaceability |
The companion standard ISO/IEC 25012 covers data quality; 25040 the evaluation process; 25023 measurement metrics. Together they make up the SQuaRE series (Systems and software Quality Requirements and Evaluation).
5.3 · FURPS+ — the HP model
FURPS was created at Hewlett-Packard by Robert Grady (1992). The "+" was added later to capture constraints that are not strictly quality attributes but bind the architecture.
| Letter | Meaning | Examples |
|---|---|---|
| F | Functionality | Features, capabilities, security as a feature |
| U | Usability | Human factors, aesthetics, accessibility, documentation |
| R | Reliability | MTBF, MTTR, fault tolerance, recoverability |
| P | Performance | Throughput, response time, resource consumption |
| S | Supportability | Testability, extensibility, configurability, serviceability |
| + Design | Required algorithms, languages, frameworks | "Must run on JVM 21" |
| + Implementation | Resource limits, programming languages, tools | "No GPL dependencies" |
| + Interface | Required external systems | "Must consume SAP IDoc" |
| + Physical | Hardware, geography | "Data must remain in EU (GDPR Art. 44)" |
5.4 · Quality-attribute scenarios (the six-part form)
The SEI school (Bass, Clements, Kazman — Software Architecture in Practice, 4th ed., 2021) formalises an NFR as a scenario with exactly six parts. Writing a QA scenario forces you to remove every ambiguity.
- Source of stimulus — who/what triggers it (user, attacker, ops, dependent system)
- Stimulus — the event (request, failure, change request, attempted intrusion)
- Environment — operational state (normal, degraded, overloaded, under attack)
- Artifact — what part of the system is hit (API, DB, UI, message bus)
- Response — the required behaviour (serve, log, alert, fail-over, reject)
- Response measure — the testable number (latency, percentage, time-to-recover)
// Example — availability scenario, ATM withdrawal Source : payment processor Stimulus : authorise() request Environment : peak Friday 18:00, primary DB AZ failure Artifact : auth-service + replica Response : promote standby, replay WAL, resume traffic Measure : RTO < 30 s, RPO < 1 s, 99.99 % monthly availability
5.5 · ATAM — Architecture Tradeoff Analysis Method
Published by the Software Engineering Institute (SEI) at Carnegie Mellon in 2000 (Kazman, Klein, Clements), ATAM is a structured review that surfaces architectural risks. It does not score "good vs bad" — it exposes sensitivity points (decisions that strongly affect one QA), trade-offs (decisions that help one QA but hurt another), and risks (decisions whose consequences are unknown).
| Phase | Activities |
|---|---|
| 0 — Partnership & preparation | Agree scope, stakeholders, artefacts |
| 1 — Evaluation (decision-makers) | Present method · drivers · architecture · approaches · utility tree · scenario analysis |
| 2 — Evaluation (broader stakeholders) | Brainstorm scenarios · prioritise · analyse approaches |
| 3 — Follow-up | Report: risks, non-risks, sensitivities, trade-offs |
| 4 — Closure | Lessons learned, action items, re-evaluation cadence |
5.6 · QAW — Quality Attribute Workshop
The Quality Attribute Workshop (Barbacci et al., SEI 2003) is run before the architecture exists. A facilitator works with business and technical stakeholders to brainstorm raw QA scenarios, refine them into the six-part form, then prioritise. Output: a prioritised scenario list that feeds the utility tree and seeds an ATAM later.
5.7 · The utility tree
A utility tree is a hierarchical view of "what quality means for this system." The root is "Utility". The next level is the chosen QAs (from ISO 25010 or FURPS+). The next level is refinements (e.g. Performance → throughput; Performance → latency). The leaves are concrete six-part scenarios with two H/M/L scores: (business importance, architectural difficulty). Scenarios scored (H, H) are the ones an ATAM must analyse.
Utility tree shape
5.8 · Tactics catalog
A tactic is a design decision that influences the response of a specific quality attribute. Bass / Clements / Kazman catalogue dozens; the seasoned architect carries the categories in memory.
| QA | Tactic families |
|---|---|
| Availability | Fault detection (ping/echo, heartbeat) · Recovery (active redundancy, passive redundancy, spare, rollback, retry, exception handling) · Prevention (removal from service, transactions) |
| Performance | Control resource demand (manage events, prioritise, bound execution, throttle) · Manage resources (concurrency, replication, cache, scheduling) |
| Security | Detect (intrusion, anomaly) · Resist (authenticate, authorise, encrypt, limit exposure, validate input) · React (revoke, lock, inform) · Recover (audit, restore) |
| Modifiability | Reduce size of module · Increase cohesion · Reduce coupling (encapsulate, use intermediary, abstract common services, restrict dependencies) · Defer binding |
| Testability | Control/observe state · Limit complexity (limit non-determinism, limit structural complexity) |
| Usability | Support user initiative (cancel, undo, aggregate) · Support system initiative (model user/task/system) |
5.9 · Fitness functions
From Building Evolutionary Architectures (Neal Ford, Rebecca Parsons, Patrick Kua — O'Reilly 2017, 2nd ed. 2023), a fitness function is "an objective integrity assessment of some architectural characteristic(s)." If you can write it as a test, you can keep it true. Categories:
- atomic vs holistic — one characteristic vs combined
- triggered vs continual — runs in CI vs runs in production
- static vs dynamic — fixed threshold vs adaptive
- automated vs manual — covered by code vs requires review
- temporal — must hold over a time window (e.g. p99 latency over 24 h)
Concrete examples: ArchUnit / NetArchTest layer rules, Dependency-Cruiser circular-dep checks, k6 / Gatling latency budgets, Trivy / Snyk vulnerability counts, OPA / Conftest policy gates, accessibility (axe-core) scores, energy/cost budgets in CI.
5.10 · The trade-off "triangle" — and its many sides
The cliché "fast, cheap, good — pick two" is the entry-level form. Real architectures negotiate a polyhedron of trade-offs. Some classic pairs:
| Trade-off | Lesson |
|---|---|
| Consistency vs Availability (CAP — Brewer 2000) | Under partition you choose one |
| Latency vs Throughput | Batching adds throughput at the cost of latency |
| Security vs Usability | Every extra factor adds friction |
| Modifiability vs Performance | Layers add change-safety, cost cycles |
| Cost vs Resilience | Active-active across regions doubles spend |
| Generality vs Optimisation | Reusable APIs underperform bespoke ones |
| Time-to-market vs Maintainability | The "tactical wedge" Mark Richards warns about |