Skip to main content

Quality Attributes & Trade-off Analysis

Learning objectives
  • Name the main ISO/IEC 25010 quality characteristics and map them to real system concerns
  • Rewrite a vague NFR as a measurable quality attribute scenario
  • Build a utility tree and use it to prioritize architectural work
  • Run a lightweight ATAM: find sensitivity points, trade-off points and risks
  • Contrast the NFR profile of a bank's payment platform with an e-commerce checkout

TL;DR​

  • Functional requirements decide what the system does; quality attributes decide its architecture. Two systems with identical features can need completely different designs because one needs 99.99% availability and the other needs 50× elastic scale.
  • Use ISO/IEC 25010 as a checklist so you do not forget a category (security, maintainability, portability…), not as a form to fill.
  • Write every NFR as a quality attribute scenario: source, stimulus, artifact, environment, response, response measure. If it has no number, it is not a requirement.
  • A utility tree turns a pile of scenarios into a ranked list by business importance and technical difficulty. Spend design time on the (High, High) leaves.
  • ATAM-lite: walk each top scenario through the proposed design and record sensitivity points (one decision strongly affects one attribute), trade-off points (one decision affects several attributes in opposite directions) and risks.
  • Banks weight consistency, auditability, security and RPO/RTO; e-commerce weights elastic scale, latency and conversion. Say this explicitly in interviews.

Why it matters​

"The system must be highly available, secure and fast" is in almost every requirements document, and it is useless: it cannot be tested, it does not help you choose between two designs, and it hides the fact that the three goals conflict. Synchronous cross-region replication improves RPO for a ledger but adds tens of milliseconds to every write. Aggressive caching makes product pages fast but can show stale prices during a flash sale. Strong encryption and maker-checker approval make a corporate payment safe but add friction for the treasurer.

Architects are paid to make these conflicts explicit and to choose consciously. In interviews, the first five minutes of a system design question are usually about requirements; candidates who quantify NFRs ("≈ 2,000 transfers per second at the salary-day peak, p99 under 1 s, RPO 0 for posted transactions") immediately sound senior.

Core concepts​

ISO/IEC 25010 as a checklist​

ISO/IEC 25010 defines a product quality model. The 2011 edition lists eight characteristics; the 2023 revision reorganizes them into nine (adding safety, renaming usability to interaction capability and portability to flexibility). The exact taxonomy matters less than using it to check coverage.

CharacteristicSelected sub-characteristicsBank exampleE-commerce example
Functional suitabilityCompleteness, correctnessInterest computed to the right rounding rulePromotion stacking applied correctly
Performance efficiencyTime behaviour, resource use, capacityTransfer p99 latency; end-of-day batch fits the windowProduct page p95; 50k checkouts/min at peak
CompatibilityCo-existence, interoperabilityISO 20022 / ISO 8583 messaging with the switchMarketplace seller APIs, payment gateway SDKs
Usability / interaction capabilityLearnability, error protectionClear failure messages on mobile transfersOne-page checkout, no lost cart
ReliabilityAvailability, fault tolerance, recoverability99.99% channel availability, RPO 0 for ledgerCheckout keeps working when recommendations fail
SecurityConfidentiality, integrity, non-repudiation, accountability, authenticityMaker-checker, signed instructions, tamper-evident auditPCI DSS scope reduction via tokenization
MaintainabilityModularity, testability, modifiabilityNew regulatory report in weeks, not quartersShip a new promotion type without touching checkout
Portability / flexibilityAdaptability, installabilityRun on-prem and in a private cloudMove a service between cloud regions
note

Some attributes you will be asked about are not first-class in ISO 25010 but matter enormously in practice: auditability (bank), observability, cost efficiency, elasticity, deployability. Name them anyway.

Quality attribute scenarios​

The SEI's Software Architecture in Practice describes a scenario format with six parts. It forces you to say who does what to which part of the system, under what conditions, and how you will measure success.

PartQuestion it answers
SourceWho or what generates the stimulus (user, attacker, AZ failure, developer)?
StimulusWhat happens (request burst, node crash, change request, malicious login)?
ArtifactWhich part is affected (payment API, ledger DB, whole region, codebase)?
EnvironmentUnder what conditions (normal load, peak, degraded, during deployment)?
ResponseWhat the system should do (serve, fail over, reject, log, alert)?
Response measureHow you measure it (p99 latency, % success, minutes to recover, person-days)?

Bank availability scenario:

