Fundamentalsnfrquality attributefunctional requirementnon functional requirements

Non-functional requirement

Definition

A non-functional requirement states a quality the system must meet under stated conditions, for example P95 latency at a given load; functional requirements describe the features and behaviour themselves.

In practice

Functional requirements say what users can do (post a photo, see a feed); non-functional ones decide the architecture. A feed that must load in 200 ms at 50,000 requests per second with 99.95% availability needs caching, replication and precomputation that the same feature at 50 requests per second does not. Typical categories are latency, throughput, availability, durability, consistency, security and cost.

Vague goals such as "fast" or "scalable" cannot be designed for or tested. Write each as a metric, a percentile or target, and a load, and say which ones matter most, because they conflict: stronger consistency costs latency and availability, higher durability costs write speed and money. Agreed targets later become SLOs.

Example

"Search returns results in under 300 ms at P95 for 2,000 queries per second, and indexed documents are never lost" is testable; "search should be fast and reliable" is not.