ArchitectMind
  1. Home
  2. Java Ecosystem
  3. Book 8 · Architecture Quality Attributes
  4. Volume VIII
  5. Architecture Evaluation Methods
Book 8 · Volume VIII — Quality Attribute Trade-offs & Architecture Evaluation · Topic 1.2

Architecture Evaluation Methods

Scenarios, checklists, metrics and models

10 min readStage 3 · Systems10 interview questions
Chapter
Chapter 1 — Architecture Evaluation
Prerequisites
Topic 1.1
You will be able to
Write quality-attribute scenarios, use checklists effectively without box-ticking, choose metrics that reveal architectural fitness, build simple quantitative models for performance, availability, capacity and cost, and combine methods according to stakes and uncertainty
Covers
Architecture evaluation methods — scenario-based evaluation, checklist, metrics, modeling
On this page
  1. 1. Concept / Definition
  2. 2. Why It Exists
  3. 3. Core Concepts — Architecture Evaluation Methods
  4. 4. How It Works Internally — Simple Models
  5. 4A. Deep Dive — Choosing the Method Mix
  6. 5. APIs / Features / Syntax
  7. 6. Practical Examples
  8. 7. Common Problems & Mistakes
  9. 8. Performance & Production Considerations
  10. 9. Architecture & Design Considerations
  11. 10. Interview Questions & Answers

1Concept / Definition

Architecture evaluation methods are the techniques used to judge whether an architecture meets its goals. They range from qualitative (scenario walkthroughs, checklists) to quantitative (metrics, models, simulations) and experimental (prototypes, load tests). No single method is sufficient; good evaluations combine them.

Evaluation methods compared
Figure 1 — Evaluation methods compared
MethodQuestion it answers
Scenario-basedHow does the design respond to specific, prioritised situations?
ChecklistHave we covered known good practices and common failure causes?
MetricsHow is the system actually performing against goals?
ModellingWhat does theory predict for load, availability, capacity, cost?
Table 1 — Four method families
VocabularyMeaning
QAWQuality Attribute Workshop (eliciting scenarios)
Well-ArchitectedAWS framework: 6 pillars with review questions
Little's lawL = λ × W (items in system = arrival rate × time in system)
Composite availabilityProduct of availabilities of serial dependencies
Table 2 — Terms

2Why It Exists

Single-method weaknessComplement
Scenarios rely on judgementModels and metrics add numbers
Checklists miss novel risksScenarios probe specifics
Metrics only for existing systemsModels for new designs
Models rest on assumptionsPrototypes and load tests validate
Table 3 — Why combine

3Core Concepts — Architecture Evaluation Methods

3.1 Scenario-Based Evaluation

Quality attribute scenario
Figure 2 — Quality attribute scenario
Scenario typeExample
Use-caseNormal sale peak: 8× traffic, p99 < 400 ms
GrowthTraffic doubles in a year: scale without redesign
ExploratoryRegion lost during sale: checkout continues within 15 min
ChangeAdd BNPL payment method in ≤ 2 sprints
SecurityStolen partner credential: blast radius ≤ one partner
Table 4 — Scenario types

3.2 Checklists

Checklist sourceUse
AWS Well-Architected (6 pillars)Broad cloud architecture review
Internal architecture checklistShopNow-specific lessons (timeouts, ownership, rollback)
Production readiness (Vol VII 1.3)Go-live
Security review checklistThreat model, data classification
Table 5 — Checklists
Good checklist practiceWhy
Short, specific, evidence-backed itemsNo box-ticking
Derived from incidentsCaptures real lessons
"Explain how" not "yes/no"Forces thinking
Table 6 — Using checklists well

3.3 Metrics

Metric familyReveals
SLOs, latency percentilesPerformance, availability fitness
DORADeployability, modifiability
Coupling metrics, co-deploy rateModularity (Volume VI)
Cost per orderEfficiency
Incident dataWeak points
Table 7 — Metrics for existing systems

3.4 Modelling

Quantitative models
Figure 3 — Quantitative models
Availability model example
Figure 4 — Availability model example

4How It Works Internally — Simple Models

ModelWorked calculation
Little's law8,000 req/s × 0.3 s = 2,400 concurrent requests → pods × concurrency ≥ 2,400
Utilisation vs latency (M/M/1)W = S / (1 − ρ): at ρ = 0.8, latency 5× service time; at 0.9, 10×
Serial availability0.9999 × 0.9995 × 0.9999 ≈ 99.93%
Parallel redundancy1 − (1 − 0.999)² = 99.9999% for two independent PSPs
CapacityPeak 8,000 rps ÷ 150 rps/pod at 60% CPU = 54 pods (+ headroom → 70)
Table 8 — Back-of-the-envelope models