Source: infrastructure. Stimulus: the primary database node in AZ-a fails. Artifact: ledger posting service. Environment: business hours, normal load (≈ 400 postings/s). Response: automatic failover to the synchronous standby in AZ-b; in-flight requests either commit exactly once or fail with a retryable error. Measure: zero committed postings lost (RPO 0); writes resume within 60 s; no duplicate postings after client retries.

E-commerce performance scenario:

Source: shoppers. Stimulus: 11.11 flash sale opens, traffic jumps from ≈ 2k to ≈ 60k requests/s within 30 s. Artifact: product detail and add-to-cart APIs. Environment: peak, with autoscaling enabled and caches warm. Response: serve requests; shed non-critical features (reviews, recommendations) if needed. Measure: add-to-cart p99 under 300 ms, error rate under 0.5%, no overselling of flash-sale stock.

Security scenario:

Source: internal employee with operator credentials. Stimulus: attempts to change a beneficiary account and approve the change themselves. Artifact: corporate payment back-office. Environment: normal operation. Response: system rejects self-approval (maker-checker), logs the attempt with actor, time and before/after values, alerts security. Measure: 100% of such attempts blocked and logged; alert within 1 minute.

Modifiability scenario:

Source: product team. Stimulus: adds a "buy 2 get 1" promotion type. Artifact: pricing service. Environment: design time. Response: change is isolated to the promotion rules module. Measure: delivered in ≤ 5 person-days with no change to cart or order services.

Writing measurable NFRs​

VagueMeasurable
"The system must be fast.""Account balance API: p95 ≤ 150 ms, p99 ≤ 400 ms at 3,000 req/s, measured at the API gateway."
"Highly available.""Transfer initiation: 99.95% monthly availability measured as successful responses / valid requests, excluding announced maintenance windows ≤ 4 h/month."
"Secure.""All PAN data encrypted at rest with keys in an HSM; no PAN in logs (verified by automated log scanning in CI and production)."
"Scalable.""Handle 10× normal order rate for 2 hours with linear cost increase and no manual intervention."
"Auditable.""Every change to a customer limit records actor, time, channel, old and new values; records immutable and retained 10 years (check local regulation)."
"Easy to change.""A new payment method can be added by one team in one sprint without redeploying the order service."

Tips:

  • Percentiles, not averages. Averages hide the tail that users and timeouts feel.
  • Say where you measure (client, gateway, service) and over what window (per minute, per month).
  • Include the environment. "p99 300 ms" at 10% load and at peak are different requirements.
  • Give every NFR an owner who can accept or reject trade-offs.

Utility tree​

A utility tree is a hierarchy: overall utility → quality attributes → refinements → concrete scenarios. Each leaf scenario is rated (business importance, technical difficulty) as H/M/L.

How to use it:

  1. Run a workshop with business, security, ops and engineering. Collect scenarios; do not argue yet.
  2. Group them under attributes; rate importance (business decides) and difficulty (architects decide).
  3. (H,H) scenarios drive the architecture and get prototypes. (H,L) need to be done but are not risky. (L,H) should be challenged: is it worth the cost?
  4. Revisit the tree when the business changes (a new market, a new regulation).

ATAM-lite trade-off analysis​

The full ATAM (Architecture Tradeoff Analysis Method, from the SEI) is a multi-day, multi-phase evaluation. For a product team, a half-day "ATAM-lite" captures most of the value:

Vocabulary to use precisely:

TermMeaningExample
Sensitivity pointA design decision that strongly affects one attributeKafka acks setting determines event durability
Trade-off pointA decision that affects several attributes in opposite directionsSynchronous cross-AZ DB replication: better RPO, worse write latency and availability under network partitions
RiskA decision that may lead to failing an NFRSingle NAT gateway on the payment egress path
Non-riskA decision you checked and believe is soundStateless API pods behind an HPA
Risk themeA cluster of risks pointing at a systemic issue"Third-party dependencies have no timeouts or fallbacks"

Worked trade-off — checkout payment step:

DecisionAvailabilityLatencyConsistencyCost
Call payment provider synchronously in checkoutLower (provider outage blocks checkout)Higher (provider p99 adds directly)Strong: order paid or not at response timeLow
Accept order, authorize asynchronously, notify userHigher (queue absorbs outages)Lower for the userEventual: order may later fail paymentMedium (state machine, notifications, reconciliation)
Synchronous with timeout + async fallbackHighBoundedMostly strong; small tail eventualHighest complexity

There is no universally correct row. A bank's card authorization must be synchronous because the merchant terminal waits for an answer; a marketplace selling digital vouchers might prefer async to keep checkout up.

Bank vs e-commerce NFR profiles​

