Quality Attributes & Trade-off Analysis
- 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.
| Characteristic | Selected sub-characteristics | Bank example | E-commerce example |
|---|---|---|---|
| Functional suitability | Completeness, correctness | Interest computed to the right rounding rule | Promotion stacking applied correctly |
| Performance efficiency | Time behaviour, resource use, capacity | Transfer p99 latency; end-of-day batch fits the window | Product page p95; 50k checkouts/min at peak |
| Compatibility | Co-existence, interoperability | ISO 20022 / ISO 8583 messaging with the switch | Marketplace seller APIs, payment gateway SDKs |
| Usability / interaction capability | Learnability, error protection | Clear failure messages on mobile transfers | One-page checkout, no lost cart |
| Reliability | Availability, fault tolerance, recoverability | 99.99% channel availability, RPO 0 for ledger | Checkout keeps working when recommendations fail |
| Security | Confidentiality, integrity, non-repudiation, accountability, authenticity | Maker-checker, signed instructions, tamper-evident audit | PCI DSS scope reduction via tokenization |
| Maintainability | Modularity, testability, modifiability | New regulatory report in weeks, not quarters | Ship a new promotion type without touching checkout |
| Portability / flexibility | Adaptability, installability | Run on-prem and in a private cloud | Move a service between cloud regions |
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.
| Part | Question it answers |
|---|---|
| Source | Who or what generates the stimulus (user, attacker, AZ failure, developer)? |
| Stimulus | What happens (request burst, node crash, change request, malicious login)? |
| Artifact | Which part is affected (payment API, ledger DB, whole region, codebase)? |
| Environment | Under what conditions (normal load, peak, degraded, during deployment)? |
| Response | What the system should do (serve, fail over, reject, log, alert)? |
| Response measure | How 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
| Vague | Measurable |
|---|---|
| "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:
- Run a workshop with business, security, ops and engineering. Collect scenarios; do not argue yet.
- Group them under attributes; rate importance (business decides) and difficulty (architects decide).
- (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?
- 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:
| Term | Meaning | Example |
|---|---|---|
| Sensitivity point | A design decision that strongly affects one attribute | Kafka acks setting determines event durability |
| Trade-off point | A decision that affects several attributes in opposite directions | Synchronous cross-AZ DB replication: better RPO, worse write latency and availability under network partitions |
| Risk | A decision that may lead to failing an NFR | Single NAT gateway on the payment egress path |
| Non-risk | A decision you checked and believe is sound | Stateless API pods behind an HPA |
| Risk theme | A cluster of risks pointing at a systemic issue | "Third-party dependencies have no timeouts or fallbacks" |
Worked trade-off — checkout payment step:
| Decision | Availability | Latency | Consistency | Cost |
|---|---|---|---|---|
| Call payment provider synchronously in checkout | Lower (provider outage blocks checkout) | Higher (provider p99 adds directly) | Strong: order paid or not at response time | Low |
| Accept order, authorize asynchronously, notify user | Higher (queue absorbs outages) | Lower for the user | Eventual: order may later fail payment | Medium (state machine, notifications, reconciliation) |
| Synchronous with timeout + async fallback | High | Bounded | Mostly strong; small tail eventual | Highest 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
| Attribute | Bank (payments, ledger, core) | E-commerce (catalog, cart, checkout) |
|---|---|---|
| Availability | 99.95–99.99% for channels; core may have planned batch windows | 99.9–99.99%; checkout highest, recommendations lowest |
| Consistency | Strong for balances and postings; no lost or duplicated money | Strong for payment and stock reservation; eventual for catalog, reviews, search |
| Durability / RPO | RPO 0 for committed financial transactions is a common target | Minutes acceptable for most data; orders and payments near zero |
| RTO | Often 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 |
| Auditability | Every change attributable, immutable, retained for years | Mostly for payments, refunds and admin actions |
| Security | Defence in depth, HSMs, segregation of duties, regulator audits | PCI DSS (minimize scope), account-takeover and bot protection |
| Scale profile | Predictable peaks (salary day, month-end, Tết), moderate TPS, heavy batch | Spiky peaks (flash sales, 11.11, Black Friday), very high read traffic |
| Latency | Hard deadlines from schemes and switches (authorization timeouts) | User-perceived; slower pages reduce conversion |
| Change rate | Slower, change-managed; compliance-driven changes | Many deploys per day; experiments and A/B tests |
| Cost sensitivity | Cost of failure dominates | Cost 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:
| Tension | Push one way | Push the other way | Typical resolution |
|---|---|---|---|
| Consistency vs availability | Synchronous replication, single leader, quorum writes | Async replication, multi-leader, local reads | Strong for money and stock, eventual for everything else (see CAP & PACELC) |
| Latency vs durability | Ack after local write | Ack after replicated write | Replicate synchronously within a region, async across regions |
| Security vs usability | MFA on every action, short sessions | Remember device, one-tap pay | Risk-based authentication: step-up only when risk is high |
| Performance vs modifiability | Denormalize, inline, special-case | Layers, abstractions, generic rules | Optimize the hot path only after measuring |
| Scalability vs cost | Over-provision for peak | Run lean, scale on demand | Autoscale with a floor; pre-scale for known events |
| Time-to-market vs maintainability | Ship the shortcut | Build the platform | Record 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:
| Hop | Budget (p99) |
|---|---|
| Edge + API gateway | 30 ms |
| Auth / session | 30 ms |
| Cart + pricing | 150 ms |
| Inventory reservation | 120 ms |
| Payment authorization (external) | 400 ms |
| Order write + outbox | 50 ms |
| Slack | 20 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.
Exercise
Take the E-commerce Order Platform (or a system you know):
- Write eight quality attribute scenarios — at least one each for availability, performance, security, modifiability and auditability — in the six-part format.
- Arrange them in a utility tree (Mermaid) with (importance, difficulty) ratings.
- 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.
- 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.
Related
- The Role of a Solution/System Architect — where NFRs fit in the architecture loop.
- High Availability & Disaster Recovery — availability math, RPO/RTO in depth.
- Capacity Planning & Cost — turning scale NFRs into numbers and budgets.
- Observability & SLOs — measuring NFRs in production.
- CAP & PACELC — the formal side of consistency vs availability.
- Security for Architects — security NFRs and controls.
- System Design Interview Framework — where requirement gathering fits in the interview.
Do the self-check first. Marking it complete schedules spaced reviews (1, 3, 7, 14, 30… days).