4ADeep Dive — Choosing the Method Mix

Method mix at ShopNow
Figure 5 — Method mix at ShopNow
Stakes / uncertaintyLow uncertaintyHigh uncertainty
Low stakesChecklistSpike
High stakesScenarios + metrics + modelsScenarios + models + prototype + load test
Table 9 — Match methods to situation

5APIs / Features / Syntax

YAML
# QA scenario library entry (reused across reviews)
id: PERF-SALE-1
quality: performance
source: shoppers during flash sale
stimulus: 8,000 checkout requests/s (8x baseline)
artifact: checkout + pricing + payments
environment: normal operation, all AZs healthy
response: requests processed
measure: p99 < 400 ms, error ratio < 0.1%
priority: { business: H, difficulty: M }
evidence: [loadtest/2026-09-12, model/queueing-checkout-v2]
PYTHON
# Availability and capacity back-of-envelope model
from math import prod
serial = prod([0.9999, 0.9995, 0.9999])                 # gateway, checkout, DB
psp = 1 - (1 - 0.999) ** 2                               # two independent PSPs
print(f"composite ≈ {serial * psp:.5%}")                  # ≈ 99.93%
 
peak_rps, per_pod_rps, headroom = 8000, 150, 1.3
print("pods needed:", round(peak_rps / per_pod_rps * headroom))   # ≈ 69
TEXT
Well-Architected lens questions used in ShopNow reviews (excerpt)
REL 2: How do you plan your network topology?          → multi-AZ, endpoints, egress
REL 9: How do you back up data?                         → AWS Backup, restore tests
PERF 4: How do you select your database?                → access patterns, consistency
SEC 8: How do you protect data at rest?                 → KMS CMKs, classification
COST 6: How do you meet cost targets for new services?  → cost per order model

6Practical Examples

6.1 Queueing model changed a sizing decision

A proposal ran checkout pods at 85% CPU to save cost. The M/M/c model predicted p99 would triple at peak. The team sized for 60% and confirmed with a load test.

6.2 Checklist caught a missing timeout

The internal checklist item "every outbound call has a timeout and fallback — show config" revealed a new tax-service client with default (infinite) timeout.

6.3 Metrics revealed a modifiability problem

Deploy-together frequency 64% between orders and invoicing (Volume VI) — a metric-based evaluation found architectural debt no design review had flagged.

6.4 Worked example — scenario set for PayGrid cells

ScenarioQA
One cell's DB fails; other cells unaffectedAvailability
Partner credential stolen; blast radius = one partnerSecurity
New acquirer added in 4 weeksModifiability
Settlement for 1,800 partners in 2 hPerformance
Table 10 — Scenarios drive the evaluation

6.5 Worked example — cost model

Component₹ per 1,000 orders
Compute (checkout path)32
Database21
Observability9
Data transfer6
Total68
Table 11 — Cost as an evaluable quality

6.6 Worked example — prototype as evidence

UncertaintyPrototype
Virtual threads + HSM client behaviour2-day spike with load test → found pinning early
Kafka throughput for events at 10×Benchmark on MSK sizing
Table 12 — Prototypes turn unknowns into facts

6.7 Worked example — interview whiteboard

PromptAnswer outline
"What methods do you use to evaluate an architecture?""Four families combined by stakes and uncertainty: scenario-based evaluation with six-part QA scenarios; checklists like Well-Architected and internal lessons, asking 'show how' not 'yes/no'; metrics for existing systems — SLOs, DORA, coupling, cost per transaction, incidents; and models — Little's law, queueing, availability block diagrams, capacity and cost — validated by prototypes and load tests."
Table 13 — Structured answer

6.8 Worked example — availability model limitations

AssumptionReality check
Independent failuresTwo PSPs share a card network — correlated
Constant availabilityDegrades at peak
Instant failoverDetection + switch time
Table 14 — Models need honest assumptions

6.9 Worked example — Little's law for connection pools

InputValue
DB queries/s from checkout3,000
Mean query time8 ms
Concurrent connections needed3,000 × 0.008 = 24 (+ headroom → 40 across pods)
Table 15 — Simple sizing of shared resources

6.10 Worked example — checklist anti-patterns

Anti-patternFix
200-item checklist20 high-value items
Yes/no answersEvidence links
Never updatedAdd items from post-mortems
Table 16 — Checklists must stay alive

6.11 Worked example — simulation

UseTool
Queue backlog during PSP outageDiscrete-event simulation (SimPy)
Cache hit ratio vs memoryTrace-driven simulation from production keys
Table 17 — When closed-form models don't fit

6.12 Worked example — method selection by question

