Bookmarks

NFR — non-functional requirements

Requirements for the properties of a system other than its functions: performance, availability, security, maintainability. They answer the question of how well the system does what it does.

Also: non-functional requirement, quality requirement, quality requirements

checked 8 Nov

All terms

The user sees the functions: search, the shopping cart, paying for an order. Everything around them can fail — a page takes five seconds to open, passwords are stored in plain text, an update takes the whole service down. Such properties are agreed on in advance and recorded as non-functional requirements.

What counts as NFRs

GroupWhat is checkedExample wording
Performanceresponse time, throughput, number of concurrent users“the search results page responds within 500 ms under 1,000 concurrent requests”
Availability and reliabilitythe share of time the system is up, failures and recovery“99.9% availability per month — no more than 43.2 minutes of downtime”
Securityauthentication, access control, encryption, logging“passwords are stored only as hashes, admin panel access is protected by two-factor authentication”
Maintainabilitylogs and metrics, documentation, updates without downtime“a new version is deployed without stopping the service”
Usabilityhow easy the interface is to understand, accessibility for people with disabilities“checkout takes no more than three steps”
Portabilityrunning on different operating systems, devices and clouds“the service can be deployed to any cloud without code changes”

How they are written

A weak requirement sounds like a wish: “the system must be fast and reliable”. Such a requirement cannot be verified or accepted, so it is turned into a measurable statement:

  • a metric and a threshold: “no more than 500 ms for 95% of requests” rather than “fast”;
  • conditions: under what load and data volume, on what hardware;
  • a way to verify it: a load test, a security audit, monitoring of metrics in production;
  • priority: what is mandatory and what is merely desirable.

Every non-functional requirement costs money: redundancy for the sake of availability makes the system more expensive, encryption slows down responses. The properties are interconnected: strengthening one weakens another — for example, more security checks make signing in to the system harder. A useful question to ask of every requirement: what happens if it is violated? If the answer is “nothing serious, just inconvenient”, the requirement may be unnecessary.

Standards and names

How to gather and word requirements, both functional and non-functional, is described by requirements engineering, the ISO/IEC/IEEE 29148 standard. ISO/IEC 25010 sets out the product quality model on whose characteristics such requirements are based: the 2023 edition has nine of them, from performance and reliability to maintainability and security. In systems engineering the same properties are called system properties or quality attributes, and their composition and order depend on the project.

Sources

the term is written from these pages

Verified 8 Nov

Not to be confused with

what it is mixed up with and how it differs

  • quality attribute

    A quality attribute is a property of a system; an NFR is a requirement placed on it, with a number, a measurement condition and a way to verify it.

  • SLAservice level agreement

    An SLA is an external agreement with the customer on the level of service; NFRs are internal requirements on the system from which that level is built.

In depth in the references

where the topic is covered in detail