Polski

Article · Solution Architect – role and craft · Circuit Breaker

Requirements and NFRs: getting the numbers out of the business that actually shape the system

Non-functional requirements in an architect's practice: questions that turn “it must be fast and always up” into numbers, an availability table from 99% to 99.999% with allowed downtime, RTO and RPO, a worked volume and throughput calculation for a marketplace, GDPR, NIS2 and consumer law in brief, ATAM quality scenarios and an NFR catalogue template in YAML and Markdown.

By · · 19 min read

"The system must be fast, secure and always available" – that is what most non-functional requirements sound like at the first meeting. The problem is that you can't design anything from such a sentence. Is "fast" 200 ms or 5 seconds? Is "always" 99.9% – that is, 43 minutes of downtime a month – or 99.99%, which costs a second zone, replication and on-call rotas? NFRs (non-functional requirements) are what drive the architecture, and nobody but the solution architect will extract them: the business doesn't think about them, and the teams assume "sensible defaults".

43 min 12 s
of downtime a month at 99.9% – a month counted as 30 days
52 min 34 s
of downtime a year at 99.99% – less than one longer deployment
72 h
to report a personal data breach – GDPR, Art. 33 – to the supervisory authority

Functional versus non-functional

A functional requirement: "a customer places an order and receives a confirmation". Non-functional: "a confirmation in < 2 s for 95% of orders at 1,500 orders per hour, 99.9% monthly availability, zero overselling, a full audit trail, card data never in our systems". The same feature with different NFRs is a completely different architecture: with a confirmation e-mail within an hour a queue and batch processing are enough; with 2 seconds you need parallel calls, timeouts and a fallback path.

A good map of categories is the ISO/IEC 25010 standard – a software quality model (8 characteristics in the 2011 version, 9 in the 2023 revision): performance efficiency, reliability, security, maintainability, compatibility and more. In a solution architect's practice the ones that keep coming back are: volumes, performance, availability, disaster recovery, data consistency, security, audit, regulations and cost.

How to get NFRs out of the business

A few principles that turn an NFR workshop from an interrogation into a conversation:

  • Ask about consequences, not percentages. "What availability do you need?" almost always ends with "100%". "What happens when the shop is down for an hour? How many orders do we lose? Will the customer come back in an hour, or buy from a competitor?" – gives you material for numbers.
  • Ask about the worst day, not the average one. Black Friday, the start of a big promotion, the first days of the month after payday, the week before Christmas.
  • Offer ranges and examples. "Should the confirmation come in 2 seconds, in 30 seconds, or is an e-mail within an hour enough?" People find it easier to choose than to invent.
  • Show the price. 99.9% is one zone with redundancy, 99.99% usually means several zones or regions, automatic failover and on-call. When the business sees the cost, "100%" turns into a realistic number.
  • Record the source. "PO, workshop 19.11" – so that in six months you know whom to ask whether the requirement still holds.

A question checklist worth always keeping at hand (example answers from OrderFlow – the new order system of the Bazario marketplace):

CategoryQuestion for the businessAnswer in numbers (OrderFlow example)
VolumesHow many operations a day? What do the worst day and the worst hour look like? Growth in 3 years?10k orders/day, peak 1,500/h, Black Friday ×5, +30% a year
PerformanceHow long can a customer wait before abandoning the cart? For what share of requests?confirmation p95 < 2 s, p99 < 4 s
AvailabilityWhat happens when the shop is down for an hour? For a day? When can maintenance happen?99.9% a month, maintenance windows at night, never in November
Recovery (RTO/RPO)How long can we be down after losing a zone? How much data can we lose?RTO 1 h, RPO 0 for paid orders
ConsistencyWhat if we sell more than we have in stock?zero overselling, also during a promotion on a single product
SecurityWhat data do we process? Who may see it? Where do users log in from?personal data and addresses, purchase history; cards only at the payment operator; MFA for staff
AuditWhat must we be able to reconstruct years later? Who will ask?every change of an order, price and refund: who, when, what, why
RegulationsWhich regulations apply? Where may the data reside?GDPR, NIS2, consumer law (Omnibus), accessibility (EAA); data in the EU
DataHow long do we keep the data? When do we delete it?retention per the legal policy (invoices – tax law), deletion afterwards
IntegrationsWhich systems do we talk to? What SLAs and downtime windows do they have?payment operator (vendor SLA), ERP (nightly end-of-day close), carriers
CostWhat is the yearly budget for infrastructure and licences?yearly limit agreed with financial control

Availability in numbers

Availability is the percentage of time the system works as agreed. Every extra "nine" cuts the allowed downtime tenfold:

AvailabilityDowntime per year (365 days)Downtime per month (30 days)Downtime per week
99%3 d 15 h 36 min7 h 12 min1 h 40 min 48 s
99.5%1 d 19 h 48 min3 h 36 min50 min 24 s
99.9%8 h 45 min 36 s43 min 12 s10 min 5 s
99.95%4 h 22 min 48 s21 min 36 s5 min 2 s
99.99%52 min 34 s4 min 19 s1 min 0.5 s
99.999%5 min 15 s25.9 s6 s
Allowed downtime per month (30 days) – Calculation: (1 − availability) × 43,200 minutes. At 99.999% you are left with 0.43 minutes – less than a single restart of most applications.
Minutes of downtime
99%432 minutes
99.5%216 minutes
99.9%43.2 minutes
99.95%21.6 minutes
99.99%4.32 minutes
99.999%0.43 minutes

Three things you must always clarify before a number goes into the catalogue:

  1. Where and how do we measure? A synthetic probe every minute from two locations? The share of successful requests at the load balancer? These are two different numbers.
  2. What counts as downtime? Is partial degradation (orders can be placed, order history can't be viewed) downtime? Do announced maintenance windows count?
  3. Over what period? 99.9% per month is different from 99.9% per year – the yearly measure allows a single outage lasting almost 9 hours. On Black Friday, for instance.

It is also worth distinguishing three terms popularised by Google's Site Reliability Engineering book: the SLI (indicator – what we measure, e.g. the share of responses under 2 s), the SLO (objective – e.g. 99.9% over 30 days) and the SLA (an agreement with consequences, e.g. penalties). The gap between 100% and the SLO is the error budget – room for deployments and experiments.

The rest of this article is for members

Create a free account or sign in to read it all. Still ahead:

  • RTO and RPO
  • Volumes and throughput – a worked calculation
  • Regulations: GDPR, NIS2, consumer law
  • Quality scenarios (ATAM)
  • The NFR catalogue – a template
  • Related
  • Check yourself

Create a free account · Sign in