QuestionMethod
"Can we handle 10×?"Model + load test
"Did we forget anything?"Checklist
"Is this better than that?"Scenarios weighted by priority
"Is it getting worse?"Metrics trend
Table 18 — Question-driven method choice

6.13 Worked example — evidence quality ladder

EvidenceStrength
OpinionWeak
Checklist answerWeak–medium
ModelMedium
Prototype/benchmarkStrong
Production metricsStrongest (for existing)
Table 19 — Prefer stronger evidence for high-stakes claims

6.14 Worked example — method outputs in one report

SectionSource
Scenario verdictsScenario analysis
GapsChecklist
Current performanceMetrics
PredictionsModels
Table 20 — Integrated evaluation report

6.15 Worked example — Quality Attribute Workshop (QAW) output

StakeholderTop scenario raised
MarketingFlash sale of 1 lakh units sells out without oversell
OperationsBad deploy rolled back in < 5 min
SecurityAdmin actions need hardware key + audit
FinanceInfra cost per order ≤ ₹0.08
SellersListing visible in search within 10 min
Table 21 — Scenarios come from all stakeholders, not only architects

6.16 Worked example — metric thresholds as evaluation criteria

MetricThreshold for "fit"
Checkout SLO attainment (90 d)≥ 99.95%
Change failure rate≤ 10%
Co-deploy rate with any service< 10%
Cost per 1,000 orders≤ ₹80
Table 22 — Existing systems evaluated against explicit thresholds

6.17 Worked example — combining methods for "can we go multi-region?"

MethodContribution
ScenariosRegion loss, latency for South users, consistency needs
ChecklistData residency, DNS, secrets replication
MetricsCurrent cross-AZ latency, write volumes
ModelAvailability gain vs cost; replication lag
PrototypeAurora Global Database failover drill
Table 23 — High stakes → all methods

7Common Problems & Mistakes

MistakeFix
Only one methodCombine
Vague scenariosSix-part with measures
Checklist box-tickingEvidence-based answers
Models with hidden assumptionsState and test assumptions
No validation of predictionsLoad tests, prototypes
Table 24 — Mistakes and fixes

8Performance & Production Considerations

ConsiderationPractice
Model calibrationUse production service times
Load test realismReal dependencies, data distributions
Metrics qualityHistograms, SLOs (Volume VII)
Table 25 — Evidence quality

An evaluation is only as good as its evidence, so calibrate it with production data. Feed models with service times, arrival rates and failure rates measured in production rather than vendor figures or guesses, and recompute them when the system changes significantly. Make load tests realistic: use real dependencies or faithful stubs with production latency, realistic data volumes and key distributions, and traffic mixes taken from logs, because a test that keeps hitting one cached product proves nothing. Measure with histograms and percentiles, not averages, so tail behaviour is visible. After each major event, compare what the models and tests predicted with what actually happened, and record the error. Over time this calibration tells reviewers how far each kind of evidence can be trusted for the next decision.

9Architecture & Design Considerations

GuidelineDetail
Scenario libraryReuse across reviews
Living checklistsFrom incidents
Model templatesCapacity, availability, cost
Evidence linksIn ADRs
Table 26 — Design guidance

10Interview Questions & Answers

Q1L1 · BasicConcept

Name four evaluation method families.

The four families are scenario-based evaluation, checklists, metrics and modelling. Scenario-based methods, such as ATAM and the Quality Attribute Workshop, ask how the design responds to specific, prioritised situations, such as eight times normal traffic during a flash sale. Checklists, such as AWS Well-Architected and internal review lists, ask whether known good practices and failure causes have been covered. Metrics, such as SLOs, DORA keys, coupling and cost per order, show how an existing system actually performs. Models, such as Little's law, queueing, availability block diagrams and cost models, predict behaviour under conditions not yet seen. Prototypes and load tests then validate the models' assumptions.

Q2L1 · BasicConcept

What are the six parts of a QA scenario?

A quality-attribute scenario has six parts. The source is who or what generates the stimulus, such as shoppers in a flash sale. The stimulus is the event, such as 8,000 checkout requests per second. The artifact is the part of the system affected, such as checkout, pricing and payments. The environment is the condition at the time, such as normal operation with all AZs healthy. The response is what the system does, here processing the requests. The response measure makes it testable, such as p99 below 400 ms with errors under 0.1%. Without a measure, a scenario cannot be evaluated or verified.

Q3L2 · IntermediateEstimation

What is Little's law used for?