AttributeBank (payments, ledger, core)E-commerce (catalog, cart, checkout)
Availability99.95–99.99% for channels; core may have planned batch windows99.9–99.99%; checkout highest, recommendations lowest
ConsistencyStrong for balances and postings; no lost or duplicated moneyStrong for payment and stock reservation; eventual for catalog, reviews, search
Durability / RPORPO 0 for committed financial transactions is a common targetMinutes acceptable for most data; orders and payments near zero
RTOOften set by regulators or internal policy for critical services (typically ≤ a few hours, tighter for payments)Driven by revenue loss per minute; minutes for checkout
AuditabilityEvery change attributable, immutable, retained for yearsMostly for payments, refunds and admin actions
SecurityDefence in depth, HSMs, segregation of duties, regulator auditsPCI DSS (minimize scope), account-takeover and bot protection
Scale profilePredictable peaks (salary day, month-end, Tết), moderate TPS, heavy batchSpiky peaks (flash sales, 11.11, Black Friday), very high read traffic
LatencyHard deadlines from schemes and switches (authorization timeouts)User-perceived; slower pages reduce conversion
Change rateSlower, change-managed; compliance-driven changesMany deploys per day; experiments and A/B tests
Cost sensitivityCost of failure dominatesCost per order and infra/revenue ratio matter a lot

Many retailers have published internal studies linking page latency to conversion; the exact percentages vary by site and should not be quoted as universal laws.

Trade-offs​

Common pairs of attributes that pull against each other:

TensionPush one wayPush the other wayTypical resolution
Consistency vs availabilitySynchronous replication, single leader, quorum writesAsync replication, multi-leader, local readsStrong for money and stock, eventual for everything else (see CAP & PACELC)
Latency vs durabilityAck after local writeAck after replicated writeReplicate synchronously within a region, async across regions
Security vs usabilityMFA on every action, short sessionsRemember device, one-tap payRisk-based authentication: step-up only when risk is high
Performance vs modifiabilityDenormalize, inline, special-caseLayers, abstractions, generic rulesOptimize the hot path only after measuring
Scalability vs costOver-provision for peakRun lean, scale on demandAutoscale with a floor; pre-scale for known events
Time-to-market vs maintainabilityShip the shortcutBuild the platformRecord the debt in an ADR with a payback trigger

In practice​

Keep NFRs in the repo as data so they can drive dashboards, load tests and alerts:

# nfr/transfer-service.yaml
service: transfer-service
owner: payments-platform
scenarios:
- id: PERF-01
attribute: performance
stimulus: salary-day peak
load: 2000 req/s for 2h
measure:
p99_latency_ms: 1000
error_rate_pct: 0.1
measured_at: api-gateway
- id: AVAIL-01
attribute: availability
stimulus: loss of one availability zone
measure:
rpo_seconds: 0
write_recovery_seconds: 60
- id: AUDIT-01
attribute: auditability
stimulus: change to daily transfer limit
measure:
fields: [actor, timestamp, channel, old_value, new_value]
retention_years: 10

Latency budgets. Split an end-to-end target into per-hop budgets and make each team own theirs. Example for an e-commerce checkout with a p99 target of ≈ 800 ms:

HopBudget (p99)
Edge + API gateway30 ms
Auth / session30 ms
Cart + pricing150 ms
Inventory reservation120 ms
Payment authorization (external)400 ms
Order write + outbox50 ms
Slack20 ms

Note that percentiles do not add exactly — the sum of per-hop p99s is a conservative upper bound, which is what you want for a budget. See Observability & SLOs for turning these into SLOs and error budgets.

Approximate availability arithmetic. 99.9% ≈ 43 minutes of downtime per month; 99.99% ≈ 4.3 minutes. Each additional nine usually multiplies cost and operational effort. Details in High Availability & DR.

Common pitfalls​

  • NFRs copied from a template. "99.999% availability" for an internal reporting tool. Symptom: an expensive multi-region design nobody needed.
  • Averages instead of percentiles. Symptom: dashboards are green while 1% of customers time out at checkout.
  • No environment in the scenario. Symptom: the system meets latency in staging at 5% load and collapses at peak.
  • Ignoring conflicting attributes. Symptom: security adds a synchronous fraud check that silently breaks the latency budget.
  • NFRs nobody owns. Symptom: an incident review finds no one ever decided the RTO, so DR was never tested.
  • Treating "auditability" as logging. Application logs are mutable, sampled and rotated. Audit trails need immutability, completeness and retention — usually a separate store (see Schema Patterns: Money, Audit, Multi-tenancy).

