@radicaltools/mcp 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +41 -23
  2. package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
  3. package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
  14. package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
  17. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
  19. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  20. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  21. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  22. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  23. package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
  24. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  25. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
  26. package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
  27. package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
  28. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  29. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  30. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  31. package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
  32. package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
  33. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  34. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  35. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
  36. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  37. package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
  38. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
  39. package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
  40. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
  41. package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
  42. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  43. package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
  44. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  45. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
  46. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  47. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  48. package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
  49. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  50. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  51. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  52. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
  53. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  54. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  55. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
  56. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
  57. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  58. package/dist/index.js +10321 -3964
  59. package/package.json +1 -1
  60. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  61. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  62. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  63. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  64. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  65. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  66. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  67. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  68. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  69. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  70. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  71. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  72. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  73. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  74. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  75. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  76. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  77. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  78. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  79. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  80. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  81. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  82. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  83. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  84. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  85. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  86. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  87. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  88. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  89. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  90. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  91. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  92. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  93. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  94. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  95. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  96. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  97. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  98. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  99. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  100. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  101. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  102. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  103. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  104. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  105. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  106. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  107. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  108. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  109. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  110. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  111. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  112. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  113. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  114. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  115. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  116. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  117. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  118. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  119. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  120. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  121. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  122. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  123. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  124. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  125. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  126. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  127. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  128. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  129. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  130. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  131. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  132. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  133. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  134. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  135. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  136. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  137. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  138. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  139. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  140. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  141. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  142. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  143. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  144. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  145. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  146. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  147. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  148. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  149. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  150. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  151. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  152. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  153. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  154. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  155. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  156. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  157. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  158. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  159. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  160. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  161. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  162. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  163. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  164. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  165. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  166. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  167. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  168. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  169. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  170. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  171. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  172. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  173. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  174. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  175. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  176. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  177. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  178. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  179. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  180. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  181. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  182. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  183. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  184. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  185. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  186. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  187. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -0,0 +1,915 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-capacity",
