Hypothetical scenario. Maya has accepted a browsing-only brief, but the meeting is not finished. Dev sketches a cache beside the product service. Priya writes two possible responses on the board: a quick page with yesterday’s price, and a slower page with the current price. Which one has kept the promise?
Maya: “The page must be fast, and the price must be current.”
Priya: “What would we observe to decide whether either response is acceptable?”
Dev: “Then we need to settle the response we will judge before accepting this cache.”
The brief from page 02 identified freshness and waiting as open decisions. This page turns them into a quality scenario: the conditions, the required response and the observation that decides whether it passed. Keep that brief beside the calculation; a convenient component measurement must not replace the visitor’s result.
What does “fast and current” let the visitor observe?
Start with a visitor’s action, not a component’s speed. A database can answer quickly while the browser waits on connection setup or displays an incomplete page. If the promise concerns the visitor, define the start and end of that visitor’s experience. If it concerns one internal service, name that narrower boundary instead.
For this hypothetical exercise, Maya selects a catalogue request under the promotion workload. A qualifying result contains the permitted product description and price, arrives within 400 milliseconds at the chosen client observation point, and uses a price record no more than 60 seconds old at delivery. These are selected teaching requirements, not industry recommendations or measured Northwind results.
The numbers need interpretation. “At delivery” differs from “when fetched from the source.” A record can be young when the server starts and too old when the response reaches the visitor. Likewise, the deadline needs an explicit start event. A browser click, an HTTP request reaching a gateway and a database query starting are different clocks for different questions.
Write the situation, response and measurement together
A useful scenario identifies who triggers the action, what happens, the operating conditions, the expected response and its measure. Northwind can say: during the declared promotion workload, a visitor requests a listed product; the catalogue returns the permitted information within the deadline and freshness rule, or reports unavailable rather than inventing a price.
That final branch needs its own policy. A correctly labeled unavailable response may satisfy a disclosure rule while failing the product goal of delivering a usable listing. Counting it as success for every metric would hide the loss of useful service. Preserve separate counts for completed listings, explicit unavailability, timeouts and invalid responses.
Join the result to an actual request observation
Hypothetical miniature review. The following four attempts illustrate the measurement rule; they are separate from the 200-observation cohort below. Content is permitted wherever a listing is returned. Keep the declared 400 ms client boundary and 60-second price-evidence age.
| Attempt | Client elapsed | Price evidence age | Recorded outcome |
|---|---|---|---|
| A | 330 ms | 55 s | Accepted listing |
| B | 350 ms | 75 s | Freshness failure |
| C | 450 ms | 40 s | Deadline failure |
| D | 200 ms | No price returned | Explicit unavailable |
Only A passes the combined rule: 1 accepted listing ÷ 4 attempts = 25% in this deliberately tiny example. It is not a production estimate or a new target. If D instead had no outcome event, retain missing evidence explicitly and apply the declared measurement policy; do not silently remove an inconvenient attempt from the denominator.
Separate a target from evidence that it was met
A service-level indicator is an observed quantity under a defined measurement rule. A service-level objective is a target for that quantity over a declared population or window. Google Cloud’s SLO monitoring guidance explains the relationship between indicators and objectives. Northwind must supply the actual task boundary and business choice; the terminology does not select a target on its behalf.
For the exercise, choose a review population of 200 catalogue observations and require at least 190 accepted listings under the combined rule. A production objective would also need a time window, eligibility rules, instrumentation and treatment of missing observations. Two hundred examples are enough for the arithmetic here; they do not establish statistical confidence or the expected production distribution.
Count the intersection, not two reassuring totals
Hypothetical worked example. Of 200 responses, 180 satisfy both deadline and freshness, ten satisfy only the deadline, and ten satisfy only freshness. No response belongs to a fourth category. The population reconciles: 180 + 10 + 10 = 200.
The deadline count is 180 + 10 = 190. The freshness count is also 180 + 10 = 190. Reporting those two totals separately makes both conditions appear to reach a 190-observation target. However, only 180 meet the combined condition. The accepted-listing requirement misses its target by 190 − 180 = 10 observations.
Before reading on, ask whether averaging the two marginal totals repairs the result. It does not: (190 + 190) ÷ 2 = 190 still describes neither the intersection nor which visitors received an acceptable listing. Keep the observations paired by request identity. Otherwise the two dashboards may even describe different populations.
Test the dependency shared by apparently redundant paths
Hypothetical design review. Two catalogue replicas still need the same product service. Its failure can affect both routes at once. A component-success fraction multiplied by another fraction needs a valid dependency model; replica count alone supplies no independence argument. Observe the actual usable-listing outcome through the complete path.
Give the catalogue owner responsibility for the eligible-attempt definition and client outcome. Give the source owner responsibility for the meaning of the price-evidence timestamp. Cross-machine age calculations need an agreed time representation and a policy for clock uncertainty; subtracting unrelated clocks without those assumptions is not a proof of freshness. Missing source evidence should lead to the defined unavailable result rather than an invented recent timestamp.
Choose the failure response before optimizing the path
Suppose the product-record service cannot answer before the remaining deadline. Northwind has several possible behaviors: return a permitted recent copy, show unavailable information, or wait longer. Each changes a declared condition. Waiting may violate the deadline; an older copy may violate freshness; an unavailable result may fail the usable-listing target.
These are product trade-offs to make explicit. A cache can implement a chosen reuse policy, but cannot decide which promise should yield. Security and correctness requirements may also be non-negotiable: a quick response containing another tenant’s information does not become acceptable through a good average latency.
In the wild: make quality requirements discussable
arc42’s quality guidance provides a public documentation approach for quality requirements and scenarios. It gives the team a place to record the conditions that distinguish acceptable from unacceptable behavior. It does not demonstrate that any particular deployment meets those conditions.
Keep the short browsing brief and these quality scenarios connected. If the scope expands to accepting orders, the accepted outcome changes. A catalogue-response SLO cannot serve as evidence that money movement, stock reservation or order confirmation is correct.
When a green chart hides the product failure
Hypothetical failure scenario. Northwind counts every HTTP 200 response as a successful listing. During a product-service interruption the application returns an empty price field in a 200 response. The status chart stays green while visitors cannot decide whether the promotion price applies.
Repair the measurement definition and the response contract together. Retain transport status for diagnosis, then evaluate whether the product result satisfies the declared content, deadline and freshness rules. Do not rewrite the old measurement history as though it had always observed the stronger condition.
Use scenarios where a decision depends on them
Quality scenarios help when stakeholders use the same adjective for different expectations, or when a design improves one property by spending another. They are less useful as an exhaustive catalogue of every desirable word. Start with the conditions that can change the architecture.
A single combined number can still hide a failure category or a disadvantaged population. Preserve reasons and relevant slices alongside the aggregate. Avoid inferring a percentile from an average, an availability result from latency alone, or price correctness from freshness alone. A recent source can contain an incorrect price; this lesson’s chosen freshness check has a limited claim.
Questions for the quality review
Both deadline and freshness charts show 190 successes out of 200. Has the combined target passed?
Join observations before accepting them
Not necessarily. The worked population has only 180 meeting both rules. Keep request identities and inspect the intersection; marginal counts cannot establish joint success.
A server finishes in 300 ms, but the visitor receives the result after 500 ms. Has the 400 ms client target passed?
Use the declared measurement boundary
No. The server measure may help locate work, but the selected client observation misses its deadline. Do not substitute an easier boundary without changing the requirement explicitly.
The dependency fails and an old price is available. Should the cache return it automatically?
Consult the permitted failure behavior
Only if its age and use satisfy the accepted rule. Otherwise report the permitted unavailable outcome or follow an explicitly approved alternative. Cache availability does not grant permission to change the freshness contract.
Northwind now has a way to judge a catalogue result, but no estimate of how much work arrives. Carry the accepted response conditions into page 04: capacity should describe work that meets those conditions, rather than requests that merely finish.
Northwind decision log
Judge a usable listing through content, deadline and freshness together.
Keep unavailable and invalid outcomes visible instead of hiding them behind transport success.
Carry the chosen conditions into workload estimation and later measurements.
Go deeper: conditions before dashboards
- Book chapter: Software Architecture in Practice, fourth edition, chapter 3: Understanding Quality Attributes — Len Bass, Paul Clements and Rick Kazman. Develop explicit quality scenarios.
- Book chapter: The same book, chapter 9: Performance — the same authors. Relate performance decisions to a declared response measure. The link is the publisher’s contents record.
- Video: Making Architecture Matter — Martin Fowler Keynote — Martin Fowler, O’Reilly. Consider which qualities make a design worth preserving.
- Primary document: Quality requirements — arc42 contributors. Record the scenario and its acceptance measure.