Interview angle​

  • In any system design round, state NFRs with numbers before drawing boxes: load, latency, availability, consistency, durability, retention, security constraints. Ask which matter most.
  • When asked "which attribute matters most for a payment system?", a strong answer is correctness/consistency and auditability first, then availability, then latency — and explains why (losing money is worse than being slow).
  • Expect "What would you trade away?" Name the attribute you sacrifice and the mitigation (e.g. eventual consistency for order history, mitigated by read-your-writes on the user's own session).
  • Follow-ups: "How would you verify this NFR?" (load test, chaos test, audit query), "Who decides the RTO?" (the business, informed by cost), "How does this change during a flash sale?"
  • Red flags: "the system will be 100% available"; quoting 99.999% without explaining the cost; no distinction between latency percentiles; treating security as a separate phase.

Self-check​

1. Rewrite "the payment API must be highly available" as a full quality attribute scenario.

Source: infrastructure. Stimulus: loss of one availability zone. Artifact: payment initiation API and its database. Environment: peak hours, ≈ 1,500 req/s. Response: traffic shifts to healthy zones, database fails over to the synchronous standby, clients retry with idempotency keys. Measure: availability ≥ 99.95% per month; during the event, errors limited to under 60 s and no duplicate or lost payments.

2. What is the difference between a sensitivity point and a trade-off point? Give an example of each.

A sensitivity point is a decision that strongly affects one attribute — e.g. connection pool size affects throughput under load. A trade-off point affects multiple attributes in opposite directions — e.g. synchronous cross-region replication improves durability (RPO) but worsens write latency and availability during inter-region network problems.

3. Why should the business, not engineering, rate importance in a utility tree, while engineering rates difficulty?

Importance reflects revenue, regulatory exposure and customer impact, which the business understands and must own; otherwise engineers optimize what they find interesting. Difficulty reflects technical risk and cost, which only engineers can estimate. Separating the two prevents both gold-plating and naive promises.

4. Scenario: security wants a synchronous fraud score on every checkout; the fraud model p99 is 250 ms and your checkout budget is already full. What options do you present?
  • Score asynchronously for low-risk carts (small amount, known device) and synchronously only above a risk threshold.
  • Run the fraud call in parallel with inventory reservation, not in series.
  • Set a strict timeout with a default decision (allow with post-authorization review, or hold for high amounts).
  • Renegotiate the latency budget with product, using conversion data. Record the chosen option and its residual risk in an ADR signed by the risk owner.
5. List four NFRs that are typically stricter at a bank than at an e-commerce company, and one that is typically stricter at e-commerce.

Stricter at a bank: consistency of balances, RPO for financial transactions, auditability and retention, segregation of duties / access control, regulator-defined RTO. Stricter at e-commerce: elasticity — handling sudden 20–50× traffic spikes during sales events, and often front-end latency tied to conversion.

6. Why is "p99 under 300 ms" incomplete as a requirement?

It does not say where latency is measured (client, gateway, service), over what window, at what load, or for which operations. p99 at 10% load in staging is very different from p99 at peak in production measured from the mobile app. A complete requirement includes the measurement point, load level and time window.

🧠 Flashcards0/8 learned · 0 retries

Exercise​

Take the E-commerce Order Platform (or a system you know):

  1. Write eight quality attribute scenarios — at least one each for availability, performance, security, modifiability and auditability — in the six-part format.
  2. Arrange them in a utility tree (Mermaid) with (importance, difficulty) ratings.
  3. For the top three (H,H) scenarios, walk them through your current design and list at least two sensitivity points, two trade-off points and three risks.
  4. Produce a latency budget table for the most critical user journey.

Done when: every scenario has a number you could put in a load test or monitoring alert, and you can defend each rating in one sentence.

Further reading​

  • Software Architecture in Practice — Bass, Clements, Kazman (4th ed., 2021). Quality attribute scenarios and tactics.
  • SEI technical report: ATAM: Method for Architecture Evaluation — Kazman, Klein, Clements (CMU/SEI-2000-TR-004).
  • ISO/IEC 25010 — Systems and software Quality Requirements and Evaluation (SQuaRE) product quality model.
  • Fundamentals of Software Architecture — Richards & Ford. "Architecture characteristics" chapters.
  • Site Reliability Engineering — Beyer, Jones, Petoff, Murphy (Google, O'Reilly 2016). SLIs, SLOs and error budgets.
Finished this page?

Do the self-check first. Marking it complete schedules spaced reviews (1, 3, 7, 14, 30… days).