@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.
- package/README.md +41 -23
- package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
- package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10321 -3964
- package/package.json +1 -1
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
- package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
- package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
- package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
- package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
- package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
- package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
- package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
- package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
- package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
- package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
- package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
- package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
- package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
- package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
- package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
- package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
- package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
- package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
- package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
- package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
|
@@ -0,0 +1,1116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-integration-resilience",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Integration resilience",
|
|
6
|
+
"description": "Calls to systems outside your control: how long to wait, when and how to try again, how not to do anything twice, when to stop calling, and what the user gets while the other side is down.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"reliability",
|
|
9
|
+
"integration",
|
|
10
|
+
"timeouts",
|
|
11
|
+
"retries",
|
|
12
|
+
"backoff",
|
|
13
|
+
"idempotency",
|
|
14
|
+
"circuit-breaker",
|
|
15
|
+
"resilience4j",
|
|
16
|
+
"polly"
|
|
17
|
+
],
|
|
18
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
19
|
+
"concern": {
|
|
20
|
+
"id": "integration-resilience",
|
|
21
|
+
"trigger": "LIST RELATIONS WHERE source.external != true AND target.external = true AND (source.type = \"system\" OR source.type = \"container\" OR source.type = \"webapp\" OR source.type = \"component\")",
|
|
22
|
+
"applyTo": "source",
|
|
23
|
+
"why": "these elements call systems outside your control, so what happens when those are slow, down or answer twice has to be decided.",
|
|
24
|
+
"group": "architecture"
|
|
25
|
+
},
|
|
26
|
+
"sources": [
|
|
27
|
+
{
|
|
28
|
+
"title": "AWS Builders' Library, Timeouts, retries, and backoff with jitter",
|
|
29
|
+
"url": "https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"title": "AWS Builders' Library, Making retries safe with idempotent APIs",
|
|
33
|
+
"url": "https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": "RFC 9110, HTTP Semantics (9.2 safe and idempotent methods, 10.2.3 Retry-After)",
|
|
37
|
+
"url": "https://www.rfc-editor.org/rfc/rfc9110"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "microservices.io, Circuit Breaker",
|
|
41
|
+
"url": "https://microservices.io/patterns/reliability/circuit-breaker.html"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "IETF draft, The Idempotency-Key HTTP Header Field",
|
|
45
|
+
"url": "https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "Azure Architecture Center, Circuit Breaker pattern",
|
|
49
|
+
"url": "https://learn.microsoft.com/en-us/azure/architecture/patterns/circuit-breaker"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"title": "Enterprise Integration Patterns, Dead Letter Channel",
|
|
53
|
+
"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"templateParams": [
|
|
57
|
+
{
|
|
58
|
+
"key": "FAILURE",
|
|
59
|
+
"title": "When it is down",
|
|
60
|
+
"label": "What happens to the user's action while the outside system is down?",
|
|
61
|
+
"hint": "Every outside system is down sometimes. This also decides whether the call is made while the user waits (fail, degrade) or later from a queue (defer).",
|
|
62
|
+
"defaultValue": "fail",
|
|
63
|
+
"options": [
|
|
64
|
+
{
|
|
65
|
+
"value": "fail",
|
|
66
|
+
"label": "it fails fast and clearly",
|
|
67
|
+
"description": "The call is made while the user waits; when the system is down the action is refused at once as temporary, with nothing half done, and the user tries again later. Pick it when the action is worthless without the answer (a payment authorisation, a live price) and a later retry by the user is acceptable."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"value": "degrade",
|
|
71
|
+
"label": "it goes on with less",
|
|
72
|
+
"description": "The call is made while the user waits; when the system is down the answer comes from a recent cache or a default, marked incomplete. Pick it for reads whose outside part is nice to have or changes slowly: recommendations, shipping estimates, exchange rates, an address check."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"value": "defer",
|
|
76
|
+
"label": "it is accepted and completed later",
|
|
77
|
+
"description": "The action is stored and the call is made from a queue, so the user does not wait for the outside system; it completes once the system is back and the user is told. Pick it for actions that must not be lost but need not finish now: sending to a partner, booking, e-mail, invoicing. Not with only reads: a deferred action changes something outside."
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "PROTECTION",
|
|
83
|
+
"title": "Where",
|
|
84
|
+
"label": "Where do timeouts, retries and circuit breakers live?",
|
|
85
|
+
"hint": "In the code they can see the call (is it safe to repeat? what is the fallback?); in the mesh they are the same for every service and language.",
|
|
86
|
+
"defaultValue": "library",
|
|
87
|
+
"options": [
|
|
88
|
+
{
|
|
89
|
+
"value": "library",
|
|
90
|
+
"label": "a resilience library in the code",
|
|
91
|
+
"description": "One client per outside system wraps its calls in the library's pipeline: Resilience4j (JVM), Polly or Microsoft.Extensions.Http.Resilience (.NET), cockatiel (Node.js), failsafe-go. Pick it when calls need fallbacks or idempotency logic, or there is no service mesh."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "mesh",
|
|
95
|
+
"label": "the service mesh, in configuration",
|
|
96
|
+
"description": "Timeouts, retries and outlier detection (the mesh's circuit breaker) are set per outside host in Istio or Linkerd configuration, the same for every language. Pick it when a mesh already carries all traffic on Kubernetes and many services in several languages call the same outside systems; fallbacks stay in the code."
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "IDEMPOTENCY",
|
|
102
|
+
"title": "Repeats",
|
|
103
|
+
"label": "How is a repeated call kept from doing something twice?",
|
|
104
|
+
"hint": "A timeout does not say whether the other side did the work. What the outside system offers decides how a retry stays safe.",
|
|
105
|
+
"defaultValue": "keys",
|
|
106
|
+
"options": [
|
|
107
|
+
{
|
|
108
|
+
"value": "keys",
|
|
109
|
+
"label": "idempotency keys",
|
|
110
|
+
"description": "Every call that changes something carries an Idempotency-Key the outside system remembers, so a repeat returns the first result (Stripe, Adyen, PayPal and most payment APIs). Pick it when the outside system accepts such a key."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"value": "lookup",
|
|
114
|
+
"label": "a lookup before each retry",
|
|
115
|
+
"description": "Every change carries our own reference; after a timeout the client asks the outside system whether a change with that reference exists before trying again. Pick it when the outside system takes no idempotency key but can be queried by a reference you send."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": "readonly",
|
|
119
|
+
"label": "only reads, nothing to repeat",
|
|
120
|
+
"description": "The element only reads from outside systems (GET and other safe methods), so every call may be retried. Pick it when no call changes anything outside; a call that does needs this decision revisited. Not with deferred actions, which change something outside."
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"key": "TIMEOUT_MS",
|
|
126
|
+
"label": "After how many milliseconds does one call give up?",
|
|
127
|
+
"defaultValue": "2000",
|
|
128
|
+
"type": "number"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "RETRIES",
|
|
132
|
+
"label": "How many times at most is a failed call retried?",
|
|
133
|
+
"defaultValue": "3",
|
|
134
|
+
"type": "number"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "BACKOFF_MS",
|
|
138
|
+
"label": "What is the first retry delay (milliseconds), doubled each time?",
|
|
139
|
+
"defaultValue": "200",
|
|
140
|
+
"type": "number"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"key": "BREAKER_PERCENT",
|
|
144
|
+
"label": "Above what percentage of failed calls does the circuit open?",
|
|
145
|
+
"defaultValue": "50",
|
|
146
|
+
"type": "number"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"key": "DEADLINE_MS",
|
|
150
|
+
"label": "How long at most does a waiting user wait, retries included (milliseconds)?",
|
|
151
|
+
"defaultValue": "5000",
|
|
152
|
+
"type": "number"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"key": "STALE_MINUTES",
|
|
156
|
+
"label": "How old may a cached answer be when shown instead (minutes)?",
|
|
157
|
+
"defaultValue": "60",
|
|
158
|
+
"type": "number"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"key": "DEFER_HOURS",
|
|
162
|
+
"label": "Within how many hours must a deferred action complete?",
|
|
163
|
+
"defaultValue": "24",
|
|
164
|
+
"type": "number"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"nodes": [
|
|
169
|
+
{
|
|
170
|
+
"id": "need",
|
|
171
|
+
"type": "need",
|
|
172
|
+
"label": "Outages outside stay outside",
|
|
173
|
+
"x": 0,
|
|
174
|
+
"y": 0,
|
|
175
|
+
"kind": "brief",
|
|
176
|
+
"source": "Hub concern pack: Integration resilience",
|
|
177
|
+
"description": "The system depends on systems it does not run: payment, e-mail, maps, partners. They are slow or down at times, and their answers get lost on the way. Without decisions, one slow partner holds every thread, retries make a charge twice or pile onto a system that is already struggling, and users see errors, or wait without end, for something that could have waited or come from a cache."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "req-timeout",
|
|
181
|
+
"type": "requirement",
|
|
182
|
+
"label": "Calls time out",
|
|
183
|
+
"x": 260,
|
|
184
|
+
"y": 0,
|
|
185
|
+
"ears_type": "ubiquitous",
|
|
186
|
+
"action": "give every call to an outside system a connect timeout of at most 1000 ms and a total timeout of {{TIMEOUT_MS}} ms, and make no call without them",
|
|
187
|
+
"rationale": "A call without a timeout turns the other side's outage into ours: threads and connections wait until nothing is left (AWS Builders' Library, Timeouts, retries and backoff with jitter)."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "req-retry",
|
|
191
|
+
"type": "requirement",
|
|
192
|
+
"label": "Transient failures retried",
|
|
193
|
+
"x": 260,
|
|
194
|
+
"y": 130,
|
|
195
|
+
"ears_type": "unwanted-behaviour",
|
|
196
|
+
"unwanted_condition": "a call to an outside system times out, has its connection refused or reset, or is answered 408, 429, 502, 503 or 504",
|
|
197
|
+
"action": "retry it at most {{RETRIES}} times with exponential backoff and full jitter starting at {{BACKOFF_MS}} ms, wait at least as long as a Retry-After header asks, never start a retry that could not finish within the action's deadline, and never retry any other 4xx answer",
|
|
198
|
+
"rationale": "Most failures are brief, so a retry often succeeds; jitter keeps every instance from retrying at the same moment, and a 4xx other than 408 and 429 will fail the same way again (AWS Builders' Library; RFC 9110 10.2.3)."
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id": "req-breaker",
|
|
202
|
+
"type": "requirement",
|
|
203
|
+
"label": "Failing systems left alone",
|
|
204
|
+
"x": 260,
|
|
205
|
+
"y": 260,
|
|
206
|
+
"ears_type": "unwanted-behaviour",
|
|
207
|
+
"unwanted_condition": "more than {{BREAKER_PERCENT}} % of at least 20 calls to one outside system within 30 seconds fail or time out",
|
|
208
|
+
"action": "stop calling it for 30 seconds (open the circuit), treat each call in that time as if the system were down, then let at most 3 trial calls through and resume only when they succeed",
|
|
209
|
+
"rationale": "Calling a system that is down wastes the caller's time and keeps the other side down; the breaker fails at once and probes for recovery (microservices.io, Circuit Breaker; Azure Architecture Center)."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "req-fail",
|
|
213
|
+
"type": "requirement",
|
|
214
|
+
"label": "Outage refused cleanly",
|
|
215
|
+
"x": 260,
|
|
216
|
+
"y": 390,
|
|
217
|
+
"ears_type": "unwanted-behaviour",
|
|
218
|
+
"unwanted_condition": "an action needs an outside system that is down or whose circuit is open",
|
|
219
|
+
"action": "refuse the action within {{DEADLINE_MS}} ms, retries included, with an answer that says it is temporary (503 with Retry-After for an API), and leave nothing half done",
|
|
220
|
+
"rationale": "A clear refusal in bounded time beats a spinner and a half-done action; Retry-After tells callers when to come back (RFC 9110 15.6.4).",
|
|
221
|
+
"hubWhen": {
|
|
222
|
+
"FAILURE": [
|
|
223
|
+
"fail"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "req-degrade",
|
|
229
|
+
"type": "requirement",
|
|
230
|
+
"label": "Answers with less",
|
|
231
|
+
"x": 260,
|
|
232
|
+
"y": 520,
|
|
233
|
+
"ears_type": "unwanted-behaviour",
|
|
234
|
+
"unwanted_condition": "an outside system an answer uses is down or its circuit is open",
|
|
235
|
+
"action": "answer within {{DEADLINE_MS}} ms from data cached no more than {{STALE_MINUTES}} minutes ago, or from a default when there is none, and mark the answer as incomplete",
|
|
236
|
+
"rationale": "Most of the value survives without the outside part; marking it keeps a stale or default value from being taken as current.",
|
|
237
|
+
"hubWhen": {
|
|
238
|
+
"FAILURE": [
|
|
239
|
+
"degrade"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "req-degrade-writes",
|
|
245
|
+
"type": "requirement",
|
|
246
|
+
"label": "Changes still refused",
|
|
247
|
+
"x": 260,
|
|
248
|
+
"y": 650,
|
|
249
|
+
"ears_type": "unwanted-behaviour",
|
|
250
|
+
"unwanted_condition": "an action that changes something needs an outside system that is down",
|
|
251
|
+
"action": "refuse it within {{DEADLINE_MS}} ms as temporary, leaving nothing half done, rather than completing it from cached data",
|
|
252
|
+
"rationale": "A cache can stand in for a read, never for a change the other side has to make.",
|
|
253
|
+
"hubWhen": {
|
|
254
|
+
"FAILURE": [
|
|
255
|
+
"degrade"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"id": "req-defer",
|
|
261
|
+
"type": "requirement",
|
|
262
|
+
"label": "Accepted, completed later",
|
|
263
|
+
"x": 260,
|
|
264
|
+
"y": 780,
|
|
265
|
+
"ears_type": "event-driven",
|
|
266
|
+
"trigger": "a user starts an action that needs an outside system",
|
|
267
|
+
"action": "store the action durably before answering, answer within {{DEADLINE_MS}} ms with a reference to follow it by (202 for an API), and make the call from a queue, telling the user when it completes",
|
|
268
|
+
"rationale": "The user's intent is kept whatever the outside system does; the queue absorbs its outages and its slowness.",
|
|
269
|
+
"hubWhen": {
|
|
270
|
+
"FAILURE": [
|
|
271
|
+
"defer"
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"id": "req-defer-expire",
|
|
277
|
+
"type": "requirement",
|
|
278
|
+
"label": "Stuck work surfaced",
|
|
279
|
+
"x": 260,
|
|
280
|
+
"y": 910,
|
|
281
|
+
"ears_type": "unwanted-behaviour",
|
|
282
|
+
"unwanted_condition": "a deferred action has not completed within {{DEFER_HOURS}} hours",
|
|
283
|
+
"action": "stop retrying it, move it to a dead-letter queue, tell the user it did not complete, and alert the owner of the integration",
|
|
284
|
+
"rationale": "Deferred work that retries for ever hides an outage and a promise broken to the user (Enterprise Integration Patterns, Dead Letter Channel).",
|
|
285
|
+
"hubWhen": {
|
|
286
|
+
"FAILURE": [
|
|
287
|
+
"defer"
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "req-idem-key",
|
|
293
|
+
"type": "requirement",
|
|
294
|
+
"label": "Repeats carry one key",
|
|
295
|
+
"x": 260,
|
|
296
|
+
"y": 1040,
|
|
297
|
+
"ears_type": "ubiquitous",
|
|
298
|
+
"action": "send an Idempotency-Key with every call that changes something in an outside system: one key per intended change, the same on every retry of it, stored with the change for at least 24 hours",
|
|
299
|
+
"rationale": "A timeout does not say whether the other side acted; the key makes the retry return the first result instead of acting again (IETF Idempotency-Key header draft; AWS Builders' Library, Making retries safe).",
|
|
300
|
+
"hubWhen": {
|
|
301
|
+
"IDEMPOTENCY": [
|
|
302
|
+
"keys"
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"id": "req-idem-lookup",
|
|
308
|
+
"type": "requirement",
|
|
309
|
+
"label": "Look up before repeating",
|
|
310
|
+
"x": 260,
|
|
311
|
+
"y": 1170,
|
|
312
|
+
"ears_type": "unwanted-behaviour",
|
|
313
|
+
"unwanted_condition": "a call that changes something in an outside system times out or its answer is lost",
|
|
314
|
+
"action": "look the change up there by the reference we sent with it, and repeat the call only when no change with that reference exists",
|
|
315
|
+
"rationale": "Without an idempotency key, asking is the only way to know whether a lost call took effect (AWS Builders' Library, Making retries safe).",
|
|
316
|
+
"hubWhen": {
|
|
317
|
+
"IDEMPOTENCY": [
|
|
318
|
+
"lookup"
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"id": "req-readonly",
|
|
324
|
+
"type": "requirement",
|
|
325
|
+
"label": "Only safe calls",
|
|
326
|
+
"x": 260,
|
|
327
|
+
"y": 1300,
|
|
328
|
+
"ears_type": "ubiquitous",
|
|
329
|
+
"action": "call outside systems only with safe methods (GET, HEAD, OPTIONS, or the read-only operations of the API), so that every call may be retried",
|
|
330
|
+
"rationale": "Safe methods change nothing on the other side, so retries need no protection (RFC 9110 9.2.1).",
|
|
331
|
+
"hubWhen": {
|
|
332
|
+
"IDEMPOTENCY": [
|
|
333
|
+
"readonly"
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"id": "req-library",
|
|
339
|
+
"type": "requirement",
|
|
340
|
+
"label": "One guarded client",
|
|
341
|
+
"x": 260,
|
|
342
|
+
"y": 1430,
|
|
343
|
+
"ears_type": "ubiquitous",
|
|
344
|
+
"action": "make every call to an outside system through one client per system that applies its timeout, retries and circuit breaker, so that no other code calls it directly",
|
|
345
|
+
"rationale": "Rules applied call by call are forgotten on the next call; one guarded client per system makes them hold everywhere.",
|
|
346
|
+
"hubWhen": {
|
|
347
|
+
"PROTECTION": [
|
|
348
|
+
"library"
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"id": "req-mesh",
|
|
354
|
+
"type": "requirement",
|
|
355
|
+
"label": "Guarded by the mesh",
|
|
356
|
+
"x": 260,
|
|
357
|
+
"y": 1560,
|
|
358
|
+
"ears_type": "ubiquitous",
|
|
359
|
+
"action": "route every call to an outside system through the mesh, with a timeout of {{TIMEOUT_MS}} ms, at most {{RETRIES}} retries and outlier detection configured for its host in the repository, and allow no egress to a host without them",
|
|
360
|
+
"rationale": "In the mesh, the rules are the same for every language and visible in one place; a host without them is an unguarded call.",
|
|
361
|
+
"hubWhen": {
|
|
362
|
+
"PROTECTION": [
|
|
363
|
+
"mesh"
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"id": "sc-timeout",
|
|
369
|
+
"type": "scenario",
|
|
370
|
+
"label": "Slow partner cut off",
|
|
371
|
+
"x": 520,
|
|
372
|
+
"y": 0,
|
|
373
|
+
"given": "an outside system that answers after a minute",
|
|
374
|
+
"when": "it is called",
|
|
375
|
+
"then": "the call gives up after {{TIMEOUT_MS}} ms and the thread is free again"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"id": "sc-retry",
|
|
379
|
+
"type": "scenario",
|
|
380
|
+
"label": "Brief failure absorbed",
|
|
381
|
+
"x": 520,
|
|
382
|
+
"y": 130,
|
|
383
|
+
"given": "an outside system that answers 503 once and then 200",
|
|
384
|
+
"when": "it is called, and then a system that always answers 503, and one that answers 400",
|
|
385
|
+
"then": "the first call succeeds on its first retry; the second gives up after {{RETRIES}} retries whose delays differ between two runs; the third is not retried"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "sc-breaker",
|
|
389
|
+
"type": "scenario",
|
|
390
|
+
"label": "Calls paused",
|
|
391
|
+
"x": 520,
|
|
392
|
+
"y": 260,
|
|
393
|
+
"given": "an outside system that fails every call",
|
|
394
|
+
"when": "20 calls have failed within 30 seconds and more are made",
|
|
395
|
+
"then": "the further calls fail at once without reaching it, after 30 seconds at most 3 trial calls reach it, and calls resume once trial calls succeed"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"id": "sc-fail",
|
|
399
|
+
"type": "scenario",
|
|
400
|
+
"label": "Clean refusal",
|
|
401
|
+
"x": 520,
|
|
402
|
+
"y": 390,
|
|
403
|
+
"given": "the outside system down",
|
|
404
|
+
"when": "the user starts an action that needs it",
|
|
405
|
+
"then": "within {{DEADLINE_MS}} ms the action is refused as temporary and nothing has changed",
|
|
406
|
+
"hubWhen": {
|
|
407
|
+
"FAILURE": [
|
|
408
|
+
"fail"
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"id": "sc-degrade",
|
|
414
|
+
"type": "scenario",
|
|
415
|
+
"label": "Partial answer",
|
|
416
|
+
"x": 520,
|
|
417
|
+
"y": 520,
|
|
418
|
+
"given": "the outside system down and its answer cached 10 minutes ago",
|
|
419
|
+
"when": "the user opens a page that uses it",
|
|
420
|
+
"then": "the page shows within {{DEADLINE_MS}} ms with the cached part marked as not current",
|
|
421
|
+
"hubWhen": {
|
|
422
|
+
"FAILURE": [
|
|
423
|
+
"degrade"
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"id": "sc-degrade-writes",
|
|
429
|
+
"type": "scenario",
|
|
430
|
+
"label": "No change from cache",
|
|
431
|
+
"x": 520,
|
|
432
|
+
"y": 650,
|
|
433
|
+
"given": "the outside system down",
|
|
434
|
+
"when": "the user starts an action that changes something there",
|
|
435
|
+
"then": "it is refused as temporary and nothing has changed on either side",
|
|
436
|
+
"hubWhen": {
|
|
437
|
+
"FAILURE": [
|
|
438
|
+
"degrade"
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"id": "sc-defer",
|
|
444
|
+
"type": "scenario",
|
|
445
|
+
"label": "Done once it is back",
|
|
446
|
+
"x": 520,
|
|
447
|
+
"y": 780,
|
|
448
|
+
"given": "the outside system down",
|
|
449
|
+
"when": "the user starts an action that needs it, and the system comes back an hour later",
|
|
450
|
+
"then": "the action is accepted with a reference at once, completes after the system is back, and the user is told",
|
|
451
|
+
"hubWhen": {
|
|
452
|
+
"FAILURE": [
|
|
453
|
+
"defer"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"id": "sc-defer-expire",
|
|
459
|
+
"type": "scenario",
|
|
460
|
+
"label": "Gives up visibly",
|
|
461
|
+
"x": 520,
|
|
462
|
+
"y": 910,
|
|
463
|
+
"given": "an outside system down for longer than {{DEFER_HOURS}} hours",
|
|
464
|
+
"when": "a deferred action has waited {{DEFER_HOURS}} hours",
|
|
465
|
+
"then": "it is in the dead-letter queue, the user is told, and the owner is alerted",
|
|
466
|
+
"hubWhen": {
|
|
467
|
+
"FAILURE": [
|
|
468
|
+
"defer"
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": "sc-idem-key",
|
|
474
|
+
"type": "scenario",
|
|
475
|
+
"label": "Charge made once",
|
|
476
|
+
"x": 520,
|
|
477
|
+
"y": 1040,
|
|
478
|
+
"given": "a payment call whose answer is lost",
|
|
479
|
+
"when": "it is retried",
|
|
480
|
+
"then": "the retry carries the same key, and the customer is charged once",
|
|
481
|
+
"hubWhen": {
|
|
482
|
+
"IDEMPOTENCY": [
|
|
483
|
+
"keys"
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"id": "sc-idem-lookup",
|
|
489
|
+
"type": "scenario",
|
|
490
|
+
"label": "Lost answer not repeated",
|
|
491
|
+
"x": 520,
|
|
492
|
+
"y": 1170,
|
|
493
|
+
"given": "a booking call that took effect but whose answer was lost",
|
|
494
|
+
"when": "the client recovers from the timeout",
|
|
495
|
+
"then": "it finds the booking by our reference and does not book again",
|
|
496
|
+
"hubWhen": {
|
|
497
|
+
"IDEMPOTENCY": [
|
|
498
|
+
"lookup"
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"id": "sc-readonly",
|
|
504
|
+
"type": "scenario",
|
|
505
|
+
"label": "Reads only",
|
|
506
|
+
"x": 520,
|
|
507
|
+
"y": 1300,
|
|
508
|
+
"given": "every client of an outside system in the code",
|
|
509
|
+
"when": "the calls they make are listed",
|
|
510
|
+
"then": "each uses a safe method",
|
|
511
|
+
"hubWhen": {
|
|
512
|
+
"IDEMPOTENCY": [
|
|
513
|
+
"readonly"
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"id": "sc-library",
|
|
519
|
+
"type": "scenario",
|
|
520
|
+
"label": "Direct call refused",
|
|
521
|
+
"x": 520,
|
|
522
|
+
"y": 1430,
|
|
523
|
+
"given": "the code base",
|
|
524
|
+
"when": "a module outside the integration clients opens an HTTP connection to an outside host",
|
|
525
|
+
"then": "the architecture check fails the build",
|
|
526
|
+
"hubWhen": {
|
|
527
|
+
"PROTECTION": [
|
|
528
|
+
"library"
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"id": "sc-mesh",
|
|
534
|
+
"type": "scenario",
|
|
535
|
+
"label": "Unguarded host refused",
|
|
536
|
+
"x": 520,
|
|
537
|
+
"y": 1560,
|
|
538
|
+
"given": "the mesh configuration in the repository",
|
|
539
|
+
"when": "an outside host is added without a timeout, retries or outlier detection, or egress to undeclared hosts is opened",
|
|
540
|
+
"then": "the configuration check fails the pull request",
|
|
541
|
+
"hubWhen": {
|
|
542
|
+
"PROTECTION": [
|
|
543
|
+
"mesh"
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"id": "adr-fail",
|
|
549
|
+
"type": "adr",
|
|
550
|
+
"label": "Outside outages fail fast",
|
|
551
|
+
"x": 780,
|
|
552
|
+
"y": 0,
|
|
553
|
+
"concern": "integration-resilience",
|
|
554
|
+
"status": "accepted",
|
|
555
|
+
"date": "",
|
|
556
|
+
"context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down. Snippets assume one client per outside system under src/integrations/<system>/ (package ..integration.. with classes named *Client on the JVM) and the mesh manifests under mesh/.",
|
|
557
|
+
"decision": "Calls to outside systems are made while the user waits. Each gives up after {{TIMEOUT_MS}} ms; transient failures are retried at most {{RETRIES}} times with exponential backoff and full jitter from {{BACKOFF_MS}} ms, within a deadline of {{DEADLINE_MS}} ms for the whole action: the deadline wins, so a retry that could not finish in time is not started. A circuit breaker per outside system opens above {{BREAKER_PERCENT}} % failures. Repeated calls: {{IDEMPOTENCY}}. While a system is down or its circuit open, an action that needs it is refused at once as temporary (503 with Retry-After), with nothing half done. Choose it over degrading when the action is worthless without the answer.",
|
|
558
|
+
"consequences": "• Outages are short and visible to the user; nothing is left half done.\n• The user has to come back and try again; some will not.\n• The deadline bounds how long anyone waits, so with a slow partner fewer than {{RETRIES}} retries happen by design.",
|
|
559
|
+
"alternatives": "1. Go on with less from a cache or defaults: more available for reads, more code, stale data.\n2. Accept and complete later from a queue: nothing refused, but the user waits for the result.\n3. No timeouts or breakers: simplest, until one slow partner stops everything.",
|
|
560
|
+
"hubWhen": {
|
|
561
|
+
"FAILURE": [
|
|
562
|
+
"fail"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"id": "adr-degrade",
|
|
568
|
+
"type": "adr",
|
|
569
|
+
"label": "Outside outages degrade gracefully",
|
|
570
|
+
"x": 780,
|
|
571
|
+
"y": 130,
|
|
572
|
+
"concern": "integration-resilience",
|
|
573
|
+
"status": "accepted",
|
|
574
|
+
"date": "",
|
|
575
|
+
"context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down. Snippets assume one client per outside system under src/integrations/<system>/ (package ..integration.. with classes named *Client on the JVM) and the mesh manifests under mesh/.",
|
|
576
|
+
"decision": "Calls to outside systems are made while the user waits. Each gives up after {{TIMEOUT_MS}} ms; transient failures are retried at most {{RETRIES}} times with exponential backoff and full jitter from {{BACKOFF_MS}} ms, within a deadline of {{DEADLINE_MS}} ms: the deadline wins, so a retry that could not finish in time is not started. A circuit breaker per outside system opens above {{BREAKER_PERCENT}} % failures. Repeated calls: {{IDEMPOTENCY}}. Every read has a fallback: the last good answer, cached for up to {{STALE_MINUTES}} minutes (Redis, Caffeine, or the HTTP cache with stale-if-error), or a default; the answer is marked incomplete. Changes that need the outside system are refused as temporary. Choose it for reads whose outside part is nice to have or changes slowly.",
|
|
577
|
+
"consequences": "• Users keep working through outages, with a visible note that part of the answer is not current.\n• Every read call needs a fallback, written and tested; a cache to size and expire.\n• Stale data must be safe to show for {{STALE_MINUTES}} minutes; prices and stock rarely are.",
|
|
578
|
+
"alternatives": "1. Fail fast: simpler, less available.\n2. Accept and complete later: for actions rather than reads.\n3. Prefetch everything into our own store: always available, but a copy to keep in sync.",
|
|
579
|
+
"hubWhen": {
|
|
580
|
+
"FAILURE": [
|
|
581
|
+
"degrade"
|
|
582
|
+
]
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"id": "adr-defer",
|
|
587
|
+
"type": "adr",
|
|
588
|
+
"label": "Outside work completed later",
|
|
589
|
+
"x": 780,
|
|
590
|
+
"y": 260,
|
|
591
|
+
"concern": "integration-resilience",
|
|
592
|
+
"status": "accepted",
|
|
593
|
+
"date": "",
|
|
594
|
+
"context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down. Snippets assume one client per outside system under src/integrations/<system>/ (package ..integration.. with classes named *Client on the JVM) and the mesh manifests under mesh/.",
|
|
595
|
+
"decision": "Actions that need an outside system are stored durably (an outbox or a job table in the same transaction as the action) and answered at once with a reference; a worker makes the call from a queue (the broker in use, or a job runner such as Hangfire, Sidekiq, BullMQ or Temporal). Each call gives up after {{TIMEOUT_MS}} ms; transient failures are retried at once at most {{RETRIES}} times with exponential backoff and full jitter from {{BACKOFF_MS}} ms, then again with backoff capped at 15 minutes until {{DEFER_HOURS}} hours have passed, when the action goes to a dead-letter queue, the user is told and the owner alerted. A circuit breaker per outside system opens above {{BREAKER_PERCENT}} % failures and pauses the worker. Repeated calls: {{IDEMPOTENCY}}.",
|
|
596
|
+
"consequences": "• No action is lost to an outage, and the user never waits on the outside system.\n• The user learns the outcome later: the interface must show work in progress and notify.\n• A queue and workers to run and watch, with a dead-letter path and an owner for it.",
|
|
597
|
+
"alternatives": "1. Fail fast while the user waits: simpler, but the action is lost when the system is down.\n2. Go on with less: for reads, not for actions that must happen.\n3. A workflow engine (Temporal, AWS Step Functions) for multi-step integrations: durable retries and timers built in, one more platform.",
|
|
598
|
+
"hubWhen": {
|
|
599
|
+
"FAILURE": [
|
|
600
|
+
"defer"
|
|
601
|
+
]
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"id": "adr-library",
|
|
606
|
+
"type": "adr",
|
|
607
|
+
"label": "Resilience in a library per client",
|
|
608
|
+
"x": 780,
|
|
609
|
+
"y": 390,
|
|
610
|
+
"concern": "integration-resilience",
|
|
611
|
+
"status": "accepted",
|
|
612
|
+
"date": "",
|
|
613
|
+
"context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down. Snippets assume one client per outside system under src/integrations/<system>/ (package ..integration.. with classes named *Client on the JVM) and the mesh manifests under mesh/.",
|
|
614
|
+
"decision": "Each outside system has one client in the code, the only code that calls it, and every call goes through the resilience pipeline of the stack's library: Resilience4j (TimeLimiter, Retry with exponential random backoff, CircuitBreaker, Bulkhead) on the JVM, Microsoft.Extensions.Http.Resilience (Polly v8) in .NET, cockatiel in Node.js, failsafe-go in Go. Settings come from configuration per outside system: timeout {{TIMEOUT_MS}} ms, at most {{RETRIES}} retries from {{BACKOFF_MS}} ms, circuit open above {{BREAKER_PERCENT}} %. The client knows which calls are safe to repeat and holds the fallback. The library's metrics (calls, retries, breaker state) are exported. Choose a library when calls need fallbacks or idempotency logic, or there is no mesh.",
|
|
615
|
+
"consequences": "• The rules sit next to the call, which knows whether it may be repeated and what to do instead.\n• One library per language: each stack configures and tests it on its own.\n• A client per outside system is code to keep; an architecture rule keeps others from bypassing it.",
|
|
616
|
+
"alternatives": "1. The service mesh: the same rules for every language in configuration, but blind to idempotency and fallbacks.\n2. An API gateway for outgoing calls: one place for all, one more hop and owner.\n3. Hand-written retry loops: no dependency, and every one slightly different.",
|
|
617
|
+
"hubWhen": {
|
|
618
|
+
"PROTECTION": [
|
|
619
|
+
"library"
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"id": "adr-mesh",
|
|
625
|
+
"type": "adr",
|
|
626
|
+
"label": "Resilience in the service mesh",
|
|
627
|
+
"x": 780,
|
|
628
|
+
"y": 520,
|
|
629
|
+
"concern": "integration-resilience",
|
|
630
|
+
"status": "accepted",
|
|
631
|
+
"date": "",
|
|
632
|
+
"context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down. Snippets assume one client per outside system under src/integrations/<system>/ (package ..integration.. with classes named *Client on the JVM) and the mesh manifests under mesh/.",
|
|
633
|
+
"decision": "Every outside host is declared to the mesh (Istio ServiceEntry, or Linkerd with an egress policy) and gets, in configuration kept in the repository: a timeout of {{TIMEOUT_MS}} ms, at most {{RETRIES}} retries on connect-failure, refused-stream, reset and 503 (and on other failures only for safe methods), and outlier detection that ejects the host for 30 seconds after consecutive 5xx (the mesh's circuit breaker). Egress to hosts not declared is blocked (outboundTrafficPolicy REGISTRY_ONLY). The code keeps what the mesh cannot know: idempotency ({{IDEMPOTENCY}}) and fallbacks. Choose the mesh when it already carries all traffic and many services in several languages call the same outside systems.",
|
|
634
|
+
"consequences": "• The same rules for every service and language, changed without a release.\n• The mesh retries without knowing whether a call is safe to repeat: retries on other failures stay limited to safe methods, and the code still sends idempotency protection.\n• Jitter and retry budgets are the mesh's (Envoy), not tuned per call.\n• Debugging spans the application and the sidecar.",
|
|
635
|
+
"alternatives": "1. A resilience library in each client: aware of idempotency and fallbacks, one per language.\n2. An egress gateway only: one place to watch, but a shared bottleneck.",
|
|
636
|
+
"hubWhen": {
|
|
637
|
+
"PROTECTION": [
|
|
638
|
+
"mesh"
|
|
639
|
+
]
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"id": "ff-timeout",
|
|
644
|
+
"type": "fitness-fn",
|
|
645
|
+
"label": "Slow calls cut off",
|
|
646
|
+
"x": 1040,
|
|
647
|
+
"y": 0,
|
|
648
|
+
"characteristic": "reliability",
|
|
649
|
+
"scope": "atomic",
|
|
650
|
+
"cadence": "triggered",
|
|
651
|
+
"trigger": "pull-request",
|
|
652
|
+
"invocation": "automated",
|
|
653
|
+
"description": "An integration test puts a Toxiproxy proxy in front of each outside system (or its sandbox stub), adds a latency toxic far above the timeout, and measures one attempt with retries turned off and then a whole action with the production settings.\n\nThreshold: With 10 s of latency injected on each outside system, a single attempt gives up within {{TIMEOUT_MS}} ms + 10 %, and no user action waits longer than {{DEADLINE_MS}} ms\n\nTool: Toxiproxy (Testcontainers module) with Vitest (or the test runner of your stack)\n\n```ts\nimport { ToxiProxyContainer } from '@testcontainers/toxiproxy'\n\nconst slowPartner = async () => {\n const toxiproxy = await new ToxiProxyContainer('ghcr.io/shopify/toxiproxy:2.9.0').start()\n const proxy = await toxiproxy.createProxy({ name: 'partner', upstream: 'partner-stub:8080' })\n await proxy.instance.addToxic({ type: 'latency', name: 'slow', stream: 'downstream', toxicity: 1, attributes: { latency: 10_000 } })\n return 'http://' + proxy.host + ':' + proxy.port\n}\n\nit('one attempt gives up at the timeout', async () => {\n const client = partnerClient(await slowPartner(), { retries: 0 }) // production settings, retries off\n const started = Date.now()\n await expect(client.getQuote(SAMPLE)).rejects.toThrow()\n expect(Date.now() - started).toBeLessThan({{TIMEOUT_MS}} * 1.1)\n})\n\nit('a whole action stays within the deadline', async () => {\n const client = partnerClient(await slowPartner()) // production settings\n const started = Date.now()\n await expect(client.getQuote(SAMPLE)).rejects.toThrow()\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n})\n```"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"id": "ff-retry",
|
|
657
|
+
"type": "fitness-fn",
|
|
658
|
+
"label": "Retries bounded and jittered",
|
|
659
|
+
"x": 1040,
|
|
660
|
+
"y": 130,
|
|
661
|
+
"characteristic": "reliability",
|
|
662
|
+
"scope": "atomic",
|
|
663
|
+
"cadence": "triggered",
|
|
664
|
+
"trigger": "pull-request",
|
|
665
|
+
"invocation": "automated",
|
|
666
|
+
"description": "A test points the production client at a WireMock stub that always fails, counts the requests it received and their spacing over two runs (jitter makes the two sequences differ; plain exponential backoff repeats them), and repeats with an answer that must not be retried.\n\nThreshold: Against a stub that always answers 503: exactly {{RETRIES}} + 1 attempts per run, and the delays of two runs differ; against 400: exactly 1 attempt\n\nTool: WireMock (JUnit 5 extension; WireMock.Net, the WireMock container, or the stub server of your stack)\n\n```java\n@WireMockTest\nclass PartnerRetryTest {\n static final int RETRIES = {{RETRIES}};\n\n List<Long> gapsOfOneRun(WireMockRuntimeInfo wm) {\n resetAllRequests();\n assertThrows(PartnerUnavailableException.class, () -> PartnerClient.create(wm.getHttpBaseUrl()).quote(SAMPLE)); // production settings\n var requests = findAll(getRequestedFor(urlPathEqualTo(\"/quotes\")));\n assertEquals(RETRIES + 1, requests.size());\n return IntStream.range(1, requests.size())\n .mapToObj(i -> requests.get(i).getLoggedDate().getTime() - requests.get(i - 1).getLoggedDate().getTime())\n .toList();\n }\n\n @Test\n void retriesTransientFailuresAFewTimesWithJitter(WireMockRuntimeInfo wm) {\n stubFor(get(urlPathEqualTo(\"/quotes\")).willReturn(serviceUnavailable()));\n var first = gapsOfOneRun(wm);\n var second = gapsOfOneRun(wm);\n assertNotEquals(first, second, \"delays are jittered: two runs never wait the same\");\n }\n\n @Test\n void doesNotRetryAClientError(WireMockRuntimeInfo wm) {\n stubFor(get(urlPathEqualTo(\"/quotes\")).willReturn(badRequest()));\n assertThrows(PartnerRejectedException.class, () -> PartnerClient.create(wm.getHttpBaseUrl()).quote(SAMPLE));\n verify(exactly(1), getRequestedFor(urlPathEqualTo(\"/quotes\")));\n }\n}\n```"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"id": "ff-breaker",
|
|
670
|
+
"type": "fitness-fn",
|
|
671
|
+
"label": "Circuit opens and recovers",
|
|
672
|
+
"x": 1040,
|
|
673
|
+
"y": 260,
|
|
674
|
+
"characteristic": "reliability",
|
|
675
|
+
"scope": "atomic",
|
|
676
|
+
"cadence": "triggered",
|
|
677
|
+
"trigger": "pull-request",
|
|
678
|
+
"invocation": "automated",
|
|
679
|
+
"description": "A black-box test against a running instance (with its library or its sidecar) points the outside host at a WireMockServer started by the test, drives calls through the instance, and counts what reaches the stub before, during and after the open period.\n\nThreshold: With every call failing (above {{BREAKER_PERCENT}} %), after 20 calls within 30 s 0 of the next 50 calls reach the outside system; after 30 s at most 3 of 10 calls reach it while it still fails; once it answers, calls resume\n\nTool: WireMockServer (JUnit 5; or the stub server of your stack) against the running instance\n\n```java\n// wiremock: new WireMockServer(options().port(8089)), the instance under test points its outside host at it\n@Test\nvoid circuitOpensThenProbes() throws Exception {\n wiremock.stubFor(get(anyUrl()).willReturn(serviceUnavailable()));\n for (int i = 0; i < 20; i++) app.get(\"/quote\"); // calls through the instance under test\n wiremock.resetRequests();\n for (int i = 0; i < 50; i++) app.get(\"/quote\");\n assertEquals(0, wiremock.findAll(getRequestedFor(anyUrl())).size(), \"circuit is open\");\n\n Thread.sleep(30_000);\n wiremock.resetRequests();\n for (int i = 0; i < 10; i++) app.get(\"/quote\"); // half-open: only trial calls reach the stub\n assertTrue(wiremock.findAll(getRequestedFor(anyUrl())).size() <= 3, \"at most 3 trial calls\");\n\n wiremock.stubFor(get(anyUrl()).willReturn(ok(\"{}\")));\n Thread.sleep(30_000);\n for (int i = 0; i < 3; i++) app.get(\"/quote\"); // trial calls succeed\n assertEquals(200, app.get(\"/quote\").statusCode(), \"circuit closed after successful trials\");\n}\n```"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"id": "ff-fail",
|
|
683
|
+
"type": "fitness-fn",
|
|
684
|
+
"label": "Outage drill: refused cleanly",
|
|
685
|
+
"x": 1040,
|
|
686
|
+
"y": 390,
|
|
687
|
+
"characteristic": "reliability",
|
|
688
|
+
"scope": "atomic",
|
|
689
|
+
"cadence": "triggered",
|
|
690
|
+
"trigger": "pull-request",
|
|
691
|
+
"invocation": "automated",
|
|
692
|
+
"description": "An integration test cuts each outside system off with Toxiproxy, runs the actions that need it, and checks the answer, its time and that the database is unchanged.\n\nThreshold: With each outside system down, every user action that needs it answers 503 with Retry-After within {{DEADLINE_MS}} ms, and 0 records are changed\n\nTool: Toxiproxy (Testcontainers module) with Vitest and supertest (or the test runner and HTTP client of your stack)\n\n```ts\nit('refuses an action cleanly while the partner is down', async () => {\n await partnerProxy.setEnabled(false) // Toxiproxy: the partner is unreachable\n const before = await snapshot(db)\n const started = Date.now()\n const res = await request(app).post('/orders').send(SAMPLE_ORDER)\n expect(res.status).toBe(503)\n expect(res.headers['retry-after']).toBeDefined()\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n expect(await snapshot(db)).toEqual(before)\n})\n```",
|
|
693
|
+
"hubWhen": {
|
|
694
|
+
"FAILURE": [
|
|
695
|
+
"fail"
|
|
696
|
+
]
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"id": "ff-degrade",
|
|
701
|
+
"type": "fitness-fn",
|
|
702
|
+
"label": "Outage drill: answers with less",
|
|
703
|
+
"x": 1040,
|
|
704
|
+
"y": 520,
|
|
705
|
+
"characteristic": "reliability",
|
|
706
|
+
"scope": "atomic",
|
|
707
|
+
"cadence": "triggered",
|
|
708
|
+
"trigger": "pull-request",
|
|
709
|
+
"invocation": "automated",
|
|
710
|
+
"description": "An integration test warms the cache, cuts the outside system off with Toxiproxy, and checks that reads still answer, in time and marked incomplete, while changes are refused in time and leave the database as it was.\n\nThreshold: With each outside system down, every read that uses it answers within {{DEADLINE_MS}} ms from data at most {{STALE_MINUTES}} minutes old or a default, marked incomplete; every change that needs it answers 503 within {{DEADLINE_MS}} ms with nothing changed\n\nTool: Toxiproxy (Testcontainers module) with Vitest and supertest (or the test runner and HTTP client of your stack)\n\n```ts\nit('answers from the cache, marked, while the partner is down', async () => {\n await request(app).get('/products/42').expect(200) // warms the cache\n await partnerProxy.setEnabled(false)\n const started = Date.now()\n const res = await request(app).get('/products/42').expect(200)\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n expect(res.body.incomplete).toEqual(['shippingEstimate'])\n expect(res.body.shippingEstimate.asOfMinutesAgo).toBeLessThanOrEqual({{STALE_MINUTES}})\n})\n\nit('refuses a change in time, with nothing changed', async () => {\n await partnerProxy.setEnabled(false)\n const before = await snapshot(db)\n const started = Date.now()\n await request(app).post('/products/42/reserve').expect(503)\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n expect(await snapshot(db)).toEqual(before)\n})\n```",
|
|
711
|
+
"hubWhen": {
|
|
712
|
+
"FAILURE": [
|
|
713
|
+
"degrade"
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"id": "ff-defer",
|
|
719
|
+
"type": "fitness-fn",
|
|
720
|
+
"label": "Outage drill: completed later",
|
|
721
|
+
"x": 1040,
|
|
722
|
+
"y": 650,
|
|
723
|
+
"characteristic": "reliability",
|
|
724
|
+
"scope": "atomic",
|
|
725
|
+
"cadence": "triggered",
|
|
726
|
+
"trigger": "pull-request",
|
|
727
|
+
"invocation": "automated",
|
|
728
|
+
"description": "An integration test cuts the outside system off, starts actions, restarts the worker, brings the system back and waits for completion; a second test advances the clock past the deadline and expects the dead letter and the notices.\n\nThreshold: With the outside system down, every action is accepted with 202 within {{DEADLINE_MS}} ms and completes after it is back, 0 actions lost; an action still waiting after {{DEFER_HOURS}} h is in the dead-letter queue with the user and the owner told\n\nTool: Toxiproxy (Testcontainers module) with Vitest (fake timers for the deadline; or the test runner of your stack)\n\n```ts\nit('keeps the action and completes it once the partner is back', async () => {\n await partnerProxy.setEnabled(false)\n const started = Date.now()\n const res = await request(app).post('/bookings').send(SAMPLE_BOOKING).expect(202)\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n await restartWorker()\n await partnerProxy.setEnabled(true)\n await waitFor(async () => (await request(app).get(res.body.statusUrl)).body.state === 'completed')\n expect(await partnerStub.bookings()).toHaveLength(1)\n})\n\nit('gives up visibly after the deadline', async () => {\n vi.useFakeTimers()\n await partnerProxy.setEnabled(false)\n const res = await request(app).post('/bookings').send(SAMPLE_BOOKING).expect(202)\n await vi.advanceTimersByTimeAsync({{DEFER_HOURS}} * 3_600_000 + 60_000)\n expect(await deadLetters()).toContainEqual(expect.objectContaining({ reference: res.body.reference }))\n expect((await request(app).get(res.body.statusUrl)).body.state).toBe('failed')\n expect(await alertsSent()).toContainEqual(expect.objectContaining({ to: 'integration-owner' }))\n})\n```",
|
|
729
|
+
"hubWhen": {
|
|
730
|
+
"FAILURE": [
|
|
731
|
+
"defer"
|
|
732
|
+
]
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"id": "ff-idem-key",
|
|
737
|
+
"type": "fitness-fn",
|
|
738
|
+
"label": "Retries reuse the key",
|
|
739
|
+
"x": 1040,
|
|
740
|
+
"y": 780,
|
|
741
|
+
"characteristic": "reliability",
|
|
742
|
+
"scope": "atomic",
|
|
743
|
+
"cadence": "triggered",
|
|
744
|
+
"trigger": "pull-request",
|
|
745
|
+
"invocation": "automated",
|
|
746
|
+
"description": "A test makes the stub time out on the first attempt of each changing call and checks that all attempts carry one and the same Idempotency-Key.\n\nThreshold: Every retried call that changes something carries the same Idempotency-Key as its first attempt; 0 changing calls without a key\n\nTool: WireMock (JUnit 5 extension; or the stub server of your stack)\n\n```java\n@Test\nvoid retriesCarryTheSameKey(WireMockRuntimeInfo wm) {\n stubFor(post(\"/payments\").inScenario(\"lost\").whenScenarioStateIs(STARTED)\n .willReturn(ok().withFixedDelay({{TIMEOUT_MS}} * 2)).willSetStateTo(\"answered\"));\n stubFor(post(\"/payments\").inScenario(\"lost\").whenScenarioStateIs(\"answered\").willReturn(ok(\"{}\")));\n PartnerClient.create(wm.getHttpBaseUrl()).pay(SAMPLE_PAYMENT);\n var keys = findAll(postRequestedFor(urlEqualTo(\"/payments\"))).stream()\n .map(r -> r.getHeader(\"Idempotency-Key\")).distinct().toList();\n assertEquals(1, keys.size());\n assertNotNull(keys.get(0));\n}\n```",
|
|
747
|
+
"hubWhen": {
|
|
748
|
+
"IDEMPOTENCY": [
|
|
749
|
+
"keys"
|
|
750
|
+
]
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"id": "ff-idem-lookup",
|
|
755
|
+
"type": "fitness-fn",
|
|
756
|
+
"label": "Lookup before repeat",
|
|
757
|
+
"x": 1040,
|
|
758
|
+
"y": 910,
|
|
759
|
+
"characteristic": "reliability",
|
|
760
|
+
"scope": "atomic",
|
|
761
|
+
"cadence": "triggered",
|
|
762
|
+
"trigger": "pull-request",
|
|
763
|
+
"invocation": "automated",
|
|
764
|
+
"description": "A test makes the stub take the change but time out, and checks that the client asks for the reference and sends the change only once.\n\nThreshold: After a lost answer to a changing call, the client looks the change up by its reference and repeats it 0 times when it exists\n\nTool: WireMock (JUnit 5 extension; or the stub server of your stack)\n\n```java\n@Test\nvoid looksUpInsteadOfRepeating(WireMockRuntimeInfo wm) {\n stubFor(post(\"/bookings\").willReturn(created().withFixedDelay({{TIMEOUT_MS}} * 2)));\n stubFor(get(urlPathEqualTo(\"/bookings\")).withQueryParam(\"reference\", matching(\".+\"))\n .willReturn(okJson(\"[{\\\"id\\\":\\\"b-1\\\"}]\")));\n var booking = PartnerClient.create(wm.getHttpBaseUrl()).book(SAMPLE_BOOKING);\n assertEquals(\"b-1\", booking.id());\n verify(exactly(1), postRequestedFor(urlEqualTo(\"/bookings\")));\n verify(exactly(1), getRequestedFor(urlPathEqualTo(\"/bookings\")));\n}\n```",
|
|
765
|
+
"hubWhen": {
|
|
766
|
+
"IDEMPOTENCY": [
|
|
767
|
+
"lookup"
|
|
768
|
+
]
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"id": "ff-readonly",
|
|
773
|
+
"type": "fitness-fn",
|
|
774
|
+
"label": "Clients only read",
|
|
775
|
+
"x": 1040,
|
|
776
|
+
"y": 1040,
|
|
777
|
+
"characteristic": "reliability",
|
|
778
|
+
"scope": "atomic",
|
|
779
|
+
"cadence": "triggered",
|
|
780
|
+
"trigger": "pull-request",
|
|
781
|
+
"invocation": "automated",
|
|
782
|
+
"description": "A Semgrep rule over the integration clients fails the build on a call with a method that changes something, which would mean this decision has to be revisited; an explicit GET passes.\n\nThreshold: 0 calls with POST, PUT, PATCH or DELETE in the clients of outside systems\n\nTool: Semgrep (the rule is for TypeScript; for Java or C#, the same patterns on the HTTP client of your stack)\n\n```yaml\nrules:\n- id: outside-clients-only-read\n message: Outside systems are only read (ADR on integration resilience); a changing call needs idempotency protection first\n severity: ERROR\n languages: [typescript]\n paths: { include: ['src/integrations/'] }\n pattern-either:\n - pattern: $HTTP.post(...)\n - pattern: $HTTP.put(...)\n - pattern: $HTTP.patch(...)\n - pattern: $HTTP.delete(...)\n - patterns:\n - pattern: 'fetch($URL, { ..., method: \"$M\", ... })'\n - metavariable-regex:\n metavariable: $M\n regex: (?i)^\"?(post|put|patch|delete)\"?$\n```",
|
|
783
|
+
"hubWhen": {
|
|
784
|
+
"IDEMPOTENCY": [
|
|
785
|
+
"readonly"
|
|
786
|
+
]
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"id": "ff-library",
|
|
791
|
+
"type": "fitness-fn",
|
|
792
|
+
"label": "No unguarded outside calls",
|
|
793
|
+
"x": 1040,
|
|
794
|
+
"y": 1170,
|
|
795
|
+
"characteristic": "reliability",
|
|
796
|
+
"scope": "atomic",
|
|
797
|
+
"cadence": "triggered",
|
|
798
|
+
"trigger": "pull-request",
|
|
799
|
+
"invocation": "automated",
|
|
800
|
+
"description": "ArchUnit rules fail the build when code outside the integration package uses an HTTP client, or when a public method of an integration client class lacks the Resilience4j annotations (NetArchTest does the same in .NET, dependency-cruiser in TypeScript).\n\nThreshold: 0 classes outside the integration clients use an HTTP client; every public method of a *Client class in the integration package is guarded by a time limiter, a retry and a circuit breaker\n\nTool: ArchUnit (JVM; NetArchTest for .NET, dependency-cruiser for TypeScript)\n\n```java\n@AnalyzeClasses(packages = \"com.acme.shop\")\nclass OutsideCallsArchTest {\n @ArchTest\n static final ArchRule onlyClientsCallOut = noClasses()\n .that().resideOutsideOfPackage(\"..integration..\")\n .should().dependOnClassesThat().resideInAnyPackage(\"org.springframework.web.client..\", \"java.net.http..\", \"okhttp3..\");\n\n @ArchTest\n static final ArchRule clientsAreGuarded = methods()\n .that().areDeclaredInClassesThat().resideInAPackage(\"..integration..\")\n .and().areDeclaredInClassesThat().haveSimpleNameEndingWith(\"Client\")\n .and().arePublic()\n .should().beAnnotatedWith(io.github.resilience4j.timelimiter.annotation.TimeLimiter.class)\n .andShould().beAnnotatedWith(io.github.resilience4j.retry.annotation.Retry.class)\n .andShould().beAnnotatedWith(io.github.resilience4j.circuitbreaker.annotation.CircuitBreaker.class);\n}\n```",
|
|
801
|
+
"hubWhen": {
|
|
802
|
+
"PROTECTION": [
|
|
803
|
+
"library"
|
|
804
|
+
]
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"id": "ff-mesh",
|
|
809
|
+
"type": "fitness-fn",
|
|
810
|
+
"label": "Every outside host guarded",
|
|
811
|
+
"x": 1040,
|
|
812
|
+
"y": 1300,
|
|
813
|
+
"characteristic": "reliability",
|
|
814
|
+
"scope": "atomic",
|
|
815
|
+
"cadence": "triggered",
|
|
816
|
+
"trigger": "pull-request",
|
|
817
|
+
"invocation": "automated",
|
|
818
|
+
"description": "A Conftest policy runs over the mesh manifests in the repository in each pull request and fails on an outside host that lacks any of the three, or when egress to undeclared hosts is not blocked in the IstioOperator mesh config.\n\nThreshold: Every ServiceEntry host has a VirtualService with a timeout of at most {{TIMEOUT_MS}} ms and at most {{RETRIES}} retry attempts, and a DestinationRule with outlier detection; the mesh config sets outboundTrafficPolicy REGISTRY_ONLY; 0 hosts without\n\nTool: Conftest (Open Policy Agent)\n\n```rego\n# conftest test --combine mesh/\npackage main\n\nimport rego.v1\n\n# every document of every file, multi-document YAML flattened\ndocs contains d if { some f in input; is_array(f.contents); some d in f.contents }\ndocs contains d if { some f in input; not is_array(f.contents); d := f.contents }\n\nhosts contains h if { some e in docs; e.kind == \"ServiceEntry\"; some h in e.spec.hosts }\n\nguarded_vs(h) if {\n some v in docs; v.kind == \"VirtualService\"; h in v.spec.hosts\n some r in v.spec.http\n time.parse_duration_ns(r.timeout) <= {{TIMEOUT_MS}} * 1000000\n r.retries.attempts <= {{RETRIES}}\n}\n\nguarded_dr(h) if {\n some d in docs; d.kind == \"DestinationRule\"; d.spec.host == h\n d.spec.trafficPolicy.outlierDetection\n}\n\nregistry_only if {\n some o in docs; o.kind == \"IstioOperator\"\n o.spec.meshConfig.outboundTrafficPolicy.mode == \"REGISTRY_ONLY\"\n}\n\ndeny contains msg if { some h in hosts; not guarded_vs(h); msg := sprintf(\"%s: no VirtualService with a timeout of at most {{TIMEOUT_MS}} ms and at most {{RETRIES}} retries\", [h]) }\ndeny contains msg if { some h in hosts; not guarded_dr(h); msg := sprintf(\"%s: no DestinationRule with outlierDetection\", [h]) }\ndeny contains msg if { not registry_only; msg := \"mesh config: outboundTrafficPolicy must be REGISTRY_ONLY, or undeclared hosts are reachable unguarded\" }\n```",
|
|
819
|
+
"hubWhen": {
|
|
820
|
+
"PROTECTION": [
|
|
821
|
+
"mesh"
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"relations": [
|
|
827
|
+
{
|
|
828
|
+
"id": "req-timeout--derives--need",
|
|
829
|
+
"sourceId": "req-timeout",
|
|
830
|
+
"targetId": "need",
|
|
831
|
+
"relationType": "derives"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"id": "req-retry--derives--need",
|
|
835
|
+
"sourceId": "req-retry",
|
|
836
|
+
"targetId": "need",
|
|
837
|
+
"relationType": "derives"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"id": "req-breaker--derives--need",
|
|
841
|
+
"sourceId": "req-breaker",
|
|
842
|
+
"targetId": "need",
|
|
843
|
+
"relationType": "derives"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"id": "req-fail--derives--need",
|
|
847
|
+
"sourceId": "req-fail",
|
|
848
|
+
"targetId": "need",
|
|
849
|
+
"relationType": "derives"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"id": "req-degrade--derives--need",
|
|
853
|
+
"sourceId": "req-degrade",
|
|
854
|
+
"targetId": "need",
|
|
855
|
+
"relationType": "derives"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"id": "req-degrade-writes--derives--need",
|
|
859
|
+
"sourceId": "req-degrade-writes",
|
|
860
|
+
"targetId": "need",
|
|
861
|
+
"relationType": "derives"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"id": "req-defer--derives--need",
|
|
865
|
+
"sourceId": "req-defer",
|
|
866
|
+
"targetId": "need",
|
|
867
|
+
"relationType": "derives"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"id": "req-defer-expire--derives--need",
|
|
871
|
+
"sourceId": "req-defer-expire",
|
|
872
|
+
"targetId": "need",
|
|
873
|
+
"relationType": "derives"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"id": "req-idem-key--derives--need",
|
|
877
|
+
"sourceId": "req-idem-key",
|
|
878
|
+
"targetId": "need",
|
|
879
|
+
"relationType": "derives"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"id": "req-idem-lookup--derives--need",
|
|
883
|
+
"sourceId": "req-idem-lookup",
|
|
884
|
+
"targetId": "need",
|
|
885
|
+
"relationType": "derives"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"id": "req-readonly--derives--need",
|
|
889
|
+
"sourceId": "req-readonly",
|
|
890
|
+
"targetId": "need",
|
|
891
|
+
"relationType": "derives"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"id": "req-library--derives--need",
|
|
895
|
+
"sourceId": "req-library",
|
|
896
|
+
"targetId": "need",
|
|
897
|
+
"relationType": "derives"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"id": "req-mesh--derives--need",
|
|
901
|
+
"sourceId": "req-mesh",
|
|
902
|
+
"targetId": "need",
|
|
903
|
+
"relationType": "derives"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"id": "sc-timeout--verifies--req-timeout",
|
|
907
|
+
"sourceId": "sc-timeout",
|
|
908
|
+
"targetId": "req-timeout",
|
|
909
|
+
"relationType": "verifies"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"id": "sc-retry--verifies--req-retry",
|
|
913
|
+
"sourceId": "sc-retry",
|
|
914
|
+
"targetId": "req-retry",
|
|
915
|
+
"relationType": "verifies"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"id": "sc-breaker--verifies--req-breaker",
|
|
919
|
+
"sourceId": "sc-breaker",
|
|
920
|
+
"targetId": "req-breaker",
|
|
921
|
+
"relationType": "verifies"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"id": "sc-fail--verifies--req-fail",
|
|
925
|
+
"sourceId": "sc-fail",
|
|
926
|
+
"targetId": "req-fail",
|
|
927
|
+
"relationType": "verifies"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"id": "sc-degrade--verifies--req-degrade",
|
|
931
|
+
"sourceId": "sc-degrade",
|
|
932
|
+
"targetId": "req-degrade",
|
|
933
|
+
"relationType": "verifies"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"id": "sc-degrade-writes--verifies--req-degrade-writes",
|
|
937
|
+
"sourceId": "sc-degrade-writes",
|
|
938
|
+
"targetId": "req-degrade-writes",
|
|
939
|
+
"relationType": "verifies"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"id": "sc-defer--verifies--req-defer",
|
|
943
|
+
"sourceId": "sc-defer",
|
|
944
|
+
"targetId": "req-defer",
|
|
945
|
+
"relationType": "verifies"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"id": "sc-defer-expire--verifies--req-defer-expire",
|
|
949
|
+
"sourceId": "sc-defer-expire",
|
|
950
|
+
"targetId": "req-defer-expire",
|
|
951
|
+
"relationType": "verifies"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"id": "sc-idem-key--verifies--req-idem-key",
|
|
955
|
+
"sourceId": "sc-idem-key",
|
|
956
|
+
"targetId": "req-idem-key",
|
|
957
|
+
"relationType": "verifies"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"id": "sc-idem-lookup--verifies--req-idem-lookup",
|
|
961
|
+
"sourceId": "sc-idem-lookup",
|
|
962
|
+
"targetId": "req-idem-lookup",
|
|
963
|
+
"relationType": "verifies"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"id": "sc-readonly--verifies--req-readonly",
|
|
967
|
+
"sourceId": "sc-readonly",
|
|
968
|
+
"targetId": "req-readonly",
|
|
969
|
+
"relationType": "verifies"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"id": "sc-library--verifies--req-library",
|
|
973
|
+
"sourceId": "sc-library",
|
|
974
|
+
"targetId": "req-library",
|
|
975
|
+
"relationType": "verifies"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"id": "sc-mesh--verifies--req-mesh",
|
|
979
|
+
"sourceId": "sc-mesh",
|
|
980
|
+
"targetId": "req-mesh",
|
|
981
|
+
"relationType": "verifies"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"id": "ff-timeout--implements--adr-fail",
|
|
985
|
+
"sourceId": "ff-timeout",
|
|
986
|
+
"targetId": "adr-fail",
|
|
987
|
+
"relationType": "implements"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"id": "ff-timeout--implements--adr-degrade",
|
|
991
|
+
"sourceId": "ff-timeout",
|
|
992
|
+
"targetId": "adr-degrade",
|
|
993
|
+
"relationType": "implements"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"id": "ff-timeout--implements--adr-defer",
|
|
997
|
+
"sourceId": "ff-timeout",
|
|
998
|
+
"targetId": "adr-defer",
|
|
999
|
+
"relationType": "implements"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"id": "ff-retry--implements--adr-fail",
|
|
1003
|
+
"sourceId": "ff-retry",
|
|
1004
|
+
"targetId": "adr-fail",
|
|
1005
|
+
"relationType": "implements"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"id": "ff-retry--implements--adr-degrade",
|
|
1009
|
+
"sourceId": "ff-retry",
|
|
1010
|
+
"targetId": "adr-degrade",
|
|
1011
|
+
"relationType": "implements"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"id": "ff-retry--implements--adr-defer",
|
|
1015
|
+
"sourceId": "ff-retry",
|
|
1016
|
+
"targetId": "adr-defer",
|
|
1017
|
+
"relationType": "implements"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"id": "ff-breaker--implements--adr-library",
|
|
1021
|
+
"sourceId": "ff-breaker",
|
|
1022
|
+
"targetId": "adr-library",
|
|
1023
|
+
"relationType": "implements"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"id": "ff-breaker--implements--adr-mesh",
|
|
1027
|
+
"sourceId": "ff-breaker",
|
|
1028
|
+
"targetId": "adr-mesh",
|
|
1029
|
+
"relationType": "implements"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"id": "ff-fail--implements--adr-fail",
|
|
1033
|
+
"sourceId": "ff-fail",
|
|
1034
|
+
"targetId": "adr-fail",
|
|
1035
|
+
"relationType": "implements"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"id": "ff-degrade--implements--adr-degrade",
|
|
1039
|
+
"sourceId": "ff-degrade",
|
|
1040
|
+
"targetId": "adr-degrade",
|
|
1041
|
+
"relationType": "implements"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"id": "ff-defer--implements--adr-defer",
|
|
1045
|
+
"sourceId": "ff-defer",
|
|
1046
|
+
"targetId": "adr-defer",
|
|
1047
|
+
"relationType": "implements"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"id": "ff-idem-key--implements--adr-fail",
|
|
1051
|
+
"sourceId": "ff-idem-key",
|
|
1052
|
+
"targetId": "adr-fail",
|
|
1053
|
+
"relationType": "implements"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"id": "ff-idem-key--implements--adr-degrade",
|
|
1057
|
+
"sourceId": "ff-idem-key",
|
|
1058
|
+
"targetId": "adr-degrade",
|
|
1059
|
+
"relationType": "implements"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"id": "ff-idem-key--implements--adr-defer",
|
|
1063
|
+
"sourceId": "ff-idem-key",
|
|
1064
|
+
"targetId": "adr-defer",
|
|
1065
|
+
"relationType": "implements"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"id": "ff-idem-lookup--implements--adr-fail",
|
|
1069
|
+
"sourceId": "ff-idem-lookup",
|
|
1070
|
+
"targetId": "adr-fail",
|
|
1071
|
+
"relationType": "implements"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"id": "ff-idem-lookup--implements--adr-degrade",
|
|
1075
|
+
"sourceId": "ff-idem-lookup",
|
|
1076
|
+
"targetId": "adr-degrade",
|
|
1077
|
+
"relationType": "implements"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"id": "ff-idem-lookup--implements--adr-defer",
|
|
1081
|
+
"sourceId": "ff-idem-lookup",
|
|
1082
|
+
"targetId": "adr-defer",
|
|
1083
|
+
"relationType": "implements"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"id": "ff-readonly--implements--adr-fail",
|
|
1087
|
+
"sourceId": "ff-readonly",
|
|
1088
|
+
"targetId": "adr-fail",
|
|
1089
|
+
"relationType": "implements"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"id": "ff-readonly--implements--adr-degrade",
|
|
1093
|
+
"sourceId": "ff-readonly",
|
|
1094
|
+
"targetId": "adr-degrade",
|
|
1095
|
+
"relationType": "implements"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"id": "ff-readonly--implements--adr-defer",
|
|
1099
|
+
"sourceId": "ff-readonly",
|
|
1100
|
+
"targetId": "adr-defer",
|
|
1101
|
+
"relationType": "implements"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"id": "ff-library--implements--adr-library",
|
|
1105
|
+
"sourceId": "ff-library",
|
|
1106
|
+
"targetId": "adr-library",
|
|
1107
|
+
"relationType": "implements"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"id": "ff-mesh--implements--adr-mesh",
|
|
1111
|
+
"sourceId": "ff-mesh",
|
|
1112
|
+
"targetId": "adr-mesh",
|
|
1113
|
+
"relationType": "implements"
|
|
1114
|
+
}
|
|
1115
|
+
]
|
|
1116
|
+
}
|