Scalability and elasticity guidance
Use a changing workload to distinguish acceptable capacity, scaling potential and timely adjustment. This guide supplies a hypothetical project-information read service, not an observed TDP endpoint or this documentation portal.
Document content and editorial review: approved on 2026-11-16 by Codex under the repository user’s delegated editorial review. Approval covers the complete explanation and its recorded source and example limits; semantic, mapping, lifecycle, applicability and target states remain independent.
All observations below are synthetic and all criteria illustrative and unapproved. No experiment, production investigation, cloud selection or budget commitment is reported.
Conceptual overview
%%{init: {'theme':'base','fontFamily':'Arial, sans-serif','themeVariables':{'lineColor':'#8792a2','textColor':'#f8fafc','nodeTextColor':'#f8fafc','primaryTextColor':'#f8fafc','arrowheadColor':'#8792a2','dropShadow':'none','useGradient':false,'edgeLabelBackground':'#252b36','fontSize':'16px'}}}%%
flowchart TD
accTitle: Evaluate scaling through a changing workload
accDescr: A demand change prompts a scaling tactic that adjusts available resources. Evaluate capacity and service outcomes during the transition and after safe release, together with costs. Arrows describe evaluation, not membership or observed architecture.
D["Demand rises and falls"]:::context -->|prompts| T["Scaling tactic"]:::technique
T -->|adjusts| C["Available resources"]:::context
C -->|evaluate| R["Capacity and transition outcomes"]:::measure
R -->|weigh with| E["Cost and pending owner decision"]:::context
classDef context fill:#343c4b,color:#f8fafc,stroke:#8792a2,stroke-width:2px
classDef technique fill:#4b3049,color:#f8fafc,stroke:#8792a2,stroke-width:2px
classDef measure fill:#503824,color:#f8fafc,stroke:#8792a2,stroke-width:2pxText equivalent: Demand changes prompt a scaling tactic that adjusts resources. Evaluate capacity and transition outcomes, then weigh them with cost and owner decisions. Arrows show evaluation relationships, not domain membership. Provenance: local synthesis of the cited sources and hypothetical G05; no runtime topology is shown.
Sources and distinctions
NIST SP 800-145, final September 2011, section 2, describes rapid provisioning and release as a cloud characteristic, with automation in some cases. That scope does not establish a universal elasticity definition. Microsoft Autoscaling, public body consulted 2026-11-16, distinguishes horizontal/vertical scaling, readiness delay, safe removal, dependency limits and cost. Its Azure examples select no platform for TDP. Extraction contained an authorization banner; only the visible body is claimed consulted.
SEI CMU/SEI-2003-TR-004, Bachmann, Bass and Klein, 2003, sections 2.1–2.2, supplies the six-field scenario method and distinguishes tactics from response requirements. These primary passages were inspected on 2026-11-16; a historical method proves no TDP result.
The ISO/IEC 25010:2023 catalogue, consulted 2026-11-16, lists published edition 2. Full definitions were not accessed. The proposed Scalability/Flexibility classification comes from the bounded secondary research, not a verified full-standard hierarchy. arc42 Scalability and Elasticity, consulted the same day, provide related readings; their ISO and paper quotations remain attributed secondary material. Q42 dimensions are overlapping reading tags, not ISO parents. Neither synonymy nor complete standard coverage is claimed.
Capacity asks how much demand meets constraints at a configuration; scalability compares that capacity across resource configurations; elasticity asks whether adjustment follows demand adequately and promptly. Scaling is a tactic. Changing a scaling policy relates to the broader proposed Flexibility question, evaluated through G09. G05 does not establish that concept’s meaning or its equivalence to ISO’s Flexibility category. Navigation establishes no semantic parentage, lifecycle inheritance or cardinality.
G05 scenario
This extends the hypothetical G01 read-service boundary using the existing six-field template. Every target and observation in G05 is illustrative and unapproved.
| SEI field | Proposed condition |
|---|---|
| Stimulus source | A simulated client workload with a correctness and authorization oracle. |
| Stimulus | Five minutes at 40 requests/s, ten minutes at 80, then five minutes at 40. Replay the same timed arrival trace for every candidate. |
| Environment | Fixed synthetic dataset, equivalent dependency configuration, two initial instances and at most four. Record cold starts and resource sizes; repeat under dependency variation. |
| Artifact | Hypothetical project-information read service, adjustment mechanism and dependencies; client dispatch to complete response receipt is the timing boundary. |
| Response | Return correct authorized results or record errors; provide adequate capacity within bounds and release excess resources without losing work after demand falls. |
| Response measure | In each one-minute spike window, success p95 ≤ 500 ms and errors < 1% of arrivals. Four instances ready within two minutes of the rise; return to two within five minutes of the fall. Check baseline and recovery for correct completion and safe draining. |
Proposed method, not an executed test: compare a fixed baseline with adjustment candidates. Record offered and arrived demand, individual timings, correct completions, errors, retries, rejections, timeouts and unfinished work. Validate the generator; a shortfall in arrivals cannot count as handled demand. Record requested and ready resources separately, dependency saturation and provisioning/draining delays. Reconcile arrivals, outcomes and in-flight work at both edges of every measurement window, including baseline and recovery. Attribute errors and terminal outcomes to their arrival cohort; observe that cohort to completion or the declared timeout. Count incorrect/unauthorized results as errors. Report success-only percentiles alongside errors and unfinished work, never as a substitute for them.
G05 worked comparison
Synthetic spike population: 80 × 600 = 48,000 arrivals. For this worked arithmetic only, offered and arrived counts agree, all work reaches a terminal outcome within its one-minute arrival window, and none crosses a window edge. Ten one-minute windows each contain 4,800 arrivals. Real evaluations must retain edge-crossing work rather than assume it away.
| Measure | Fixed two instances | Late adjustment | Earlier adjustment |
|---|---|---|---|
| Correct completions / errors over spike | 47,040 / 960 | 47,760 / 240 | 47,760 / 240 |
| Errors in each of ten windows | 96 / 4,800 = 2% | 24 / 4,800 = 0.5% | 24 / 4,800 = 0.5% |
| Worst one-minute success p95 | 900 ms | 650 ms during startup | 450 ms |
| Four instances ready after rise | Never | 3 minutes | 90 seconds |
| Two instances after fall | Already two | 4 minutes | 4 minutes |
| Baseline/recovery assumption | Correct authorized completion; no lost or unfinished work | Same; safe draining | Same; safe draining |
| Joint illustrative result | Fail: timing and errors | Fail: timing and readiness | Pass under the stated synthetic assumptions |
47,040 + 960 = 48,000 and 960 / 48,000 = 2%; 47,760 + 240 = 48,000 and 240 / 48,000 = 0.5%. The explicit per-window distribution, not that total, supports the window error verdicts. The worst-window percentile bounds every represented success window; it excludes errors. The earlier candidate passes only because its readiness, release, timing, correctness and each error window all satisfy this illustration. No measured reliability or production guarantee follows.
Example: eventual capacity arrives too late. The late candidate reaches four instances, but its 650 ms startup p95 exceeds 500 ms and its three-minute readiness exceeds two minutes. A 0.5% total error fraction and acceptable release time cannot compensate for those failures. Earlier provisioning may cost more; the table supplies no total-cost saving.
Capacity limits
Separately investigate scalability with controlled steady resource configurations. Synthetic example: at two equal-sized instances, 40 requests/s passes the declared joint constraints and 50 fails; at four, 70 passes and 80 fails. Hold data, dependency configuration and criteria constant, and state windows, warm-up and per-load outcomes before interpreting a sweep. These are illustrative test outcomes, not G01 observations or measured TDP data.
For each synthetic steady run, hold the selected rate for 600 s after a five-minute warm-up, using G05’s timing boundary, arrival-cohort accounting and fixed data/dependencies. Here the only service thresholds are success p95 ≤ 500 ms and errors < 1% in every one-minute window; no CPU or cost threshold is assumed. Assume complete terminal accounting in each window. The following worst-window values make each synthetic verdict explicit:
| Equal-sized instances | Arrivals/s | Worst success p95 | Error fraction in every window | Result |
|---|---|---|---|---|
| 2 | 40 | 400 ms | 0.5% | Pass |
| 2 | 50 | 650 ms | 2% | Fail |
| 4 | 70 | 450 ms | 0.5% | Pass |
| 4 | 80 | 600 ms | 2% | Fail |
Highest tested passing rates rise by 70 / 40 = 1.75 while instance count doubles. Untested intermediate rates leave exact capacities unknown. A shared bottleneck can cap further gains; reduced-resource configurations need their own tests. Neither a linear scaling law nor an approved operating point follows. Use Capacity’s method and headroom limits.
A configured four-instance ceiling, service quota or resource-size maximum is a bound on a mechanism. Workload capacity needs units, workload mix, correctness, service constraints, configuration and observation window. A queue can conceal insufficient capacity unless backlog and completion delay are accounted for.
Tactics and trade-offs
| Tactic | Benefit, applicability and prerequisites | Limits, effort, interactions and verification |
|---|---|---|
| Horizontal: add/remove instances | Can distribute partitionable work when routing, state and dependency connections support replicas. | Coordination, skew, warm-up and shared dependencies can limit gains. Implementation and operations must handle readiness and drain work before removal. Compare controlled capacity sweeps and G05; reject incorrect results, lost work or dependency overload. |
| Vertical: change resources per instance | Can expand capacity where larger resources exist and the bottleneck responds to them, without adding replicas. | Size ceilings, serial work and restart/interruption can erase benefit. Engineering must handle transitions and recovery; larger sizes cost more. Compare equivalent workloads and account for interruption and resource balance; reject a joint-constraint failure. |
| Elastic scaling: automatic adjustment | Can respond to demand without continuous operator action when signals, policy bounds and provisioning mechanisms are suitable. | Metric lag, cooldown, oscillation, quotas, cold starts and failed provisioning can miss a short spike. Tuning, monitoring and least-privilege controller operation cost effort. Exercise rise/fall, unavailable metrics, failed provisioning and safe scale-in; reject late capacity or unsafe release. |
More resources do not remove the need for performance constraints, correctness and security controls or recovery planning. Keep those checks during startup, dependency failure and scale-in. These are conditional interactions, not recommended changes to an observed TDP deployment.
Cost and prioritization
Business value could be fewer delayed or failed requests during a surge; overprovisioning can waste resources and underprovisioning can lose useful work. Compare resource sizes and instance-minutes, dependent services, correct useful completions, operational effort and the complete baseline/spike/recovery window. Ready-instance time can differ from billed provisioning time. Equal error counts do not establish equal cost; no price or quantified saving is claimed here.
Apply the existing business-value and technical-risk rubric. The owner must decide whether the journey matters, its demand envelope, acceptable transition delay, safe headroom and cost boundary. Applicability, priority, targets, budgets and named owners remain pending. See executive decisions and technical evaluation.