4
+ "category": "concern",
5
+ "name": "Capacity and scaling",
6
+ "description": "How much load it carries: the expected load and its peak, the latency budget under load, how it scales to meet it, what it does when overloaded, and how often the capacity is proven with a load test.",
7
+ "tags": [
8
+ "reliability",
9
+ "performance",
10
+ "capacity",
11
+ "scaling",
12
+ "autoscaling",
13
+ "load-shedding",
14
+ "backpressure",
15
+ "load-testing"
16
+ ],
17
+ "requiredMetamodel": "c4-ddd-governance-builtin",
18
+ "concern": {
19
+ "id": "capacity",
20
+ "trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\" OR type = \"database\" OR type = \"queue\") AND external != true",
21
+ "why": "these elements run on capacity of their own (instances, connections, storage, throughput), so the load they must carry, how they scale and what they do when overloaded has to be decided.",
22
+ "group": "operability"
23
+ },
24
+ "sources": [
25
+ {
26
+ "title": "Google SRE book, chapter 1: Introduction (capacity planning)",
27
+ "url": "https://sre.google/sre-book/introduction/"
28
+ },
29
+ {
30
+ "title": "Google SRE book, chapter 21: Handling Overload",
31
+ "url": "https://sre.google/sre-book/handling-overload/"
32
+ },
33
+ {
34
+ "title": "Google SRE book, chapter 22: Addressing Cascading Failures",
35
+ "url": "https://sre.google/sre-book/addressing-cascading-failures/"
36
+ },
37
+ {
38
+ "title": "Amazon Builders' Library: Using load shedding to avoid overload",
39
+ "url": "https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/"
40
+ },
41
+ {
42
+ "title": "AWS Well-Architected Framework, Reliability Pillar",
43
+ "url": "https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/welcome.html"
44
+ },
45
+ {
46
+ "title": "The Twelve-Factor App, VIII. Concurrency",
47
+ "url": "https://12factor.net/concurrency"
48
+ },
49
+ {
50
+ "title": "Grafana k6 documentation",
51
+ "url": "https://grafana.com/docs/k6/latest/"
52
+ },
53
+ {
54
+ "title": "Kubernetes documentation: Horizontal Pod Autoscaling",
55
+ "url": "https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/"
56
+ },
57
+ {
58
+ "title": "RabbitMQ documentation: Queue Length Limit",
59
+ "url": "https://www.rabbitmq.com/docs/maxlength"
60
+ },
61
+ {
62
+ "title": "AWS Lambda documentation: function metrics",
63
+ "url": "https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html"
64
+ }
65
+ ],
66
+ "templateParams": [
67
+ {
68
+ "key": "SCALING",
69
+ "title": "Scaling",
70
+ "label": "How does it scale to the peak?",
71
+ "hint": "This decides whether capacity follows the load by itself, and what the element must be like for that (stateless, quick to start).",
72
+ "defaultValue": "horizontal",
73
+ "options": [
74
+ {
75
+ "value": "fixed",
76
+ "label": "a fixed fleet sized for the peak",
77
+ "description": "A set number of instances (or one bigger machine) provisioned for the peak with headroom, changed by a reviewed change. Pick it when the load is predictable within a factor of 2, the element keeps state that is hard to split, or the load is small enough that autoscaling saves little."
78
+ },
79
+ {
80
+ "value": "horizontal",
81
+ "label": "horizontal autoscaling",
82
+ "description": "Stateless instances added and removed by the platform on CPU, request rate or queue length (Kubernetes HPA or KEDA, ECS Service Auto Scaling, VM scale sets). Pick it when the load varies by more than 2 times over a day or a season and the element keeps no state of its own."
83
+ },
84
+ {
85
+ "value": "serverless",
86
+ "label": "serverless functions or containers",
87
+ "description": "The platform starts an instance per demand, down to zero (AWS Lambda, Google Cloud Run, Azure Functions or Container Apps). Pick it for spiky or mostly idle traffic, requests that finish in seconds, and when a cold start fits the latency target."
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "key": "OVERLOAD",
93
+ "title": "Overload",
94
+ "label": "What does it do when more arrives than it can handle?",
95
+ "hint": "Scaling takes minutes and has a ceiling. Without a rule for overload, everything slows down until everything times out.",
96
+ "defaultValue": "shed",
97
+ "options": [
98
+ {
99
+ "value": "shed",
100
+ "label": "load shedding",
101
+ "description": "Above a concurrency limit it refuses new requests at once (503 with Retry-After), lowest priority first, so those it accepts stay fast. Pick it for synchronous APIs and pages where a caller waits and a fast \"try again\" beats a slow timeout."
102
+ },
103
+ {
104
+ "value": "backpressure",
105
+ "label": "a bounded queue with backpressure",
106
+ "description": "Work goes into a bounded queue processed at the rate the workers sustain; when the queue is full, producers are refused. Pick it when the work can be done later (orders, e-mails, imports) and the caller does not wait for the result."
107
+ },
108
+ {
109
+ "value": "both",
110
+ "label": "load shedding for requests and a bounded queue for work",
111
+ "description": "The synchronous part sheds load, the asynchronous part queues it with backpressure. Pick it when the element both answers callers and processes work in the background."
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "key": "LOADTEST",
117
+ "title": "Load tests",
118
+ "label": "When is the capacity proven with a load test?",
119
+ "hint": "Capacity estimates are wrong until measured; regressions in performance arrive with ordinary changes.",
120
+ "defaultValue": "release",
121
+ "options": [
122
+ {
123
+ "value": "release",
124
+ "label": "a load test of every release candidate",
125
+ "description": "The pipeline runs a load test at the peak against a production-like environment and stops the release on a regression. Pick it when releases are frequent, an environment of production size is affordable, and performance regressions have reached users before."
126
+ },
127
+ {
128
+ "value": "scheduled",
129
+ "label": "a monthly load test and one before each peak event",
130
+ "description": "A full-scale test every month and 4 weeks before each announced peak event, finding the breaking point. Pick it when a production-size environment is costly to keep, or releases rarely change the hot paths."
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "key": "EXPECTED_RPS",
136
+ "label": "Expected load in a normal busy hour (requests per second)",
137
+ "defaultValue": "100",
138
+ "type": "number"
139
+ },
140
+ {
141
+ "key": "PEAK_FACTOR",
142
+ "label": "How many times that load is the peak (a sale day, a campaign)?",
143
+ "defaultValue": "5",
144
+ "type": "number"
145
+ },
146
+ {
147
+ "key": "P95_MS",
148
+ "label": "Response time at the 95th percentile under load (ms)",
149
+ "defaultValue": "500",
150
+ "type": "number"
151
+ },
152
+ {
153
+ "key": "CONCURRENCY_CAP",
154
+ "label": "Most concurrent connections the database (or the weakest dependency) accepts from this element. Only with horizontal or serverless scaling",
155
+ "defaultValue": "200",
156
+ "type": "number"
157
+ }
158
+ ]
159
+ },
160
+ "nodes": [
161
+ {
162
+ "id": "need",
163
+ "type": "need",
164
+ "label": "Carries the load it is given",
165
+ "x": 0,
166
+ "y": 0,
167
+ "kind": "brief",
168
+ "source": "Hub concern pack: Capacity and scaling",
169
+ "description": "The element serves a load that changes over the day and peaks on known and unknown occasions. It must carry the peak at an acceptable response time without paying for the peak all year, must not collapse when more arrives than it can handle, must not overwhelm what it depends on, and its real limits must be known before users find them."
170
+ },
171
+ {
172
+ "id": "req-peak",
173
+ "type": "requirement",
174
+ "label": "Peak load carried",
175
+ "x": 260,
176
+ "y": 0,
177
+ "ears_type": "ubiquitous",
178
+ "action": "serve {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second, sustained for 15 minutes, with a 95th percentile response time under {{P95_MS}} ms and fewer than 0.1 % errors",
179
+ "rationale": "A service sized for the average fails at the peak; a load figure with a latency and error bound is what a load test can check (AWS Well-Architected Reliability Pillar, REL 7: design to scale with demand)."
180
+ },
181
+ {
182
+ "id": "req-headroom",
183
+ "type": "requirement",
184
+ "label": "Headroom kept",
185
+ "x": 260,
186
+ "y": 130,
187
+ "ears_type": "state-driven",
188
+ "precondition": "the busiest hour of the last 7 days used more than 70 % of the provisioned CPU or memory",
189
+ "action": "raise a capacity alert that opens a ticket, so that the team raises the provisioned capacity by a reviewed change before the next expected peak",
190
+ "rationale": "A fixed fleet does not follow the load; 30 % headroom at the observed peak leaves room for growth and for an instance lost (Google SRE book, chapter 1, capacity planning).",
191
+ "hubWhen": {
192
+ "SCALING": [
193
+ "fixed"
194
+ ]
195
+ }
196
+ },
197
+ {
198
+ "id": "req-autoscale",
199
+ "type": "requirement",
200
+ "label": "Scales out in time",
201
+ "x": 260,
202
+ "y": 260,
203
+ "ears_type": "event-driven",
204
+ "trigger": "load rises from {{EXPECTED_RPS}} to {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second within 5 minutes",
205
+ "action": "add instances, ready to serve within 3 minutes, so that the 95th percentile stays under {{P95_MS}} ms through the ramp, and remove them only after 15 minutes below the scaling target",
206
+ "rationale": "Autoscaling helps only if new instances are ready before the queue grows; a slow scale-in avoids flapping (Kubernetes documentation, Horizontal Pod Autoscaling: stabilization window; AWS Well-Architected Reliability Pillar, REL 7).",
207
+ "hubWhen": {
208
+ "SCALING": [
209
+ "horizontal"
210
+ ]
211
+ }
212
+ },
213
+ {
214
+ "id": "req-cold-start",
215
+ "type": "requirement",
216
+ "label": "Cold starts bounded",
217
+ "x": 260,
218
+ "y": 390,
219
+ "ears_type": "event-driven",
220
+ "trigger": "a request arrives and no warm instance is free",
221
+ "action": "answer it within 1 second including the start, keeping enough instances warm (provisioned concurrency or minimum instances) for {{EXPECTED_RPS}} requests per second",
222
+ "rationale": "Cold starts land on users at the start of every spike; warm capacity for the normal load keeps them to the burst only.",
223
+ "hubWhen": {
224
+ "SCALING": [
225
+ "serverless"
226
+ ]
227
+ }
228
+ },
229
+ {
230
+ "id": "req-downstream",
231
+ "type": "requirement",
232
+ "label": "Dependencies not flooded",
233
+ "x": 260,
234
+ "y": 520,
235
+ "ears_type": "unwanted-behaviour",
236
+ "unwanted_condition": "it scales out faster than its database or another dependency accepts connections",
237
+ "action": "keep its connections to the dependency at or below {{CONCURRENCY_CAP}}, the dependency's limit for this element, and reach the database through a connection pooler (Amazon RDS Proxy, PgBouncer)",
238
+ "rationale": "An element that scales to a thousand instances opens a thousand connections; the database falls over first (Amazon Builders' Library, load shedding; Google SRE book, chapter 22).",
239
+ "hubWhen": {
240
+ "SCALING": [
241
+ "horizontal",
242
+ "serverless"
243
+ ]
244
+ }
245
+ },
246
+ {
247
+ "id": "req-shed",
248
+ "type": "requirement",
249
+ "label": "Excess load shed",
250
+ "x": 260,
251
+ "y": 650,
252
+ "ears_type": "unwanted-behaviour",
253
+ "unwanted_condition": "requests in flight exceed its concurrency limit, or the oldest waiting request has waited longer than {{P95_MS}} ms",
254
+ "action": "refuse new requests at once with 503 and a Retry-After header, lowest priority first (health checks and paying customers last), so that the requests it accepts keep a 95th percentile under {{P95_MS}} ms",
255
+ "rationale": "Refusing early keeps the accepted work fast; queueing everything makes every request slow and invites retries that deepen the overload (Google SRE book, chapter 21; Amazon Builders' Library).",
256
+ "hubWhen": {
257
+ "OVERLOAD": [
258
+ "shed",
259
+ "both"
260
+ ]
261
+ }
262
+ },
263
+ {
264
+ "id": "req-backpressure",
265
+ "type": "requirement",
266
+ "label": "Backpressure on producers",
267
+ "x": 260,
268
+ "y": 780,
269
+ "ears_type": "unwanted-behaviour",
270
+ "unwanted_condition": "its work queue reaches its bound because the workers fall behind",
271
+ "action": "refuse new work with 429 and a Retry-After header, never drop work already accepted, send work that fails repeatedly to a dead-letter queue that is watched, and keep the backlog from growing for more than 15 minutes in a row",
272
+ "rationale": "An unbounded queue hides overload until memory or the wait runs out; a bound pushes the pressure back to the producer, who can wait or retry (Google SRE book, chapter 22).",
273
+ "hubWhen": {
274
+ "OVERLOAD": [
275
+ "backpressure",
276
+ "both"
277
+ ]
278
+ }
279
+ },
280
+ {
281
+ "id": "req-loadtest-release",
282
+ "type": "requirement",
283
+ "label": "Release load-tested",
284
+ "x": 260,
285
+ "y": 910,
286
+ "ears_type": "event-driven",
287
+ "trigger": "a release candidate is built",
288
+ "action": "run a load test at {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second for 15 minutes against a production-like environment, and stop the release when the 95th percentile exceeds {{P95_MS}} ms or errors exceed 0.1 %",
289
+ "rationale": "Performance regressions arrive with ordinary changes; a gate on every candidate finds them before users do.",
290
+ "hubWhen": {
291
+ "LOADTEST": [
292
+ "release"
293
+ ]
294
+ }
295
+ },
296
+ {
297
+ "id": "req-loadtest-scheduled",
298
+ "type": "requirement",
299
+ "label": "Capacity tested monthly",
300
+ "x": 260,
301
+ "y": 1040,
302
+ "ears_type": "event-driven",
303
+ "trigger": "30 days have passed since the last load test, or an announced peak event is 4 weeks away",
304
+ "action": "run a load test that ramps past {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second up to 3 times the peak, fail it when the 95th percentile exceeds {{P95_MS}} ms before 1.5 times the peak, and record the band of load where it broke",
305
+ "rationale": "Knowing the breaking point, and keeping it 50 % above the peak, leaves time to act before a peak event instead of during it.",
306
+ "hubWhen": {
307
+ "LOADTEST": [
308
+ "scheduled"
309
+ ]
310
+ }
311
+ },
312
+ {
313
+ "id": "sc-peak",
314
+ "type": "scenario",
315
+ "label": "Peak load test",
316
+ "x": 520,
317
+ "y": 0,
318
+ "given": "a production-like environment",
319
+ "when": "load rises to {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second and holds for 15 minutes",
320
+ "then": "the 95th percentile stays under {{P95_MS}} ms and errors under 0.1 %"
321
+ },
322
+ {
323
+ "id": "sc-headroom",
324
+ "type": "scenario",
325
+ "label": "Headroom alert",
326
+ "x": 520,
327
+ "y": 130,
328
+ "given": "a fixed fleet",
329
+ "when": "the weekly busiest hour uses 75 % of its CPU",
330
+ "then": "an alert opens a capacity ticket, and the change is merged before the next expected peak",
331
+ "hubWhen": {
332
+ "SCALING": [
333
+ "fixed"
334
+ ]
335
+ }
336
+ },
337
+ {
338
+ "id": "sc-autoscale",
339
+ "type": "scenario",
340
+ "label": "Ramp to peak",
341
+ "x": 520,
342
+ "y": 260,
343
+ "given": "the element at {{EXPECTED_RPS}} requests per second with a scale-down stabilization of 15 minutes",
344
+ "when": "load ramps to {{PEAK_FACTOR}} times that in 5 minutes",
345
+ "then": "the 95th percentile stays under {{P95_MS}} ms through the ramp",
346
+ "hubWhen": {
347
+ "SCALING": [
348
+ "horizontal"
349
+ ]
350
+ }
351
+ },
352
+ {
353
+ "id": "sc-cold-start",
354
+ "type": "scenario",
355
+ "label": "Burst after idle",
356
+ "x": 520,
357
+ "y": 390,
358
+ "given": "the element idle at its minimum instances",
359
+ "when": "a burst of {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second arrives",
360
+ "then": "every request is answered within 1 second",
361
+ "hubWhen": {
362
+ "SCALING": [
363
+ "serverless"
364
+ ]
365
+ }
366
+ },
367
+ {
368
+ "id": "sc-downstream",
369
+ "type": "scenario",
370
+ "label": "Connections capped",
371
+ "x": 520,
372
+ "y": 520,
373
+ "given": "a database that accepts {{CONCURRENCY_CAP}} connections from the element",
374
+ "when": "load would scale the element beyond that",
375
+ "then": "connections stay at or below {{CONCURRENCY_CAP}} and excess requests are throttled, not failed by the database",
376
+ "hubWhen": {
377
+ "SCALING": [
378
+ "horizontal",
379
+ "serverless"
380
+ ]
381
+ }
382
+ },
383
+ {
384
+ "id": "sc-shed",
385
+ "type": "scenario",
386
+ "label": "Twice the peak",
387
+ "x": 520,
388
+ "y": 650,
389
+ "given": "the element at full capacity",
390
+ "when": "load reaches 2 times {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second",
391
+ "then": "excess requests get 503 within 50 ms and accepted ones keep a 95th percentile under {{P95_MS}} ms",
392
+ "hubWhen": {
393
+ "OVERLOAD": [
394
+ "shed",
395
+ "both"
396
+ ]
397
+ }
398
+ },
399
+ {
400
+ "id": "sc-backpressure",
401
+ "type": "scenario",
402
+ "label": "Queue full",
403
+ "x": 520,
404
+ "y": 780,
405
+ "given": "workers slower than the producers",
406
+ "when": "the queue reaches its bound",
407
+ "then": "producers get 429 with Retry-After, no accepted message is lost, and an alert fires if the backlog still grows after 15 minutes",
408
+ "hubWhen": {
409
+ "OVERLOAD": [
410
+ "backpressure",
411
+ "both"
412
+ ]
413
+ }
414
+ },
415
+ {
416
+ "id": "sc-loadtest-release",
417
+ "type": "scenario",
418
+ "label": "Regression stopped",
419
+ "x": 520,
420
+ "y": 910,
421
+ "given": "a release candidate that makes the hot path 50 % slower",
422
+ "when": "the pipeline runs its load test",
423
+ "then": "the test fails on the {{P95_MS}} ms threshold and the release does not deploy",
424
+ "hubWhen": {
425
+ "LOADTEST": [
426
+ "release"
427
+ ]
428
+ }
429
+ },
430
+ {
431
+ "id": "sc-loadtest-scheduled",
432
+ "type": "scenario",
433
+ "label": "Breaking point found",
434
+ "x": 520,
435
+ "y": 1040,
436
+ "given": "a production-size environment",
437
+ "when": "the monthly test ramps the load to 3 times the peak",
438
+ "then": "the 95th percentile held to 1.5 times the peak, and the band where it broke is recorded",
439
+ "hubWhen": {
440
+ "LOADTEST": [
441
+ "scheduled"
442
+ ]
443
+ }
444
+ },
445
+ {
446
+ "id": "adr-fixed",
447
+ "type": "adr",
448
+ "label": "Fixed fleet sized for the peak",
449
+ "x": 780,
450
+ "y": 0,
451
+ "concern": "capacity",
452
+ "status": "accepted",
453
+ "date": "",
454
+ "context": "This element runs on capacity someone has to provide. The forces: load is not flat (a busy hour, a campaign, a sale day can be several times the usual), and a service sized for the average falls over at the peak; an overloaded service does not slow down gracefully, it queues, times out and retries until it serves nobody (a cascading failure); adding instances takes minutes and only helps when the element keeps no state of its own; whatever it calls (a database, a partner) has limits of its own that scaling out can break; idle capacity costs money every hour; and the only way to know the breaking point is to measure it before users find it. The snippets of this pack assume the element is order-api in the shop namespace, with Prometheus, cAdvisor and kube-state-metrics on Kubernetes; rename them for yours.",
455
+ "decision": "The element runs a fixed number of instances sized so that the peak ({{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second) uses at most 70 % of CPU, memory and connection pools, and losing one instance still carries it (N+1). Capacity changes by a reviewed change in the infrastructure code (Terraform, Pulumi, Helm values), driven by a headroom alert on the weekly busiest hour that opens a ticket. Overload: {{OVERLOAD}}. Load tests: {{LOADTEST}}. Choose bigger instances over more of them only while the element keeps state that cannot be split; otherwise add instances.",
456
+ "consequences": "• Predictable cost and behaviour; nothing scales by surprise.\n• Paying for the peak all the time: at a peak factor of {{PEAK_FACTOR}}, most of the capacity idles most of the day.\n• An unexpected peak above the headroom is handled only by the overload rule, until someone adds capacity.\n• Growing one instance has a ceiling: the largest instance type.",
457
+ "alternatives": "1. Horizontal autoscaling: follows the load and saves idle cost, but the element must be stateless and start fast.\n2. Serverless: no capacity to plan, but cold starts and per-request cost at steady high load.",
458
+ "hubWhen": {
459
+ "SCALING": [
460
+ "fixed"
461
+ ]
462
+ }
463
+ },
464
+ {
465
+ "id": "adr-autoscale",
466
+ "type": "adr",
467
+ "label": "Horizontal autoscaling",
468
+ "x": 780,
469
+ "y": 130,
470
+ "concern": "capacity",
471
+ "status": "accepted",
472
+ "date": "",
473
+ "context": "This element runs on capacity someone has to provide. The forces: load is not flat (a busy hour, a campaign, a sale day can be several times the usual), and a service sized for the average falls over at the peak; an overloaded service does not slow down gracefully, it queues, times out and retries until it serves nobody (a cascading failure); adding instances takes minutes and only helps when the element keeps no state of its own; whatever it calls (a database, a partner) has limits of its own that scaling out can break; idle capacity costs money every hour; and the only way to know the breaking point is to measure it before users find it. The snippets of this pack assume the element is order-api in the shop namespace, with Prometheus, cAdvisor and kube-state-metrics on Kubernetes; rename them for yours.",
474
+ "decision": "The element runs stateless instances that the platform adds and removes: on Kubernetes, a HorizontalPodAutoscaler on CPU or on request rate (through KEDA or the Prometheus Adapter); elsewhere ECS Service Auto Scaling, Azure VM scale sets or Container Apps scale rules. Minimum replicas (at least 2) carry {{EXPECTED_RPS}} requests per second with one zone lost; maximum replicas carry 1.5 times the peak ({{PEAK_FACTOR}} times the normal load) and, times the pool size per instance, stay within the {{CONCURRENCY_CAP}} connections the database accepts; scale-in waits 15 minutes. Instances start serving within 60 seconds and hold no session or file of their own. Overload: {{OVERLOAD}}. Load tests: {{LOADTEST}}. Choose the metric that rises first with load: request rate or concurrency for APIs, queue length for workers, CPU only when the work is CPU-bound.",
475
+ "consequences": "• Capacity follows the load; idle cost drops at night.\n• The element must be stateless and start fast; sessions and uploads live in shared stores.\n• Scaling takes minutes; a spike faster than that is met by the overload rule.\n• The maximum is a deliberate ceiling: at it, an alert asks whether to raise it or shed load.\n• Downstream limits (database connections) cap how far scaling helps; the pool size times the maximum replicas is that cap.",
476
+ "alternatives": "1. A fixed fleet sized for the peak: simpler, but pays for the peak all year.\n2. Serverless: scales per request to zero, at the cost of cold starts and platform limits.",
477
+ "hubWhen": {
478
+ "SCALING": [
479
+ "horizontal"
480
+ ]
481
+ }
482
+ },
483
+ {
484
+ "id": "adr-serverless",
485
+ "type": "adr",
486
+ "label": "Serverless scaling",
487
+ "x": 780,
488
+ "y": 260,
489
+ "concern": "capacity",
490
+ "status": "accepted",
491
+ "date": "",
492
+ "context": "This element runs on capacity someone has to provide. The forces: load is not flat (a busy hour, a campaign, a sale day can be several times the usual), and a service sized for the average falls over at the peak; an overloaded service does not slow down gracefully, it queues, times out and retries until it serves nobody (a cascading failure); adding instances takes minutes and only helps when the element keeps no state of its own; whatever it calls (a database, a partner) has limits of its own that scaling out can break; idle capacity costs money every hour; and the only way to know the breaking point is to measure it before users find it. The snippets of this pack assume the element is order-api in the shop namespace, with Prometheus, cAdvisor and kube-state-metrics on Kubernetes; rename them for yours.",
493
+ "decision": "The element runs on a serverless platform that starts instances per demand: AWS Lambda, Google Cloud Run, Azure Functions (Flex Consumption) or Azure Container Apps. Warm capacity (provisioned concurrency or minimum instances) carries {{EXPECTED_RPS}} requests per second; maximum concurrency is capped at {{CONCURRENCY_CAP}}, what its database and other dependencies accept, with a connection pooler (Amazon RDS Proxy, PgBouncer) in front of the database; above the cap the platform throttles, which is the overload behaviour working. Overload: {{OVERLOAD}}. Load tests: {{LOADTEST}}. Choose the platform by request duration (Lambda up to 15 minutes; Cloud Run and Container Apps for containers and longer requests), cold start of the runtime, and cost at the steady load: above a few million requests a day, compare with containers on autoscaling.",
494
+ "consequences": "• No capacity to plan or idle fleet to pay for; scaling is per request.\n• Cold starts add latency at the start of every burst; warm capacity costs money.\n• Account and regional concurrency limits apply and must be raised ahead of peaks; a throttle below our own cap means that limit was hit.\n• Scaling out can flood the database: the concurrency cap and the pooler are not optional.\n• Ties the element to the platform's runtime, limits and pricing.",
495
+ "alternatives": "1. Containers with horizontal autoscaling: no cold starts and cheaper at steady load, but capacity to manage.\n2. A fixed fleet: predictable, but sized for a peak that rarely comes.",
496
+ "hubWhen": {
497
+ "SCALING": [
498
+ "serverless"
499
+ ]
500
+ }
501
+ },
502
+ {
503
+ "id": "adr-shed",
504
+ "type": "adr",
505
+ "label": "Shed load at a concurrency limit",
506
+ "x": 780,
507
+ "y": 390,
508
+ "concern": "capacity",
509
+ "status": "accepted",
510
+ "date": "",
511
+ "context": "This element runs on capacity someone has to provide. The forces: load is not flat (a busy hour, a campaign, a sale day can be several times the usual), and a service sized for the average falls over at the peak; an overloaded service does not slow down gracefully, it queues, times out and retries until it serves nobody (a cascading failure); adding instances takes minutes and only helps when the element keeps no state of its own; whatever it calls (a database, a partner) has limits of its own that scaling out can break; idle capacity costs money every hour; and the only way to know the breaking point is to measure it before users find it. The snippets of this pack assume the element is order-api in the shop namespace, with Prometheus, cAdvisor and kube-state-metrics on Kubernetes; rename them for yours.",
512
+ "decision": "Each instance limits the requests in flight and refuses the excess at once with 503 and Retry-After, before doing any work for it. The limit adapts to the measured latency (Envoy's adaptive concurrency filter, Netflix concurrency-limits, or the framework's own limiter such as ASP.NET Core's concurrency limiter), or is set from the load test at the knee of the latency curve. Requests carry a priority: health checks and the paying path are shed last, background and bulk calls first. Clients retry with exponential backoff and jitter, at most 3 times.",
513
+ "consequences": "• Accepted requests stay fast under overload; the service does not collapse.\n• Some callers see 503 at the peak; that is visible and must be explained to them.\n• The priority of each route is a product decision, written down next to the code.\n• Retries without backoff would undo it; clients are part of the design.",
514
+ "alternatives": "1. Unbounded queueing: no refusals, but every request slows down until all time out.\n2. Per-client rate limits only: protects against one noisy caller, not against total load.",
515
+ "hubWhen": {
516
+ "OVERLOAD": [
517
+ "shed",
518
+ "both"
519
+ ]
520
+ }
521
+ },
522
+ {
523
+ "id": "adr-backpressure",
524
+ "type": "adr",
525
+ "label": "Bounded queue with backpressure",
526
+ "x": 780,
527
+ "y": 520,
528
+ "concern": "capacity",
529
+ "status": "accepted",
530
+ "date": "",
531
+ "context": "This element runs on capacity someone has to provide. The forces: load is not flat (a busy hour, a campaign, a sale day can be several times the usual), and a service sized for the average falls over at the peak; an overloaded service does not slow down gracefully, it queues, times out and retries until it serves nobody (a cascading failure); adding instances takes minutes and only helps when the element keeps no state of its own; whatever it calls (a database, a partner) has limits of its own that scaling out can break; idle capacity costs money every hour; and the only way to know the breaking point is to measure it before users find it. The snippets of this pack assume the element is order-api in the shop namespace, with Prometheus, cAdvisor and kube-state-metrics on Kubernetes; rename them for yours.",
532
+ "decision": "Work that the caller does not wait for goes into a bounded queue. The bounded primitive is RabbitMQ with x-max-length and x-overflow reject-publish: a full queue refuses the publish, the producer's publisher confirm fails, and the producer answers 429 with Retry-After. With Amazon SQS or Kafka, which have no length bound (SQS is unbounded, Kafka is bounded by retention, not count), the producer gates itself: it reads the queue depth (ApproximateNumberOfMessages) or the consumer lag before publishing and answers 429 above the agreed bound. Workers scale on queue length or consumer lag (KEDA scalers) up to what downstream systems accept. Accepted work is never dropped; messages that fail repeatedly go to a dead-letter queue with an alert on it.",
533
+ "consequences": "• Peaks are absorbed by the queue and processed at a sustainable rate.\n• Results arrive later at the peak; the product must accept that delay for this work.\n• The queue length, the age of the oldest message and the dead-letter queue become the signals to watch.\n• Producers must handle 429 and retry; a producer that drops work on 429 loses it.\n• With SQS or Kafka the bound lives in the producer's code, not in the broker.",
534
+ "alternatives": "1. Processing everything synchronously: simple, but the caller waits and peaks hit the database directly.\n2. An unbounded queue: never refuses, but hides overload until memory or the delay is unacceptable.",
535
+ "hubWhen": {
536
+ "OVERLOAD": [
537
+ "backpressure",
538
+ "both"
539
+ ]
540
+ }
541
+ },
542
+ {
543
+ "id": "ff-loadtest-release",
544
+ "type": "fitness-fn",
545
+ "label": "Load test gates release",
546
+ "x": 1040,
547
+ "y": 0,
548
+ "characteristic": "performance-efficiency",
549
+ "scope": "holistic",
550
+ "cadence": "triggered",
551
+ "trigger": "release",
552
+ "invocation": "automated",
553
+ "description": "The pipeline runs a k6 test against a production-like environment for every release candidate: a 5-minute ramp from the normal load to the peak (which an autoscaler has to follow in time) and 15 minutes at the peak; the thresholds fail the run, and the pipeline stops the release.\n\nThreshold: 95th percentile under {{P95_MS}} ms and errors under 0.1 % through a 5-minute ramp to {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second and 15 minutes at it\n\nTool: Grafana k6\n\n```js\n// k6 run --env BASE_URL=https://staging.shop.example peak.js (in the release pipeline)\nimport http from 'k6/http'\nimport { check } from 'k6'\n\nconst NORMAL = {{EXPECTED_RPS}}\nconst PEAK = NORMAL * {{PEAK_FACTOR}}\n\nexport const options = {\n scenarios: {\n peak: {\n executor: 'ramping-arrival-rate',\n startRate: NORMAL, timeUnit: '1s',\n preAllocatedVUs: 200, maxVUs: 2000,\n stages: [\n { target: PEAK, duration: '5m' }, // ramp to the peak\n { target: PEAK, duration: '15m' }, // hold it\n ],\n },\n },\n thresholds: {\n http_req_duration: ['p(95)<{{P95_MS}}'],\n http_req_failed: ['rate<0.001'],\n },\n}\n\nexport default function () {\n const res = http.get(`${__ENV.BASE_URL}/orders?page=1`)\n check(res, { 'status 200': (r) => r.status === 200 })\n}\n```",
554
+ "hubWhen": {
555
+ "LOADTEST": [
556
+ "release"
557
+ ]
558
+ }
559
+ },
560
+ {
561
+ "id": "ff-loadtest-scheduled",
562
+ "type": "fitness-fn",
563
+ "label": "Breaking point measured",
564
+ "x": 1040,
565
+ "y": 130,
566
+ "characteristic": "performance-efficiency",
567
+ "scope": "holistic",
568
+ "cadence": "temporal",
569
+ "every": "30d",
570
+ "invocation": "automated",
571
+ "description": "A scheduled job runs a k6 test that ramps from the normal load past the peak to 3 times the peak, tagging requests by the band of load they were sent in. The thresholds assert the latency and error bounds up to 1.5 times the peak; the summary records the first band above it where the 95th percentile broke, as the breaking point, in a file kept with the run. The job runs monthly and 4 weeks before each announced peak event.\n\nThreshold: 95th percentile under {{P95_MS}} ms and errors under 0.1 % up to 1.5 times {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second; the band of load where the 95th percentile broke, up to 3 times the peak, is recorded; run at most 30 days ago\n\nTool: Grafana k6 in a scheduled job\n\n```js\n// k6 run --env BASE_URL=https://staging.shop.example breaking-point.js (monthly, and 4 weeks before a peak event)\nimport http from 'k6/http'\nimport exec from 'k6/execution'\n\nconst NORMAL = {{EXPECTED_RPS}}\nconst PEAK = NORMAL * {{PEAK_FACTOR}}\nconst STAGES = [\n { target: PEAK, minutes: 5 }, // ramp to the peak\n { target: PEAK * 1.5, minutes: 10 }, // on to 1.5 x the peak: capacity must hold here\n { target: PEAK * 3, minutes: 15 }, // on to 3 x the peak: find where it breaks\n]\nconst BANDS = ['1.5-2', '2-2.5', '2.5-3']\n\nexport const options = {\n scenarios: {\n ramp: {\n executor: 'ramping-arrival-rate', startRate: NORMAL, timeUnit: '1s', preAllocatedVUs: 500, maxVUs: 10000,\n stages: STAGES.map((s) => ({ target: s.target, duration: `${s.minutes}m` })),\n },\n },\n thresholds: {\n 'http_req_duration{band:upto1.5}': ['p(95)<{{P95_MS}}'],\n 'http_req_failed{band:upto1.5}': ['rate<0.001'],\n // the bands above 1.5 x are recorded, not asserted (a threshold makes k6 report the sub-metric)\n 'http_req_duration{band:1.5-2}': ['p(95)>=0'],\n 'http_req_duration{band:2-2.5}': ['p(95)>=0'],\n 'http_req_duration{band:2.5-3}': ['p(95)>=0'],\n },\n}\n\n/** The arrival rate at a moment of the ramp, in requests per second. */\nfunction rateAt(seconds) {\n let start = 0\n let from = NORMAL\n for (const s of STAGES) {\n const d = s.minutes * 60\n if (seconds <= start + d) return from + ((s.target - from) * (seconds - start)) / d\n start += d\n from = s.target\n }\n return from\n}\n\nexport default function () {\n const rate = rateAt(exec.instance.currentTestRunDuration / 1000)\n const band = rate <= PEAK * 1.5 ? 'upto1.5' : rate <= PEAK * 2 ? '1.5-2' : rate <= PEAK * 2.5 ? '2-2.5' : '2.5-3'\n http.get(`${__ENV.BASE_URL}/orders?page=1`, { tags: { band } })\n}\n\nexport function handleSummary(data) {\n const p95 = (band) => (data.metrics[`http_req_duration{band:${band}}`] || { values: {} }).values['p(95)']\n const broken = BANDS.find((b) => (p95(b) || 0) > {{P95_MS}})\n const line = broken ? `breaking point: between ${broken} x the peak` : 'breaking point: not reached below 3 x the peak'\n return {\n stdout: line + '\\n',\n 'breaking-point.json': JSON.stringify({ date: new Date().toISOString(), peakRps: PEAK, broken: broken || null, p95ByBand: BANDS.map((b) => [b, p95(b)]) }),\n }\n}\n```",
572
+ "hubWhen": {
573
+ "LOADTEST": [
574
+ "scheduled"
575
+ ]
576
+ }
577
+ },
578
+ {
579
+ "id": "ff-headroom",
580
+ "type": "fitness-fn",
581
+ "label": "Headroom watched",
582
+ "x": 1040,
583
+ "y": 260,
584
+ "characteristic": "performance-efficiency",
585
+ "scope": "atomic",
586
+ "cadence": "continual",
587
+ "invocation": "automated",
588
+ "description": "Recording rules compute the element's CPU and memory use as a share of its requests (container-level series only, so the pod-level and pause-container series are not counted twice); an alert takes the highest hourly average of the last 7 days for each and opens a capacity ticket above 70 %.\n\nThreshold: The highest hourly average of CPU and of memory use in the last 7 days at most 70 % of what is provisioned; above it, a ticket alert\n\nTool: Prometheus recording and alerting rules (kube-state-metrics and cAdvisor metrics)\n\n```yaml\ngroups:\n - name: capacity\n rules:\n - record: order_api:cpu_use:ratio\n expr: |\n sum(rate(container_cpu_usage_seconds_total{namespace=\"shop\",pod=~\"order-api-.*\",container!=\"\",container!=\"POD\"}[5m]))\n / sum(kube_pod_container_resource_requests{namespace=\"shop\",pod=~\"order-api-.*\",resource=\"cpu\"})\n - record: order_api:memory_use:ratio\n expr: |\n sum(container_memory_working_set_bytes{namespace=\"shop\",pod=~\"order-api-.*\",container!=\"\",container!=\"POD\"})\n / sum(kube_pod_container_resource_requests{namespace=\"shop\",pod=~\"order-api-.*\",resource=\"memory\"})\n - alert: OrderApiHeadroomLow\n expr: |\n max_over_time(avg_over_time(order_api:cpu_use:ratio[1h])[7d:1h]) > 0.70\n or max_over_time(avg_over_time(order_api:memory_use:ratio[1h])[7d:1h]) > 0.70\n labels: { severity: ticket }\n annotations:\n summary: \"Order API used over 70 % of its provisioned CPU or memory at the week's busiest hour: plan a capacity change\"\n```",
589
+ "hubWhen": {
590
+ "SCALING": [
591
+ "fixed"
592
+ ]
593
+ }
594
+ },
595
+ {
596
+ "id": "ff-hpa-behaviour",
597
+ "type": "fitness-fn",
598
+ "label": "Autoscaler bounds and scale-in delay",
599
+ "x": 1040,
600
+ "y": 390,
601
+ "characteristic": "performance-efficiency",
602
+ "scope": "atomic",
603
+ "cadence": "triggered",
604
+ "trigger": "pull-request",
605
+ "invocation": "automated",
606
+ "description": "A policy over the Kubernetes manifests fails the pipeline when the element's autoscaler could run a single instance, has no ceiling, or scales in sooner than 15 minutes after the load drops. ECS and Container Apps have the same three settings in their scale rules.\n\nThreshold: The HorizontalPodAutoscaler has minReplicas at least 2, maxReplicas set, and a scale-down stabilization window of at least 900 s\n\nTool: Conftest (Open Policy Agent)\n\n```rego\npackage main\n\nimport rego.v1\n\ndeny contains msg if {\n input.kind == \"HorizontalPodAutoscaler\"\n object.get(input.spec, \"minReplicas\", 1) < 2\n msg := sprintf(\"%s: minReplicas must be at least 2 (the normal load with one zone lost)\", [input.metadata.name])\n}\n\ndeny contains msg if {\n input.kind == \"HorizontalPodAutoscaler\"\n not input.spec.maxReplicas\n msg := sprintf(\"%s: set maxReplicas (1.5 x the peak, within the database's connection cap)\", [input.metadata.name])\n}\n\ndeny contains msg if {\n input.kind == \"HorizontalPodAutoscaler\"\n object.get(input.spec, [\"behavior\", \"scaleDown\", \"stabilizationWindowSeconds\"], 300) < 900\n msg := sprintf(\"%s: set behavior.scaleDown.stabilizationWindowSeconds to 900 or more\", [input.metadata.name])\n}\n```",
607
+ "hubWhen": {
608
+ "SCALING": [
609
+ "horizontal"
610
+ ]
611
+ }
612
+ },
613
+ {
614
+ "id": "ff-autoscale-ceiling",
615
+ "type": "fitness-fn",
616
+ "label": "Autoscaling not at its ceiling",
617
+ "x": 1040,
618
+ "y": 520,
619
+ "characteristic": "performance-efficiency",
620
+ "scope": "atomic",
621
+ "cadence": "continual",
622
+ "invocation": "automated",
623
+ "description": "A Prometheus alert fires when the HorizontalPodAutoscaler has run at its maximum for 15 minutes: the ceiling is too low or the load is beyond plan, and someone decides which.\n\nThreshold: The autoscaler sits at its maximum replicas for no more than 15 minutes in a row\n\nTool: Prometheus alerting rule over kube-state-metrics\n\n```yaml\ngroups:\n - name: autoscaling\n rules:\n - alert: OrderApiAtMaxReplicas\n expr: |\n kube_horizontalpodautoscaler_status_current_replicas{namespace=\"shop\",horizontalpodautoscaler=\"order-api\"}\n >= kube_horizontalpodautoscaler_spec_max_replicas{namespace=\"shop\",horizontalpodautoscaler=\"order-api\"}\n for: 15m\n labels: { severity: page }\n annotations:\n summary: \"Order API has been at its maximum replicas for 15 minutes\"\n```",
624
+ "hubWhen": {
625
+ "SCALING": [
626
+ "horizontal"
627
+ ]
628
+ }
629
+ },
630
+ {
631
+ "id": "ff-pool-cap",
632
+ "type": "fitness-fn",
633
+ "label": "Replicas times pool size within the cap",
634
+ "x": 1040,
635
+ "y": 650,
636
+ "characteristic": "performance-efficiency",
637
+ "scope": "atomic",
638
+ "cadence": "triggered",
639
+ "trigger": "pull-request",
640
+ "invocation": "automated",
641
+ "description": "A policy over the Kubernetes manifests, run with conftest --combine so that it sees the autoscaler and the Deployment together, fails the pipeline when the most instances the autoscaler may run, times the pool size each is configured with, exceeds what the database accepts from the element.\n\nThreshold: maxReplicas of the autoscaler times the connection pool size per instance (DB_POOL_SIZE) is at most {{CONCURRENCY_CAP}}\n\nTool: Conftest (Open Policy Agent), conftest test --combine k8s/\n\n```rego\npackage main\n\nimport rego.v1\n\ndeny contains msg if {\n some hpa in input\n hpa.contents.kind == \"HorizontalPodAutoscaler\"\n some dep in input\n dep.contents.kind == \"Deployment\"\n dep.contents.metadata.name == hpa.contents.spec.scaleTargetRef.name\n some c in dep.contents.spec.template.spec.containers\n some e in c.env\n e.name == \"DB_POOL_SIZE\"\n connections := hpa.contents.spec.maxReplicas * to_number(e.value)\n connections > {{CONCURRENCY_CAP}}\n msg := sprintf(\"%s: %d replicas x pool %s = %d connections, above the cap the database accepts\", [dep.contents.metadata.name, hpa.contents.spec.maxReplicas, e.value, connections])\n}\n```",
642
+ "hubWhen": {
643
+ "SCALING": [
644
+ "horizontal"
645
+ ]
646
+ }
647
+ },
648
+ {
649
+ "id": "ff-serverless-throttles",
650
+ "type": "fitness-fn",
651
+ "label": "Throttled only at our cap",
652
+ "x": 1040,
653
+ "y": 780,
654
+ "characteristic": "performance-efficiency",
655
+ "scope": "atomic",
656
+ "cadence": "continual",
657
+ "invocation": "automated",
658
+ "description": "The function's reserved concurrency is the cap; throttling at it is the overload rule working. Two CloudWatch alarms in Terraform: one on concurrent executions sustained above 80 % of the cap (raise the cap, or the database's limit), and one on throttles that happen while concurrency is still under 90 % of the cap, which means the account or region limit throttled first and must be raised. Cloud Run and Azure Functions expose the same two metrics in Cloud Monitoring and Azure Monitor.\n\nThreshold: 0 throttled invocations in any 5 minutes while concurrency is under 90 % of {{CONCURRENCY_CAP}}; concurrency under 80 % of {{CONCURRENCY_CAP}} for all but 5 minutes\n\nTool: Amazon CloudWatch alarms in Terraform (metric math)\n\n```hcl\nresource \"aws_lambda_function\" \"order_api\" {\n function_name = \"order-api\"\n # ...\n reserved_concurrent_executions = {{CONCURRENCY_CAP}} # what the database accepts through the pooler\n}\n\nresource \"aws_cloudwatch_metric_alarm\" \"order_api_concurrency_near_cap\" {\n alarm_name = \"order-api-concurrency-80pct\"\n namespace = \"AWS/Lambda\"\n metric_name = \"ConcurrentExecutions\"\n dimensions = { FunctionName = aws_lambda_function.order_api.function_name }\n statistic = \"Maximum\"\n period = 60\n evaluation_periods = 5\n threshold = {{CONCURRENCY_CAP}} * 0.8\n comparison_operator = \"GreaterThanThreshold\"\n}\n\nresource \"aws_cloudwatch_metric_alarm\" \"order_api_throttled_below_cap\" {\n alarm_name = \"order-api-throttled-below-cap\"\n comparison_operator = \"GreaterThanThreshold\"\n threshold = 0\n evaluation_periods = 1\n treat_missing_data = \"notBreaching\"\n metric_query {\n id = \"below_cap\"\n expression = \"IF(concurrency < {{CONCURRENCY_CAP}} * 0.9, throttles, 0)\"\n label = \"throttles while under 90 % of our cap: the account limit throttled, not us\"\n return_data = true\n }\n metric_query {\n id = \"throttles\"\n metric {\n namespace = \"AWS/Lambda\"\n metric_name = \"Throttles\"\n period = 300\n stat = \"Sum\"\n dimensions = { FunctionName = aws_lambda_function.order_api.function_name }\n }\n }\n metric_query {\n id = \"concurrency\"\n metric {\n namespace = \"AWS/Lambda\"\n metric_name = \"ConcurrentExecutions\"\n period = 300\n stat = \"Maximum\"\n dimensions = { FunctionName = aws_lambda_function.order_api.function_name }\n }\n }\n}\n```",
659
+ "hubWhen": {
660
+ "SCALING": [
661
+ "serverless"
662
+ ]
663
+ }
664
+ },
665
+ {
666
+ "id": "ff-cold-start",
667
+ "type": "fitness-fn",
668
+ "label": "Burst after idle answered in time",
669
+ "x": 1040,
670
+ "y": 910,
671
+ "characteristic": "performance-efficiency",
672
+ "scope": "holistic",
673
+ "cadence": "triggered",
674
+ "trigger": "nightly",
675
+ "invocation": "automated",
676
+ "description": "A nightly job waits until the element has been idle at its minimum instances for 15 minutes, then runs a k6 burst at the peak rate; the slowest request, cold starts included, must answer within a second. On AWS, the InitDuration in the function's logs says how much of it was the start.\n\nThreshold: After 15 idle minutes, a 2-minute burst at {{PEAK_FACTOR}} times {{EXPECTED_RPS}} requests per second has every request answered within 1000 ms and fewer than 0.1 % errors\n\nTool: Grafana k6 in a scheduled job\n\n```js\n// k6 run --env BASE_URL=https://staging.shop.example cold-start.js (nightly, after 15 idle minutes)\nimport http from 'k6/http'\n\nexport const options = {\n scenarios: {\n burst: { executor: 'constant-arrival-rate', rate: {{PEAK_FACTOR}} * {{EXPECTED_RPS}}, timeUnit: '1s', duration: '2m', preAllocatedVUs: 500, maxVUs: 5000 },\n },\n thresholds: {\n http_req_duration: ['max<1000'], // the slowest request, cold start included\n http_req_failed: ['rate<0.001'],\n },\n}\n\nexport default function () {\n http.get(`${__ENV.BASE_URL}/orders?page=1`)\n}\n```",
677
+ "hubWhen": {
678
+ "SCALING": [
679
+ "serverless"
680
+ ]
681
+ }
682
+ },
683
+ {
684
+ "id": "ff-shed",
685
+ "type": "fitness-fn",
686
+ "label": "Overload is shed fast",
687
+ "x": 1040,
688
+ "y": 1040,
689
+ "characteristic": "reliability",
690
+ "scope": "holistic",
691
+ "cadence": "triggered",
692
+ "trigger": "release",
693
+ "invocation": "automated",
694
+ "description": "A k6 overload test drives twice the peak and checks two things separately: refusals are fast 503s, and the requests that were accepted kept their latency. A service that slows everything down instead fails the test.\n\nThreshold: At twice the peak: refused requests answered with 503 in under 50 ms (95th percentile), accepted ones under {{P95_MS}} ms, and nothing but 200 or 503\n\nTool: Grafana k6\n\n```js\nimport http from 'k6/http'\nimport { Trend } from 'k6/metrics'\n\nconst accepted = new Trend('accepted_duration', true)\nconst refused = new Trend('refused_duration', true)\n\nexport const options = {\n scenarios: {\n overload: { executor: 'constant-arrival-rate', rate: 2 * {{PEAK_FACTOR}} * {{EXPECTED_RPS}}, timeUnit: '1s',\n duration: '10m', preAllocatedVUs: 500, maxVUs: 5000 },\n },\n thresholds: {\n accepted_duration: ['p(95)<{{P95_MS}}'],\n refused_duration: ['p(95)<50'],\n http_req_failed: ['rate<0.001'], // anything but 200 or 503\n },\n}\n\nhttp.setResponseCallback(http.expectedStatuses(200, 503))\n\nexport default function () {\n const res = http.get(`${__ENV.BASE_URL}/orders?page=1`)\n ;(res.status === 503 ? refused : accepted).add(res.timings.duration)\n}\n```",
695
+ "hubWhen": {
696
+ "OVERLOAD": [
697
+ "shed",
698
+ "both"
699
+ ]
700
+ }
701
+ },
702
+ {
703
+ "id": "ff-backlog",
704
+ "type": "fitness-fn",
705
+ "label": "Backlog drains, dead letters seen",
706
+ "x": 1040,
707
+ "y": 1170,
708
+ "characteristic": "performance-efficiency",
709
+ "scope": "atomic",
710
+ "cadence": "continual",
711
+ "invocation": "automated",
712
+ "description": "Two Prometheus alerts over RabbitMQ's per-queue metrics: one fires when the work queue has kept growing for 15 minutes, meaning the workers cannot keep up even after scaling; the other opens a ticket when the dead-letter queue is not empty. The queue is declared with x-max-length and x-overflow reject-publish, so a full queue refuses the publish. With Kafka the first rule reads kafka_consumergroup_lag from kafka_exporter; with SQS, ApproximateAgeOfOldestMessage in CloudWatch.\n\nThreshold: The queue's ready messages grow for no more than 15 minutes in a row; the dead-letter queue holds messages for no more than 5 minutes before a ticket\n\nTool: Prometheus alerting rules over the RabbitMQ Prometheus plugin (/metrics/detailed, family queue_coarse_metrics)\n\n```yaml\n# prometheus.yml: scrape the per-queue metrics\n# - job_name: rabbitmq-queues\n# metrics_path: /metrics/detailed\n# params: { family: [queue_coarse_metrics] }\n# static_configs: [{ targets: [\"rabbitmq.shop:15692\"] }]\ngroups:\n - name: backpressure\n rules:\n - alert: OrderWorkersFallingBehind\n expr: deriv(sum(rabbitmq_detailed_queue_messages_ready{queue=\"orders\"})[15m:1m]) > 0\n for: 15m\n labels: { severity: page }\n annotations:\n summary: \"The orders queue has grown for 15 minutes: workers cannot keep up even after scaling\"\n - alert: OrderDeadLetters\n expr: sum(rabbitmq_detailed_queue_messages_ready{queue=\"orders.dlq\"}) > 0\n for: 5m\n labels: { severity: ticket }\n annotations:\n summary: \"Messages in the orders dead-letter queue: work that failed repeatedly needs a look\"\n```",
713
+ "hubWhen": {
714
+ "OVERLOAD": [
715
+ "backpressure",
716
+ "both"
717
+ ]
718
+ }
719
+ }
720
+ ],
721
+ "relations": [
722
+ {
723
+ "id": "req-peak--derives--need",
724
+ "sourceId": "req-peak",
725
+ "targetId": "need",
726
+ "relationType": "derives"
727
+ },
728
+ {
729
+ "id": "req-headroom--derives--need",
730
+ "sourceId": "req-headroom",
731
+ "targetId": "need",
732
+ "relationType": "derives"
733
+ },
734
+ {
735
+ "id": "req-autoscale--derives--need",
736
+ "sourceId": "req-autoscale",
737
+ "targetId": "need",
738
+ "relationType": "derives"
739
+ },
740
+ {
741
+ "id": "req-cold-start--derives--need",
742
+ "sourceId": "req-cold-start",
743
+ "targetId": "need",
744
+ "relationType": "derives"
745
+ },
746
+ {
747
+ "id": "req-downstream--derives--need",
748
+ "sourceId": "req-downstream",
749
+ "targetId": "need",
750
+ "relationType": "derives"
751
+ },
752
+ {
753
+ "id": "req-shed--derives--need",
754
+ "sourceId": "req-shed",
755
+ "targetId": "need",
756
+ "relationType": "derives"
757
+ },
758
+ {
759
+ "id": "req-backpressure--derives--need",
760
+ "sourceId": "req-backpressure",
761
+ "targetId": "need",
762
+ "relationType": "derives"
763
+ },
764
+ {
765
+ "id": "req-loadtest-release--derives--need",
766
+ "sourceId": "req-loadtest-release",
767
+ "targetId": "need",
768
+ "relationType": "derives"
769
+ },
770
+ {
771
+ "id": "req-loadtest-scheduled--derives--need",
772
+ "sourceId": "req-loadtest-scheduled",
773
+ "targetId": "need",
774
+ "relationType": "derives"
775
+ },
776
+ {
777
+ "id": "sc-peak--verifies--req-peak",
778
+ "sourceId": "sc-peak",
779
+ "targetId": "req-peak",
780
+ "relationType": "verifies"
781
+ },
782
+ {
783
+ "id": "sc-headroom--verifies--req-headroom",
784
+ "sourceId": "sc-headroom",
785
+ "targetId": "req-headroom",
786
+ "relationType": "verifies"
787
+ },
788
+ {
789
+ "id": "sc-autoscale--verifies--req-autoscale",
790
+ "sourceId": "sc-autoscale",
791
+ "targetId": "req-autoscale",
792
+ "relationType": "verifies"
793
+ },
794
+ {
795
+ "id": "sc-cold-start--verifies--req-cold-start",
796
+ "sourceId": "sc-cold-start",
797
+ "targetId": "req-cold-start",
798
+ "relationType": "verifies"
799
+ },
800
+ {
801
+ "id": "sc-downstream--verifies--req-downstream",
802
+ "sourceId": "sc-downstream",
803
+ "targetId": "req-downstream",
804
+ "relationType": "verifies"
805
+ },
806
+ {
807
+ "id": "sc-shed--verifies--req-shed",
808
+ "sourceId": "sc-shed",
809
+ "targetId": "req-shed",
810
+ "relationType": "verifies"
811
+ },
812
+ {
813
+ "id": "sc-backpressure--verifies--req-backpressure",
814
+ "sourceId": "sc-backpressure",
815
+ "targetId": "req-backpressure",
816
+ "relationType": "verifies"
817
+ },
818
+ {
819
+ "id": "sc-loadtest-release--verifies--req-loadtest-release",
820
+ "sourceId": "sc-loadtest-release",
821
+ "targetId": "req-loadtest-release",
822
+ "relationType": "verifies"
823
+ },
824
+ {
825
+ "id": "sc-loadtest-scheduled--verifies--req-loadtest-scheduled",
826
+ "sourceId": "sc-loadtest-scheduled",
827
+ "targetId": "req-loadtest-scheduled",
828
+ "relationType": "verifies"
829
+ },
830
+ {
831
+ "id": "ff-loadtest-release--implements--adr-fixed",
832
+ "sourceId": "ff-loadtest-release",
833
+ "targetId": "adr-fixed",
834
+ "relationType": "implements"
835
+ },
836
+ {
837
+ "id": "ff-loadtest-release--implements--adr-autoscale",
838
+ "sourceId": "ff-loadtest-release",
839
+ "targetId": "adr-autoscale",
840
+ "relationType": "implements"
841
+ },
842
+ {
843
+ "id": "ff-loadtest-release--implements--adr-serverless",
844
+ "sourceId": "ff-loadtest-release",
845
+ "targetId": "adr-serverless",
846
+ "relationType": "implements"
847
+ },
848
+ {
849
+ "id": "ff-loadtest-scheduled--implements--adr-fixed",
850
+ "sourceId": "ff-loadtest-scheduled",
851
+ "targetId": "adr-fixed",
852
+ "relationType": "implements"
853
+ },
854
+ {
855
+ "id": "ff-loadtest-scheduled--implements--adr-autoscale",
856
+ "sourceId": "ff-loadtest-scheduled",
857
+ "targetId": "adr-autoscale",
858
+ "relationType": "implements"
859
+ },
860
+ {
861
+ "id": "ff-loadtest-scheduled--implements--adr-serverless",
862
+ "sourceId": "ff-loadtest-scheduled",
863
+ "targetId": "adr-serverless",
864
+ "relationType": "implements"
865
+ },
866
+ {
867
+ "id": "ff-headroom--implements--adr-fixed",
868
+ "sourceId": "ff-headroom",
869
+ "targetId": "adr-fixed",
870
+ "relationType": "implements"
871
+ },
872
+ {
873
+ "id": "ff-hpa-behaviour--implements--adr-autoscale",
874
+ "sourceId": "ff-hpa-behaviour",
875
+ "targetId": "adr-autoscale",
876
+ "relationType": "implements"
877
+ },
878
+ {
879
+ "id": "ff-autoscale-ceiling--implements--adr-autoscale",
880
+ "sourceId": "ff-autoscale-ceiling",
881
+ "targetId": "adr-autoscale",
882
+ "relationType": "implements"
883
+ },
884
+ {
885
+ "id": "ff-pool-cap--implements--adr-autoscale",
886
+ "sourceId": "ff-pool-cap",
887
+ "targetId": "adr-autoscale",
888
+ "relationType": "implements"
889
+ },
890
+ {
891
+ "id": "ff-serverless-throttles--implements--adr-serverless",
892
+ "sourceId": "ff-serverless-throttles",
893
+ "targetId": "adr-serverless",
894
+ "relationType": "implements"
895
+ },
896
+ {
897
+ "id": "ff-cold-start--implements--adr-serverless",
898
+ "sourceId": "ff-cold-start",
899
+ "targetId": "adr-serverless",
900
+ "relationType": "implements"
901
+ },
902
+ {
903
+ "id": "ff-shed--implements--adr-shed",
904
+ "sourceId": "ff-shed",
905
+ "targetId": "adr-shed",
906
+ "relationType": "implements"
907
+ },
908
+ {
909
+ "id": "ff-backlog--implements--adr-backpressure",
910
+ "sourceId": "ff-backlog",
911
+ "targetId": "adr-backpressure",
912
+ "relationType": "implements"
913
+ }
914
+ ]
915
+ }