Little's law, L = λ × W, says the average number of items in a system equals the arrival rate multiplied by the average time each item spends there. It holds for any stable system regardless of the arrival distribution, which makes it the most useful sizing formula an architect has. At 8,000 requests per second and 0.3 seconds each, checkout has about 2,400 requests in flight, so pods multiplied by per-pod concurrency must exceed that. For connection pools, 3,000 queries a second at 8 ms each keeps about 24 connections busy on average, so ShopNow provisions about 40 across pods for headroom.

Q4L2 · IntermediateConcept

How do you compute serial availability?

Multiply the availabilities of every dependency in series, because a request succeeds only if all of them are up at once. A gateway at 99.99%, checkout at 99.95% and a database at 99.99% give 0.9999 × 0.9995 × 0.9999, about 99.93%. Redundant parallel parts are combined first with 1 − (1 − A)ᴺ and then included in the product as a single block. Count only required dependencies; optional features with fallbacks drop out. Use measured availability where you have it rather than vendor SLAs, and remember that the result is a model: it assumes independent failures, which is often optimistic.

Q5L3 · Senior EngineerTricky

What's the danger of availability models?

They look precise while resting on optimistic assumptions. The biggest is independence: two payment providers at 99.9% compute to six nines, but if they share a card network or a deployment, they fail together and the real figure is far lower. Models also assume instant failover, yet detection and switching take minutes, and constant availability, whereas many components degrade under peak load exactly when they matter most. Partial failures, such as slow responses rather than errors, are usually ignored. Treat the number as a comparison tool, state every assumption explicitly, add common-mode terms and validate against incident history and failover drills.

Q6L3 · Senior EngineerDesign

How should checklists be used?

As a short list of high-value, evidence-backed questions that capture real lessons, not a box-ticking exercise. Keep around 20 items rather than 200, and derive them from incidents and post-mortems, so each one guards against something that has actually hurt you. Phrase items as 'show how' rather than yes or no, for example requiring the configuration that proves every outbound call has a timeout and fallback, and ask for an evidence link. ShopNow's checklist caught a new tax-service client with an infinite default timeout this way. Update the list after every significant incident, and retire items the platform now enforces automatically.

Q7L4 · Technical ArchitectTrade-off

When do you prototype?

When uncertainty is high and the stakes justify the cost of finding out. If a decision is expensive to reverse and nobody can confidently predict how a technology or design will behave, a short, time-boxed spike with a load test turns opinion into evidence. ShopNow spent two days testing virtual threads with an HSM client and found thread pinning early, before the design depended on it. Low-stakes or well-understood decisions do not need a prototype; a checklist or a model is enough. Define the question, the success criteria and the time box upfront, and throw the prototype code away afterwards rather than shipping it.

Q8L4 · Technical ArchitectInternals

Why does utilisation matter for latency?

Because waiting time grows non-linearly as a resource approaches saturation. In a simple M/M/1 queue, response time is S divided by one minus ρ, where S is service time and ρ is utilisation: at 50% utilisation latency is twice the service time, at 80% five times and at 90% ten times. Small bursts above average load create queues that take a long time to drain. That is why ShopNow sizes checkout pods for about 60% CPU at peak rather than 85%; the model predicted p99 would triple at the higher figure, and a load test confirmed it. Shared resources such as pools need the same headroom.

Q9L5 · Solution ArchitectDesign

How do you choose methods?

Match methods to the stakes and the uncertainty of the decision. Low stakes and low uncertainty need only a checklist. Low stakes with high uncertainty justify a quick spike. High-stakes decisions combine scenarios, metrics and models, and when uncertainty is also high, add prototypes and load tests. It also helps to start from the question: whether we can handle ten times the load needs a model plus a load test, whether we forgot anything needs a checklist, whether one option beats another needs weighted scenarios, and whether things are getting worse needs metric trends. ShopNow's multi-region decision used all of them, including an Aurora Global Database failover drill.

Q10L5 · Solution ArchitectConcept

What is the strongest evidence?

For an existing system, production metrics are the strongest evidence, because they measure real behaviour under real load, data and failures, such as 90-day SLO attainment, change failure rate and cost per order. For a new design, prototypes, benchmarks and realistic load tests are strongest, because they test the assumptions that models rely on. Models are medium-strength evidence, while checklist answers and opinions are weak. The rule is to demand stronger evidence for higher-stakes claims and to make the evidence explicit, by linking load-test reports, models and dashboards in the ADR, so reviewers can judge the claim rather than simply trusting the presenter.

Test your knowledge on this topic →Flashcards from this topic's 10 questions, filtered by level and type.

Free question pack

Get 100 free Core Java interview questions

Subscribe for the Book 1 question pack (PDF, every answer explained) and new tutorials once a week. No spam, unsubscribe anytime. What is in the pack?

Almost done! Check your inbox and click the confirmation link. Your download link arrives as soon as you confirm.