@radicaltools/cli 0.2.0 → 0.3.0
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 +237 -22
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +935 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +685 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1464 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +804 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1118 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1304 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +802 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1202 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1081 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +960 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1143 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +952 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1055 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1340 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1151 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1079 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +940 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +864 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +1048 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1434 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1026 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1312 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1306 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1193 -0
- package/dist/index.js +9204 -5242
- package/package.json +5 -3
|
@@ -0,0 +1,1202 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-communication-style",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Communication style",
|
|
6
|
+
"description": "How the system's own parts talk to each other: synchronous calls, commands over queues, published events or streams; when to deviate from the default, how deep a chain of calls may go, how contracts are written and checked, and who coordinates a flow across parts.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"architecture",
|
|
9
|
+
"communication",
|
|
10
|
+
"rest",
|
|
11
|
+
"grpc",
|
|
12
|
+
"messaging",
|
|
13
|
+
"events",
|
|
14
|
+
"event-driven",
|
|
15
|
+
"streaming",
|
|
16
|
+
"choreography",
|
|
17
|
+
"orchestration",
|
|
18
|
+
"asyncapi"
|
|
19
|
+
],
|
|
20
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
21
|
+
"concern": {
|
|
22
|
+
"id": "communication-style",
|
|
23
|
+
"trigger": "LIST RELATIONS WHERE source.external != true AND target.external != true AND (source.type = \"container\" OR source.type = \"webapp\" OR source.type = \"component\") AND (target.type = \"container\" OR target.type = \"component\" OR target.type = \"queue\")",
|
|
24
|
+
"applyTo": "source",
|
|
25
|
+
"why": "these parts of the system call or message other parts of it, so how they talk, and how they fail together, has to be decided.",
|
|
26
|
+
"group": "architecture"
|
|
27
|
+
},
|
|
28
|
+
"sources": [
|
|
29
|
+
{
|
|
30
|
+
"title": "Martin Fowler: What do you mean by \"Event-Driven\"?",
|
|
31
|
+
"url": "https://martinfowler.com/articles/201701-event-driven.html"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"title": "microservices.io, Messaging",
|
|
35
|
+
"url": "https://microservices.io/patterns/communication-style/messaging.html"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "microservices.io, Remote Procedure Invocation",
|
|
39
|
+
"url": "https://microservices.io/patterns/communication-style/rpi.html"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "microservices.io, Saga (choreography and orchestration)",
|
|
43
|
+
"url": "https://microservices.io/patterns/data/saga.html"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"title": "Enterprise Integration Patterns",
|
|
47
|
+
"url": "https://www.enterpriseintegrationpatterns.com/"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"title": "AsyncAPI Specification",
|
|
51
|
+
"url": "https://www.asyncapi.com/docs/reference/specification/latest"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "gRPC, Deadlines",
|
|
55
|
+
"url": "https://grpc.io/docs/guides/deadlines/"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"title": "Google SRE book, Addressing Cascading Failures",
|
|
59
|
+
"url": "https://sre.google/sre-book/addressing-cascading-failures/"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"title": "Sam Newman: Building Microservices, 2nd ed. (O'Reilly)",
|
|
63
|
+
"url": "https://www.oreilly.com/library/view/building-microservices-2nd/9781492034018/"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"templateParams": [
|
|
67
|
+
{
|
|
68
|
+
"key": "DEFAULT",
|
|
69
|
+
"title": "Default style",
|
|
70
|
+
"label": "How do the system's parts talk to each other by default?",
|
|
71
|
+
"hint": "The default is what a new interaction uses without a discussion; an exception needs a reason recorded. It decides how much one part being slow or down affects the others.",
|
|
72
|
+
"defaultValue": "events",
|
|
73
|
+
"options": [
|
|
74
|
+
{
|
|
75
|
+
"value": "sync",
|
|
76
|
+
"label": "synchronous request and response",
|
|
77
|
+
"description": "A part calls another and waits for the answer. Pick it for a modular monolith or a few services, when most interactions are queries that need an answer now, and every part on a chain has the availability the caller needs."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"value": "commands",
|
|
81
|
+
"label": "commands over queues",
|
|
82
|
+
"description": "A part asks another to do something by sending a command to the receiver's queue and learns the outcome from a reply later; queries stay synchronous. Pick it when work takes longer than a user should wait (documents, payments, provisioning), the receiver may be down for a while, or load comes in bursts."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"value": "events",
|
|
86
|
+
"label": "published events (pub/sub)",
|
|
87
|
+
"description": "Each part publishes events about its own changes, carrying the data others need; others subscribe, keep their own copies and answer from them. Pick it for services owned by several teams, where many parts react to the same facts and a part should keep working while another is down."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "streams",
|
|
91
|
+
"label": "event streams (a replayable log)",
|
|
92
|
+
"description": "Parts write events to a durable, partitioned log that consumers read at their own pace and can replay from the start to build new views. Pick it for high volume (thousands of events a second), analytics and read models rebuilt from history, or stream processing (Kafka Streams, Flink)."
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "SYNC_API",
|
|
98
|
+
"title": "Calls",
|
|
99
|
+
"label": "How are synchronous calls between parts made?",
|
|
100
|
+
"hint": "Every default leaves some synchronous calls (queries at least, and the front end calling its back end). This decides their protocol and contract format; messages are described in AsyncAPI either way.",
|
|
101
|
+
"defaultValue": "rest",
|
|
102
|
+
"options": [
|
|
103
|
+
{
|
|
104
|
+
"value": "rest",
|
|
105
|
+
"label": "HTTP and JSON described in OpenAPI",
|
|
106
|
+
"description": "Resource-style HTTP with JSON, contracts in OpenAPI 3.1. Pick it when browsers or many languages call, people need to read and try the API, or call volume is moderate."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"value": "grpc",
|
|
110
|
+
"label": "gRPC described in Protocol Buffers",
|
|
111
|
+
"description": "Binary calls over HTTP/2 with generated clients, contracts in .proto files, deadlines built in, streaming available. Pick it for high-volume service-to-service calls where both sides use generated code; browsers need gRPC-Web or a gateway."
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"key": "FLOWS",
|
|
117
|
+
"title": "Multi-step flows",
|
|
118
|
+
"label": "Who coordinates a business flow that spans several parts?",
|
|
119
|
+
"hint": "Placing an order may reserve stock, take payment and book shipping in three parts. Someone has to know the steps, and what to undo when one fails (all-or-nothing semantics are the Data consistency pack).",
|
|
120
|
+
"defaultValue": "orchestration",
|
|
121
|
+
"options": [
|
|
122
|
+
{
|
|
123
|
+
"value": "orchestration",
|
|
124
|
+
"label": "an orchestrator runs each flow",
|
|
125
|
+
"description": "A workflow engine (Temporal, Camunda, AWS Step Functions) runs each flow as code or a model: it calls each part, keeps the state, retries and compensates. Pick it for flows with more than three steps, branches, timeouts or human tasks, or when someone must see where each instance is."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"value": "choreography",
|
|
129
|
+
"label": "parts react to each other's events",
|
|
130
|
+
"description": "No coordinator: each part reacts to events of others and publishes its own. Pick it for short flows (up to three steps) where each reaction belongs to a different team, with events as the default; longer flows become hard to follow."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"value": "local",
|
|
134
|
+
"label": "no flow spans parts",
|
|
135
|
+
"description": "Every business operation completes inside one part and one local transaction; boundaries are drawn so that this holds. Pick it for a monolith or modular monolith, or services cut so that no operation needs two of them."
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"key": "CONTRACTS",
|
|
141
|
+
"title": "Contracts",
|
|
142
|
+
"label": "How is it checked that a change does not break another part?",
|
|
143
|
+
"hint": "Parts are released apart, so every call and message is a contract. A diff of the contract finds a break in the document; consumer-driven tests find a break in what consumers really use.",
|
|
144
|
+
"defaultValue": "pact",
|
|
145
|
+
"options": [
|
|
146
|
+
{
|
|
147
|
+
"value": "spec",
|
|
148
|
+
"label": "contract diffs on every change",
|
|
149
|
+
"description": "The provider's OpenAPI, .proto or AsyncAPI document is linted and compared with the version on main; a breaking change fails the build. Pick it when consumers are many or unknown, or the teams cannot run consumer tests."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"value": "pact",
|
|
153
|
+
"label": "consumer-driven contract tests",
|
|
154
|
+
"description": "Each consumer records the calls and messages it relies on as pacts; every provider build verifies them, and can-i-deploy blocks a release that breaks one. Pick it when the consuming parts are known teams who run Pact in their builds."
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"key": "MAX_DEPTH",
|
|
160
|
+
"label": "How many synchronous calls deep may a chain between parts go?",
|
|
161
|
+
"defaultValue": "2",
|
|
162
|
+
"type": "number"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"key": "CALL_BUDGET_MS",
|
|
166
|
+
"label": "How long may a user request spend in calls between parts, at the 99th percentile (milliseconds)?",
|
|
167
|
+
"defaultValue": "800",
|
|
168
|
+
"type": "number"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"key": "PROPAGATION_SECONDS",
|
|
172
|
+
"label": "Within how many seconds must a command's outcome or an event reach the parts that act on it (99th percentile)?",
|
|
173
|
+
"defaultValue": "10",
|
|
174
|
+
"type": "number"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"key": "RETENTION_DAYS",
|
|
178
|
+
"label": "For how many days at least does the event log keep events?",
|
|
179
|
+
"defaultValue": "7",
|
|
180
|
+
"type": "number"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"key": "FLOW_MINUTES",
|
|
184
|
+
"label": "Within how many minutes must a flow across parts finish or be reported stuck?",
|
|
185
|
+
"defaultValue": "15",
|
|
186
|
+
"type": "number"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"nodes": [
|
|
191
|
+
{
|
|
192
|
+
"id": "need",
|
|
193
|
+
"type": "need",
|
|
194
|
+
"label": "Parts talk without failing together",
|
|
195
|
+
"x": 0,
|
|
196
|
+
"y": 0,
|
|
197
|
+
"kind": "brief",
|
|
198
|
+
"source": "Hub concern pack: Communication style",
|
|
199
|
+
"description": "The system's parts depend on each other for data and for work. When one is slow or down, the others should degrade in a known way instead of stalling in a chain of waiting calls; when one changes, the others should not break; and when a business flow runs across several parts, someone should be able to tell where it stands and what happens when a step fails. That needs a default way of talking, known exceptions, contracts for every interaction, and limits that the build and the monitoring check."
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "req-default",
|
|
203
|
+
"type": "requirement",
|
|
204
|
+
"label": "One default, recorded exceptions",
|
|
205
|
+
"x": 260,
|
|
206
|
+
"y": 0,
|
|
207
|
+
"ears_type": "ubiquitous",
|
|
208
|
+
"action": "use {{DEFAULT}} for every interaction between the system's own parts and record each exception in an ADR with its reason, with 0 interactions in the model that are neither the default nor a recorded exception",
|
|
209
|
+
"rationale": "Mixing styles case by case makes failure behaviour unpredictable; a default with recorded exceptions keeps it decidable (Newman, Building Microservices, ch. 4)."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "req-depth",
|
|
213
|
+
"type": "requirement",
|
|
214
|
+
"label": "Call chains stay short",
|
|
215
|
+
"x": 260,
|
|
216
|
+
"y": 130,
|
|
217
|
+
"ears_type": "ubiquitous",
|
|
218
|
+
"action": "keep every chain of synchronous calls between the system's own parts at most {{MAX_DEPTH}} calls deep, with 0 cycles of calls",
|
|
219
|
+
"rationale": "Each synchronous hop multiplies latency and the chance that one link is down, and cycles of calls turn overload into cascading failure (Google SRE book, Addressing Cascading Failures)."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "req-contracts",
|
|
223
|
+
"type": "requirement",
|
|
224
|
+
"label": "Every interaction has a contract",
|
|
225
|
+
"x": 260,
|
|
226
|
+
"y": 260,
|
|
227
|
+
"ears_type": "ubiquitous",
|
|
228
|
+
"action": "describe every interaction between parts in a contract owned by the providing part ({{SYNC_API}} for calls, AsyncAPI 3.0 for commands and events) and generate clients, stubs or message types from it, with 0 interactions without a contract",
|
|
229
|
+
"rationale": "Parts released apart need a machine-checkable agreement; hand-written clients drift from what the provider serves (AsyncAPI Specification; microservices.io, Messaging)."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"id": "req-deadline",
|
|
233
|
+
"type": "requirement",
|
|
234
|
+
"label": "Calls carry a deadline",
|
|
235
|
+
"x": 260,
|
|
236
|
+
"y": 390,
|
|
237
|
+
"ears_type": "event-driven",
|
|
238
|
+
"trigger": "a part calls another part synchronously",
|
|
239
|
+
"action": "pass the remaining deadline of the user's request with the call and give up when it has passed, so that a user request spends at most {{CALL_BUDGET_MS}} ms in calls between parts at the 99th percentile",
|
|
240
|
+
"rationale": "With synchronous calls as the default, deadline propagation stops a slow part from holding every caller above it (gRPC, Deadlines; Google SRE book, Addressing Cascading Failures).",
|
|
241
|
+
"hubWhen": {
|
|
242
|
+
"DEFAULT": [
|
|
243
|
+
"sync"
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": "req-commands",
|
|
249
|
+
"type": "requirement",
|
|
250
|
+
"label": "Commands answered later",
|
|
251
|
+
"x": 260,
|
|
252
|
+
"y": 520,
|
|
253
|
+
"ears_type": "event-driven",
|
|
254
|
+
"trigger": "a part needs another to do something whose result it does not need to answer its own caller",
|
|
255
|
+
"action": "send it as a command to the receiving part's queue, answer its caller with the command's id without waiting, and receive the outcome as a reply within {{PROPAGATION_SECONDS}} seconds at the 99th percentile while the receiver is up",
|
|
256
|
+
"rationale": "A command over a queue lets the sender carry on while the receiver is busy or down; each queue has one owner that executes its commands (Enterprise Integration Patterns, Command Message; microservices.io, Messaging).",
|
|
257
|
+
"hubWhen": {
|
|
258
|
+
"DEFAULT": [
|
|
259
|
+
"commands"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"id": "req-events",
|
|
265
|
+
"type": "requirement",
|
|
266
|
+
"label": "Parts answer from own data",
|
|
267
|
+
"x": 260,
|
|
268
|
+
"y": 650,
|
|
269
|
+
"ears_type": "ubiquitous",
|
|
270
|
+
"action": "publish an event after every committed change other parts depend on, carrying the state they need, and answer user requests from the part's own data, with 0 synchronous calls to another part on a user's request path outside the recorded exceptions",
|
|
271
|
+
"rationale": "Event-carried state transfer removes the temporal coupling: a part keeps answering while the publisher is down (Fowler, What do you mean by \"Event-Driven\"?).",
|
|
272
|
+
"hubWhen": {
|
|
273
|
+
"DEFAULT": [
|
|
274
|
+
"events",
|
|
275
|
+
"streams"
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"id": "req-propagation",
|
|
281
|
+
"type": "requirement",
|
|
282
|
+
"label": "Events arrive in time",
|
|
283
|
+
"x": 260,
|
|
284
|
+
"y": 780,
|
|
285
|
+
"ears_type": "event-driven",
|
|
286
|
+
"trigger": "a part publishes an event",
|
|
287
|
+
"action": "apply it in every subscribing part within {{PROPAGATION_SECONDS}} seconds at the 99th percentile",
|
|
288
|
+
"rationale": "Copies kept from events are eventually consistent; bounding how long that takes makes it a requirement instead of a surprise (microservices.io, Messaging).",
|
|
289
|
+
"hubWhen": {
|
|
290
|
+
"DEFAULT": [
|
|
291
|
+
"events",
|
|
292
|
+
"streams"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"id": "req-replay",
|
|
298
|
+
"type": "requirement",
|
|
299
|
+
"label": "Events can be replayed",
|
|
300
|
+
"x": 260,
|
|
301
|
+
"y": 910,
|
|
302
|
+
"ears_type": "ubiquitous",
|
|
303
|
+
"action": "keep every event in a log partitioned by entity key for at least {{RETENTION_DAYS}} days (topics holding current state compacted instead), so that a new or repaired consumer builds its view by reading from the start",
|
|
304
|
+
"rationale": "Replay is what a stream offers over a queue: views can be rebuilt and new consumers added without asking the producers (Fowler, What do you mean by \"Event-Driven\"?, event sourcing and streams).",
|
|
305
|
+
"hubWhen": {
|
|
306
|
+
"DEFAULT": [
|
|
307
|
+
"streams"
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"id": "req-orchestrated",
|
|
313
|
+
"type": "requirement",
|
|
314
|
+
"label": "Flows run in the orchestrator",
|
|
315
|
+
"x": 260,
|
|
316
|
+
"y": 1040,
|
|
317
|
+
"ears_type": "ubiquitous",
|
|
318
|
+
"action": "run every business flow that spans more than one part as a workflow in the orchestrator, with each instance's current step and history visible, a compensation declared for every step that changes data, and the flow finished or compensated within {{FLOW_MINUTES}} minutes",
|
|
319
|
+
"rationale": "An orchestrator keeps the steps of a flow in one place and its state visible per instance (microservices.io, Saga: orchestration).",
|
|
320
|
+
"hubWhen": {
|
|
321
|
+
"FLOWS": [
|
|
322
|
+
"orchestration"
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"id": "req-choreographed",
|
|
328
|
+
"type": "requirement",
|
|
329
|
+
"label": "Choreographed flows are traced",
|
|
330
|
+
"x": 260,
|
|
331
|
+
"y": 1170,
|
|
332
|
+
"ears_type": "unwanted-behaviour",
|
|
333
|
+
"unwanted_condition": "a flow that spans parts has started and not reached its end event within {{FLOW_MINUTES}} minutes",
|
|
334
|
+
"action": "report it as stuck with its correlation id and the last event seen, and alert the team that owns the part that should have reacted",
|
|
335
|
+
"rationale": "Without a coordinator nobody notices a flow that stops halfway; a monitor of the event chain gives it an owner (microservices.io, Saga: choreography).",
|
|
336
|
+
"hubWhen": {
|
|
337
|
+
"FLOWS": [
|
|
338
|
+
"choreography"
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "req-local-flows",
|
|
344
|
+
"type": "requirement",
|
|
345
|
+
"label": "Operations stay in one part",
|
|
346
|
+
"x": 260,
|
|
347
|
+
"y": 1300,
|
|
348
|
+
"ears_type": "ubiquitous",
|
|
349
|
+
"action": "complete every business operation inside one part and one local transaction, with 0 operations that change data in two parts",
|
|
350
|
+
"rationale": "A flow that stays inside one part needs neither a coordinator nor compensation; boundaries are drawn to keep it so (Newman, Building Microservices, ch. 6).",
|
|
351
|
+
"hubWhen": {
|
|
352
|
+
"FLOWS": [
|
|
353
|
+
"local"
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"id": "req-contract-diff",
|
|
359
|
+
"type": "requirement",
|
|
360
|
+
"label": "Breaking changes refused",
|
|
361
|
+
"x": 260,
|
|
362
|
+
"y": 1430,
|
|
363
|
+
"ears_type": "event-driven",
|
|
364
|
+
"trigger": "a change to a contract between parts is proposed",
|
|
365
|
+
"action": "lint it against the house rules and compare it with the contract on the main branch, and refuse to merge a change that would break an existing consumer",
|
|
366
|
+
"rationale": "A break found in the pull request is cheap; found in production it stops the consuming part (Building Evolutionary Architectures, atomic fitness functions).",
|
|
367
|
+
"hubWhen": {
|
|
368
|
+
"CONTRACTS": [
|
|
369
|
+
"spec"
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"id": "req-pacts",
|
|
375
|
+
"type": "requirement",
|
|
376
|
+
"label": "Consumers' pacts verified",
|
|
377
|
+
"x": 260,
|
|
378
|
+
"y": 1560,
|
|
379
|
+
"ears_type": "event-driven",
|
|
380
|
+
"trigger": "a part is about to be deployed",
|
|
381
|
+
"action": "verify it against every pact its consumers have published, for calls and for messages, and deploy it only when every pact of the consumer versions in production passes",
|
|
382
|
+
"rationale": "Consumer-driven contracts test what consumers really use, so a provider can change everything else freely (microservices.io, Service Integration Contract Test).",
|
|
383
|
+
"hubWhen": {
|
|
384
|
+
"CONTRACTS": [
|
|
385
|
+
"pact"
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"id": "sc-default",
|
|
391
|
+
"type": "scenario",
|
|
392
|
+
"label": "Exception is recorded",
|
|
393
|
+
"x": 520,
|
|
394
|
+
"y": 0,
|
|
395
|
+
"given": "the interactions between parts in the model, each with its style",
|
|
396
|
+
"when": "they are compared with the default and the ADRs",
|
|
397
|
+
"then": "each one either uses the default or is named by an ADR with its reason"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"id": "sc-depth",
|
|
401
|
+
"type": "scenario",
|
|
402
|
+
"label": "Deep chain found",
|
|
403
|
+
"x": 520,
|
|
404
|
+
"y": 130,
|
|
405
|
+
"given": "traces of the user journeys",
|
|
406
|
+
"when": "the synchronous calls between parts are followed from each request",
|
|
407
|
+
"then": "no chain is deeper than {{MAX_DEPTH}} and no part calls itself through others"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"id": "sc-contracts",
|
|
411
|
+
"type": "scenario",
|
|
412
|
+
"label": "Contract for each interaction",
|
|
413
|
+
"x": 520,
|
|
414
|
+
"y": 260,
|
|
415
|
+
"given": "the interactions between parts in the model",
|
|
416
|
+
"when": "each is looked up in the providers' contracts",
|
|
417
|
+
"then": "every call is in an OpenAPI or .proto file and every message in an AsyncAPI document"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"id": "sc-deadline",
|
|
421
|
+
"type": "scenario",
|
|
422
|
+
"label": "Expired deadline stops",
|
|
423
|
+
"x": 520,
|
|
424
|
+
"y": 390,
|
|
425
|
+
"given": "a request whose deadline has 50 ms left",
|
|
426
|
+
"when": "the first part calls a second that takes 500 ms",
|
|
427
|
+
"then": "the call is cancelled after 50 ms, the second part stops working on it, and the user gets a timely error",
|
|
428
|
+
"hubWhen": {
|
|
429
|
+
"DEFAULT": [
|
|
430
|
+
"sync"
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"id": "sc-commands",
|
|
436
|
+
"type": "scenario",
|
|
437
|
+
"label": "Command accepted and answered",
|
|
438
|
+
"x": 520,
|
|
439
|
+
"y": 520,
|
|
440
|
+
"given": "the inventory part and its command queue",
|
|
441
|
+
"when": "ordering sends a reserve-stock command while inventory is up, and again while it is down",
|
|
442
|
+
"then": "ordering answers its caller at once both times; the first reply arrives within {{PROPAGATION_SECONDS}} seconds, the second after inventory is back",
|
|
443
|
+
"hubWhen": {
|
|
444
|
+
"DEFAULT": [
|
|
445
|
+
"commands"
|
|
446
|
+
]
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "sc-events",
|
|
451
|
+
"type": "scenario",
|
|
452
|
+
"label": "Publisher down, reader works",
|
|
453
|
+
"x": 520,
|
|
454
|
+
"y": 650,
|
|
455
|
+
"given": "shipping keeping a copy of the order data it needs from ordering's events",
|
|
456
|
+
"when": "ordering is stopped and a user asks shipping for a delivery",
|
|
457
|
+
"then": "shipping answers from its own copy",
|
|
458
|
+
"hubWhen": {
|
|
459
|
+
"DEFAULT": [
|
|
460
|
+
"events",
|
|
461
|
+
"streams"
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"id": "sc-propagation",
|
|
467
|
+
"type": "scenario",
|
|
468
|
+
"label": "Copy catches up",
|
|
469
|
+
"x": 520,
|
|
470
|
+
"y": 780,
|
|
471
|
+
"given": "shipping subscribed to ordering's events",
|
|
472
|
+
"when": "an order's address changes",
|
|
473
|
+
"then": "shipping's copy shows the new address within {{PROPAGATION_SECONDS}} seconds",
|
|
474
|
+
"hubWhen": {
|
|
475
|
+
"DEFAULT": [
|
|
476
|
+
"events",
|
|
477
|
+
"streams"
|
|
478
|
+
]
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"id": "sc-replay",
|
|
483
|
+
"type": "scenario",
|
|
484
|
+
"label": "View rebuilt by replay",
|
|
485
|
+
"x": 520,
|
|
486
|
+
"y": 910,
|
|
487
|
+
"given": "a consumer whose view was lost",
|
|
488
|
+
"when": "it is reset to the start of the log",
|
|
489
|
+
"then": "it rebuilds the view from the retained events without any producer being involved",
|
|
490
|
+
"hubWhen": {
|
|
491
|
+
"DEFAULT": [
|
|
492
|
+
"streams"
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"id": "sc-orchestrated",
|
|
498
|
+
"type": "scenario",
|
|
499
|
+
"label": "Failed step compensated",
|
|
500
|
+
"x": 520,
|
|
501
|
+
"y": 1040,
|
|
502
|
+
"given": "the place-order workflow with reserve stock, take payment and book shipping",
|
|
503
|
+
"when": "the payment is declined",
|
|
504
|
+
"then": "the workflow releases the stock, ends as failed, and its history shows each step",
|
|
505
|
+
"hubWhen": {
|
|
506
|
+
"FLOWS": [
|
|
507
|
+
"orchestration"
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"id": "sc-choreographed",
|
|
513
|
+
"type": "scenario",
|
|
514
|
+
"label": "Stuck flow reported",
|
|
515
|
+
"x": 520,
|
|
516
|
+
"y": 1170,
|
|
517
|
+
"given": "an order placed and its stock reserved",
|
|
518
|
+
"when": "no payment event follows within {{FLOW_MINUTES}} minutes",
|
|
519
|
+
"then": "the flow is reported stuck with its correlation id and the payment team is alerted",
|
|
520
|
+
"hubWhen": {
|
|
521
|
+
"FLOWS": [
|
|
522
|
+
"choreography"
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"id": "sc-local-flows",
|
|
528
|
+
"type": "scenario",
|
|
529
|
+
"label": "Operation stays local",
|
|
530
|
+
"x": 520,
|
|
531
|
+
"y": 1300,
|
|
532
|
+
"given": "the operations that change data",
|
|
533
|
+
"when": "each is traced",
|
|
534
|
+
"then": "each changes the data of one part only, in one transaction",
|
|
535
|
+
"hubWhen": {
|
|
536
|
+
"FLOWS": [
|
|
537
|
+
"local"
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"id": "sc-contract-diff",
|
|
543
|
+
"type": "scenario",
|
|
544
|
+
"label": "Removed field refused",
|
|
545
|
+
"x": 520,
|
|
546
|
+
"y": 1430,
|
|
547
|
+
"given": "an event contract with a field consumers read",
|
|
548
|
+
"when": "a change removes that field",
|
|
549
|
+
"then": "the build fails naming the breaking change",
|
|
550
|
+
"hubWhen": {
|
|
551
|
+
"CONTRACTS": [
|
|
552
|
+
"spec"
|
|
553
|
+
]
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"id": "sc-pacts",
|
|
558
|
+
"type": "scenario",
|
|
559
|
+
"label": "Breaking deploy blocked",
|
|
560
|
+
"x": 520,
|
|
561
|
+
"y": 1560,
|
|
562
|
+
"given": "a consumer in production whose pact reads a field",
|
|
563
|
+
"when": "the provider removes the field and tries to deploy",
|
|
564
|
+
"then": "verification fails and can-i-deploy blocks the release",
|
|
565
|
+
"hubWhen": {
|
|
566
|
+
"CONTRACTS": [
|
|
567
|
+
"pact"
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"id": "adr-sync",
|
|
573
|
+
"type": "adr",
|
|
574
|
+
"label": "Synchronous calls by default",
|
|
575
|
+
"x": 780,
|
|
576
|
+
"y": 0,
|
|
577
|
+
"concern": "communication-style",
|
|
578
|
+
"status": "accepted",
|
|
579
|
+
"date": "",
|
|
580
|
+
"context": "The system's own parts (services, modules, front ends and back ends) have to ask each other for data and to get things done. How they do it decides how they fail together. The forces: a synchronous call ties the caller to the callee being up and fast at that moment (temporal coupling), and a chain of them multiplies latency and the odds that one link is down; asynchronous messages decouple in time but make the result arrive later and the flow harder to follow; events let parts react without the publisher knowing them, until nobody can tell what happens after an order is placed; a flow across parts needs either a coordinator that knows every step or a chain of reactions nobody owns; and parts are released apart, so every interaction is a contract that must not break. Delivery guarantees of a queue are the Messaging pack, and calls to systems outside are Integration resilience.",
|
|
581
|
+
"decision": "Parts talk by synchronous request and response by default: {{SYNC_API}} (Spring's RestClient or grpc-java, .NET's typed HttpClient or Grpc.Net.Client, fetch or @connectrpc in TypeScript), with clients generated from the contracts. Every call carries the remaining deadline of the user's request (gRPC deadlines, or a request-timeout header the server honours); a user request spends at most {{CALL_BUDGET_MS}} ms in calls between parts and a chain is at most {{MAX_DEPTH}} calls deep. A command over a queue or an event is used instead, recorded as an exception, when the caller does not need the result to answer, the work takes longer than the budget, several parts react, or the callee may be down longer than the caller can wait. Flows across parts: {{FLOWS}}. Contract checks: {{CONTRACTS}}.",
|
|
582
|
+
"consequences": "• Simplest to write, follow and debug: one request, one trace, an answer or an error.\n• The caller is only as available as everything it calls: availabilities multiply along a chain, hence the depth limit.\n• Overload spreads upstream unless deadlines and load shedding stop it.\n• Work that takes long or must survive a callee being down needs the recorded exceptions.",
|
|
583
|
+
"alternatives": "1. Commands over queues: callers do not wait, at the cost of answering later.\n2. Published events: no temporal coupling, at the cost of copies and eventual consistency.\n3. A service mesh to add retries and timeouts: helps, but does not remove the coupling of waiting.",
|
|
584
|
+
"hubWhen": {
|
|
585
|
+
"DEFAULT": [
|
|
586
|
+
"sync"
|
|
587
|
+
]
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"id": "adr-commands",
|
|
592
|
+
"type": "adr",
|
|
593
|
+
"label": "Commands over queues by default",
|
|
594
|
+
"x": 780,
|
|
595
|
+
"y": 130,
|
|
596
|
+
"concern": "communication-style",
|
|
597
|
+
"status": "accepted",
|
|
598
|
+
"date": "",
|
|
599
|
+
"context": "The system's own parts (services, modules, front ends and back ends) have to ask each other for data and to get things done. How they do it decides how they fail together. The forces: a synchronous call ties the caller to the callee being up and fast at that moment (temporal coupling), and a chain of them multiplies latency and the odds that one link is down; asynchronous messages decouple in time but make the result arrive later and the flow harder to follow; events let parts react without the publisher knowing them, until nobody can tell what happens after an order is placed; a flow across parts needs either a coordinator that knows every step or a chain of reactions nobody owns; and parts are released apart, so every interaction is a contract that must not break. Delivery guarantees of a queue are the Messaging pack, and calls to systems outside are Integration resilience.",
|
|
600
|
+
"decision": "A part that needs another to do something sends a command to that part's own queue (RabbitMQ or Azure Service Bus queues, Amazon SQS; one owning part per queue) and answers its own caller with the command's id; the receiver replies with an outcome event the sender correlates by id, within {{PROPAGATION_SECONDS}} seconds at the 99th percentile while it is up. Queries that need an answer now stay synchronous ({{SYNC_API}}), at most {{MAX_DEPTH}} calls deep. Messages are described in AsyncAPI; delivery guarantees, deduplication and dead-lettering follow the Messaging pack. Flows across parts: {{FLOWS}}. Contract checks: {{CONTRACTS}}.",
|
|
601
|
+
"consequences": "• Senders keep working while a receiver is busy or down; bursts wait in the queue.\n• Users see an accepted state and the outcome later, so screens and APIs must show pending work.\n• Each queue has one owner, so who executes a command is never in doubt.\n• Following a request means following a correlation id across messages.",
|
|
602
|
+
"alternatives": "1. Synchronous calls: immediate answers, coupled availability.\n2. Published events: receivers decide what to do, no one is told to do anything.\n3. A shared job table polled by workers: no broker, but a database used as a queue.",
|
|
603
|
+
"hubWhen": {
|
|
604
|
+
"DEFAULT": [
|
|
605
|
+
"commands"
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"id": "adr-events",
|
|
611
|
+
"type": "adr",
|
|
612
|
+
"label": "Published events by default",
|
|
613
|
+
"x": 780,
|
|
614
|
+
"y": 260,
|
|
615
|
+
"concern": "communication-style",
|
|
616
|
+
"status": "accepted",
|
|
617
|
+
"date": "",
|
|
618
|
+
"context": "The system's own parts (services, modules, front ends and back ends) have to ask each other for data and to get things done. How they do it decides how they fail together. The forces: a synchronous call ties the caller to the callee being up and fast at that moment (temporal coupling), and a chain of them multiplies latency and the odds that one link is down; asynchronous messages decouple in time but make the result arrive later and the flow harder to follow; events let parts react without the publisher knowing them, until nobody can tell what happens after an order is placed; a flow across parts needs either a coordinator that knows every step or a chain of reactions nobody owns; and parts are released apart, so every interaction is a contract that must not break. Delivery guarantees of a queue are the Messaging pack, and calls to systems outside are Integration resilience.",
|
|
619
|
+
"decision": "Each part publishes events about its own committed changes (through an outbox, as CloudEvents described in AsyncAPI) carrying the state its subscribers need; subscribers keep their own copies and answer user requests from them. Events go through a publish-subscribe broker: Apache Kafka for many subscribers and replay, Amazon SNS with SQS or Google Pub/Sub on those clouds, Azure Service Bus topics on Azure. Copies are updated within {{PROPAGATION_SECONDS}} seconds at the 99th percentile. A command to one specific part goes to that part's queue; a synchronous call ({{SYNC_API}}, at most {{MAX_DEPTH}} deep) is a recorded exception for an answer only its owner can give now, such as a payment authorisation. Flows across parts: {{FLOWS}}. Contract checks: {{CONTRACTS}}.",
|
|
620
|
+
"consequences": "• A part keeps answering while the parts it depends on are down: no temporal coupling on the user path.\n• Data is copied and eventually consistent; screens and rules must tolerate {{PROPAGATION_SECONDS}} seconds of lag.\n• Publishers do not know their subscribers; what happens after an event is visible only in the contracts and traces.\n• Event schemas become long-lived contracts that need versioning.",
|
|
621
|
+
"alternatives": "1. Synchronous calls: simpler, coupled availability.\n2. Commands over queues: the sender decides what happens, coupling it to the receivers.\n3. Event notification without state (subscribers call back for data): smaller events, but the temporal coupling returns.",
|
|
622
|
+
"hubWhen": {
|
|
623
|
+
"DEFAULT": [
|
|
624
|
+
"events"
|
|
625
|
+
]
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"id": "adr-streams",
|
|
630
|
+
"type": "adr",
|
|
631
|
+
"label": "Event streams by default",
|
|
632
|
+
"x": 780,
|
|
633
|
+
"y": 390,
|
|
634
|
+
"concern": "communication-style",
|
|
635
|
+
"status": "accepted",
|
|
636
|
+
"date": "",
|
|
637
|
+
"context": "The system's own parts (services, modules, front ends and back ends) have to ask each other for data and to get things done. How they do it decides how they fail together. The forces: a synchronous call ties the caller to the callee being up and fast at that moment (temporal coupling), and a chain of them multiplies latency and the odds that one link is down; asynchronous messages decouple in time but make the result arrive later and the flow harder to follow; events let parts react without the publisher knowing them, until nobody can tell what happens after an order is placed; a flow across parts needs either a coordinator that knows every step or a chain of reactions nobody owns; and parts are released apart, so every interaction is a contract that must not break. Delivery guarantees of a queue are the Messaging pack, and calls to systems outside are Integration resilience.",
|
|
638
|
+
"decision": "Parts write their events to a durable, partitioned log (Apache Kafka, Confluent Cloud, Amazon MSK, Redpanda; Amazon Kinesis or Azure Event Hubs where a managed cloud log is preferred), keyed by entity so that order holds per entity, retained for at least {{RETENTION_DAYS}} days, with topics holding current state compacted. Consumers read at their own pace, keep their own views (Kafka Streams, Apache Flink or plain consumers) and can rebuild them by replaying from the start; events reach every consumer within {{PROPAGATION_SECONDS}} seconds at the 99th percentile. Synchronous calls ({{SYNC_API}}, at most {{MAX_DEPTH}} deep) are recorded exceptions. Flows across parts: {{FLOWS}}. Contract checks: {{CONTRACTS}}.",
|
|
639
|
+
"consequences": "• New consumers and new views are added without asking producers, by replaying history.\n• High throughput, with order per key and parallelism per partition.\n• A cluster to run (or pay for) and partitions to size; consumer lag becomes a key metric.\n• Events in the log live for days or forever, so their schemas must stay readable for that long.",
|
|
640
|
+
"alternatives": "1. Published events through a pub/sub broker without replay: simpler, but views cannot be rebuilt from history.\n2. Commands over queues: work distribution, not a history.\n3. Change data capture from each database: no code to publish, but internal tables become the contract.",
|
|
641
|
+
"hubWhen": {
|
|
642
|
+
"DEFAULT": [
|
|
643
|
+
"streams"
|
|
644
|
+
]
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"id": "adr-orchestration",
|
|
649
|
+
"type": "adr",
|
|
650
|
+
"label": "Flows run by an orchestrator",
|
|
651
|
+
"x": 780,
|
|
652
|
+
"y": 520,
|
|
653
|
+
"concern": "communication-style",
|
|
654
|
+
"status": "accepted",
|
|
655
|
+
"date": "",
|
|
656
|
+
"context": "The system's own parts (services, modules, front ends and back ends) have to ask each other for data and to get things done. How they do it decides how they fail together. The forces: a synchronous call ties the caller to the callee being up and fast at that moment (temporal coupling), and a chain of them multiplies latency and the odds that one link is down; asynchronous messages decouple in time but make the result arrive later and the flow harder to follow; events let parts react without the publisher knowing them, until nobody can tell what happens after an order is placed; a flow across parts needs either a coordinator that knows every step or a chain of reactions nobody owns; and parts are released apart, so every interaction is a contract that must not break. Delivery guarantees of a queue are the Messaging pack, and calls to systems outside are Integration resilience.",
|
|
657
|
+
"decision": "Every business flow across parts runs as a workflow in an orchestrator: Temporal for flows written as code, Camunda 8 where the flow is modelled in BPMN with business people, AWS Step Functions on AWS. The workflow calls each part's commands, keeps the state and history of each instance, retries steps with backoff, waits on timers and human tasks, and runs a declared compensation for every completed step that changed data when a later one fails (saga semantics as in the Data consistency pack). A flow finishes or is compensated within {{FLOW_MINUTES}} minutes. The workflow belongs to the part that owns the business outcome.",
|
|
658
|
+
"consequences": "• Each flow is written in one place and each instance's state is visible and searchable.\n• Timeouts, retries and compensation come from the engine instead of hand-written state machines.\n• The orchestrator is a component to run (or pay for) and must be highly available.\n• The owning part knows every step: a change to a step means changing the workflow too.",
|
|
659
|
+
"alternatives": "1. Choreography: no central component, but flows are visible only through tracing.\n2. Hand-written state machines in a database table: no engine, but timers, retries and history to build.\n3. Distributed transactions (two-phase commit): unsupported by most brokers and services, and blocking.",
|
|
660
|
+
"hubWhen": {
|
|
661
|
+
"FLOWS": [
|
|
662
|
+
"orchestration"
|
|
663
|
+
]
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"id": "adr-choreography",
|
|
668
|
+
"type": "adr",
|
|
669
|
+
"label": "Flows by choreography",
|
|
670
|
+
"x": 780,
|
|
671
|
+
"y": 650,
|
|
672
|
+
"concern": "communication-style",
|
|
673
|
+
"status": "accepted",
|
|
674
|
+
"date": "",
|
|
675
|
+
"context": "The system's own parts (services, modules, front ends and back ends) have to ask each other for data and to get things done. How they do it decides how they fail together. The forces: a synchronous call ties the caller to the callee being up and fast at that moment (temporal coupling), and a chain of them multiplies latency and the odds that one link is down; asynchronous messages decouple in time but make the result arrive later and the flow harder to follow; events let parts react without the publisher knowing them, until nobody can tell what happens after an order is placed; a flow across parts needs either a coordinator that knows every step or a chain of reactions nobody owns; and parts are released apart, so every interaction is a contract that must not break. Delivery guarantees of a queue are the Messaging pack, and calls to systems outside are Integration resilience.",
|
|
676
|
+
"decision": "Flows across parts are choreographed: each part reacts to the events of others and publishes its own, and no part coordinates the flow. Every flow is documented as an event chain (which part reacts to which event and what it publishes) in the AsyncAPI documents and a flow diagram in the model; every event carries the flow's correlation id. A process monitor subscribes to the start and end events of each flow and reports an instance not finished within {{FLOW_MINUTES}} minutes. A flow that grows past three steps or needs timeouts is moved to an orchestrator by a new ADR.",
|
|
677
|
+
"consequences": "• No central component; each team owns its reaction and changes it alone.\n• The flow exists only as the sum of reactions; without the documented chain and the monitor nobody can tell where an instance is.\n• Compensation is spread across parts, each undoing its own step on a failure event.\n• Cyclic reactions are possible and must be caught in review.",
|
|
678
|
+
"alternatives": "1. An orchestrator: one place for the flow and its state, at the cost of a central component.\n2. Keeping the flow in one part: no coordination at all, if the boundaries allow it.",
|
|
679
|
+
"hubWhen": {
|
|
680
|
+
"FLOWS": [
|
|
681
|
+
"choreography"
|
|
682
|
+
]
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"id": "ff-depth",
|
|
687
|
+
"type": "fitness-fn",
|
|
688
|
+
"label": "Call chains within depth",
|
|
689
|
+
"x": 1040,
|
|
690
|
+
"y": 0,
|
|
691
|
+
"category": "holistic",
|
|
692
|
+
"threshold": "0 traces of the user journeys with more than {{MAX_DEPTH}} nested synchronous calls between parts",
|
|
693
|
+
"description": "The end-to-end journeys run with OpenTelemetry tracing into an in-memory exporter; the test follows each span's parents and counts nested HTTP and gRPC client spans (database calls are not counted). A new call that deepens a chain fails the test.\n\nTool: Vitest with the OpenTelemetry SDK (InMemorySpanExporter)\n\n```ts\nimport { SpanKind } from '@opentelemetry/api'\nimport { InMemorySpanExporter, SimpleSpanProcessor, type ReadableSpan } from '@opentelemetry/sdk-trace-base'\nimport { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'\n\nconst exporter = new InMemorySpanExporter()\nnew NodeTracerProvider({ spanProcessors: [new SimpleSpanProcessor(exporter)] }).register()\n\nit('no request goes more than {{MAX_DEPTH}} calls deep', async () => {\n await runUserJourneys() // the journeys of the end-to-end suite, against the parts started for the test\n const spans = exporter.getFinishedSpans()\n const byId = new Map(spans.map((s) => [s.spanContext().spanId, s]))\n const isCall = (s: ReadableSpan) =>\n s.kind === SpanKind.CLIENT && ('http.request.method' in s.attributes || 'rpc.system' in s.attributes)\n const depth = (s: ReadableSpan) => {\n let d = 0\n for (let p: ReadableSpan | undefined = s; p; p = byId.get(p.parentSpanContext?.spanId ?? '')) if (isCall(p)) d++\n return d\n }\n expect(Math.max(0, ...spans.map(depth))).toBeLessThanOrEqual({{MAX_DEPTH}})\n})\n```"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"id": "ff-budget",
|
|
697
|
+
"type": "fitness-fn",
|
|
698
|
+
"label": "Calls within budget",
|
|
699
|
+
"x": 1040,
|
|
700
|
+
"y": 130,
|
|
701
|
+
"category": "operational",
|
|
702
|
+
"threshold": "99th percentile of the time a user request spends in calls between parts at most {{CALL_BUDGET_MS}} ms under the expected load",
|
|
703
|
+
"description": "A k6 test drives the user journeys at the expected rate against a production-like environment; the parts tag their outgoing calls, and the threshold fails the run when the 99th percentile passes the budget.\n\nTool: k6\n\n```js\nimport http from 'k6/http'\nimport { check } from 'k6'\n\nexport const options = {\n scenarios: {\n journeys: { executor: 'constant-arrival-rate', rate: 50, timeUnit: '1s', duration: '10m', preAllocatedVUs: 100 },\n },\n thresholds: { 'http_req_duration{journey:order-status}': ['p(99)<{{CALL_BUDGET_MS}}'] },\n}\n\nexport default function () {\n const res = http.get(`${__ENV.BASE_URL}/orders/${__VU}/status`, { tags: { journey: 'order-status' } })\n check(res, { answered: (r) => r.status === 200 })\n}\n```",
|
|
704
|
+
"hubWhen": {
|
|
705
|
+
"DEFAULT": [
|
|
706
|
+
"sync"
|
|
707
|
+
]
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"id": "ff-command-reply",
|
|
712
|
+
"type": "fitness-fn",
|
|
713
|
+
"label": "Commands accepted and answered",
|
|
714
|
+
"x": 1040,
|
|
715
|
+
"y": 260,
|
|
716
|
+
"category": "structural",
|
|
717
|
+
"threshold": "A command is acknowledged at once and its outcome arrives within {{PROPAGATION_SECONDS}} seconds; a command sent while the receiver is down is answered after it is back",
|
|
718
|
+
"description": "An integration test starts the broker in a container, sends a command to the receiver's queue and waits for the correlated reply; a second test stops the receiver first and expects the reply once it restarts.\n\nTool: Testcontainers (RabbitMQ) with Awaitility\n\n```java\n@SpringBootTest\n@Testcontainers\nclass ReserveStockCommandTest {\n @Container @ServiceConnection\n static RabbitMQContainer rabbit = new RabbitMQContainer(\"rabbitmq:4-management\");\n\n @Autowired RabbitTemplate rabbitTemplate;\n @Autowired ReplyCollector replies; // listens on the sender's reply queue\n\n @Test\n void commandIsAnswered() {\n var id = UUID.randomUUID().toString();\n rabbitTemplate.convertAndSend(\"inventory.commands\", \"reserve-stock\", new ReserveStock(id, \"SKU-1\", 2));\n await().atMost(Duration.ofSeconds({{PROPAGATION_SECONDS}}))\n .until(() -> replies.outcomeOf(id).isPresent());\n }\n}\n```",
|
|
719
|
+
"hubWhen": {
|
|
720
|
+
"DEFAULT": [
|
|
721
|
+
"commands"
|
|
722
|
+
]
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"id": "ff-asyncapi",
|
|
727
|
+
"type": "fitness-fn",
|
|
728
|
+
"label": "Message contracts valid",
|
|
729
|
+
"x": 1040,
|
|
730
|
+
"y": 390,
|
|
731
|
+
"category": "structural",
|
|
732
|
+
"threshold": "0 AsyncAPI validation errors, and every queue or topic the parts use described in an AsyncAPI document",
|
|
733
|
+
"description": "CI validates every part's AsyncAPI document and checks that each channel the code uses (read from the broker configuration) is described in one of them.\n\nTool: AsyncAPI CLI\n\n```yaml\n# .github/workflows/contracts.yml\njobs:\n asyncapi:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: |\n for doc in services/*/asyncapi.yaml; do npx -y @asyncapi/cli validate \"$doc\"; done\n - run: |\n # every channel in the broker config is described in some AsyncAPI document\n yq -r '.channels[].address' services/*/asyncapi.yaml | sort -u > described.txt\n yq -r '.topics[].name' platform/broker/topics.yaml | sort -u > used.txt\n comm -23 used.txt described.txt | tee undescribed.txt\n [ ! -s undescribed.txt ]\n```",
|
|
734
|
+
"hubWhen": {
|
|
735
|
+
"DEFAULT": [
|
|
736
|
+
"commands",
|
|
737
|
+
"events",
|
|
738
|
+
"streams"
|
|
739
|
+
]
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"id": "ff-propagation",
|
|
744
|
+
"type": "fitness-fn",
|
|
745
|
+
"label": "Events applied in time",
|
|
746
|
+
"x": 1040,
|
|
747
|
+
"y": 520,
|
|
748
|
+
"category": "operational",
|
|
749
|
+
"threshold": "99th percentile of the time from publishing an event to its being applied by each subscriber at most {{PROPAGATION_SECONDS}} seconds over 10 minutes",
|
|
750
|
+
"description": "Each subscriber records, for every event it applies, the seconds since the event's time attribute as a histogram labelled with the subscriber; an alert fires when the 99th percentile passes the limit.\n\nTool: Prometheus alerting rule\n\n```yaml\ngroups:\n - name: event-propagation\n rules:\n - alert: EventsAppliedLate\n expr: |\n histogram_quantile(0.99, sum by (le, subscriber) (rate(event_applied_delay_seconds_bucket[10m]))) > {{PROPAGATION_SECONDS}}\n for: 10m\n labels: { severity: page }\n annotations:\n summary: \"{{ $labels.subscriber }} applies events later than {{PROPAGATION_SECONDS}} s\"\n```",
|
|
751
|
+
"hubWhen": {
|
|
752
|
+
"DEFAULT": [
|
|
753
|
+
"events",
|
|
754
|
+
"streams"
|
|
755
|
+
]
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"id": "ff-retention",
|
|
760
|
+
"type": "fitness-fn",
|
|
761
|
+
"label": "Log keeps events",
|
|
762
|
+
"x": 1040,
|
|
763
|
+
"y": 650,
|
|
764
|
+
"category": "structural",
|
|
765
|
+
"threshold": "0 deleting topics retaining events for less than {{RETENTION_DAYS}} days",
|
|
766
|
+
"description": "Topics are declared as Strimzi KafkaTopic resources; a policy run in CI over the manifests refuses a deleting topic whose retention is shorter than the limit (compacted topics keep the latest state per key and pass).\n\nTool: Conftest (Open Policy Agent)\n\n```rego\npackage main\nimport rego.v1\n\nmin_ms := {{RETENTION_DAYS}} * 24 * 60 * 60 * 1000\n\ndeny contains msg if {\n input.kind == \"KafkaTopic\"\n cfg := object.get(input.spec, \"config\", {})\n object.get(cfg, \"cleanup.policy\", \"delete\") == \"delete\"\n retention := to_number(object.get(cfg, \"retention.ms\", 604800000))\n retention >= 0\n retention < min_ms\n msg := sprintf(\"topic %s keeps events less than {{RETENTION_DAYS}} days\", [input.metadata.name])\n}\n```",
|
|
767
|
+
"hubWhen": {
|
|
768
|
+
"DEFAULT": [
|
|
769
|
+
"streams"
|
|
770
|
+
]
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"id": "ff-openapi",
|
|
775
|
+
"type": "fitness-fn",
|
|
776
|
+
"label": "Call contracts linted",
|
|
777
|
+
"x": 1040,
|
|
778
|
+
"y": 780,
|
|
779
|
+
"category": "structural",
|
|
780
|
+
"threshold": "0 errors or warnings from the house ruleset on every OpenAPI and AsyncAPI document",
|
|
781
|
+
"description": "Spectral lints every contract with the built-in OpenAPI and AsyncAPI rulesets plus house rules (operation ids, error schema, deadline header) and fails the build on a warning.\n\nTool: Spectral\n\n```yaml\n# .spectral.yaml — npx @stoplight/spectral-cli lint \"services/*/{openapi,asyncapi}.yaml\" --fail-severity warn\nextends: [\"spectral:oas\", \"spectral:asyncapi\"]\nrules:\n operation-operationId: error\n errors-use-problem-json:\n description: Every error response is application/problem+json\n given: \"$.paths.*.*.responses[?(@property >= '400')].content\"\n then: { field: \"application/problem+json\", function: truthy }\n severity: error\n```",
|
|
782
|
+
"hubWhen": {
|
|
783
|
+
"SYNC_API": [
|
|
784
|
+
"rest"
|
|
785
|
+
]
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"id": "ff-buf",
|
|
790
|
+
"type": "fitness-fn",
|
|
791
|
+
"label": "Proto contracts checked",
|
|
792
|
+
"x": 1040,
|
|
793
|
+
"y": 910,
|
|
794
|
+
"category": "structural",
|
|
795
|
+
"threshold": "0 buf lint errors and 0 breaking changes against the main branch in the .proto files",
|
|
796
|
+
"description": "Buf lints every .proto file with its standard rules and compares them with the main branch, failing on a field number reused, a field removed or a type changed. Deadlines are required by the house client wrapper, not by the contract.\n\nTool: Buf\n\n```yaml\n# buf.yaml\nversion: v2\nmodules:\n - path: proto\nlint:\n use: [STANDARD]\nbreaking:\n use: [FILE]\n# CI:\n# buf lint\n# buf breaking --against '.git#branch=main'\n```",
|
|
797
|
+
"hubWhen": {
|
|
798
|
+
"SYNC_API": [
|
|
799
|
+
"grpc"
|
|
800
|
+
]
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"id": "ff-breaking",
|
|
805
|
+
"type": "fitness-fn",
|
|
806
|
+
"label": "No breaking contract change",
|
|
807
|
+
"x": 1040,
|
|
808
|
+
"y": 1040,
|
|
809
|
+
"category": "structural",
|
|
810
|
+
"threshold": "0 breaking changes against the main branch in OpenAPI and AsyncAPI documents",
|
|
811
|
+
"description": "For each changed contract, CI compares the new version with the one on main: oasdiff for OpenAPI, the AsyncAPI CLI's diff for AsyncAPI (Buf covers .proto files). A breaking change fails the build.\n\nTool: oasdiff and AsyncAPI CLI (diff)\n\n```bash\nset -euo pipefail\nfor doc in services/*/openapi.yaml; do\n git show \"origin/main:$doc\" > base.yaml 2>/dev/null || continue # new contract\n oasdiff breaking base.yaml \"$doc\" --fail-on ERR\ndone\nfor doc in services/*/asyncapi.yaml; do\n git show \"origin/main:$doc\" > base.yaml 2>/dev/null || continue\n npx -y @asyncapi/cli diff base.yaml \"$doc\" --type breaking --format json > breaking.json\n [ \"$(jq length breaking.json)\" -eq 0 ] || { cat breaking.json; exit 1; }\ndone\n```",
|
|
812
|
+
"hubWhen": {
|
|
813
|
+
"CONTRACTS": [
|
|
814
|
+
"spec"
|
|
815
|
+
]
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"id": "ff-pact",
|
|
820
|
+
"type": "fitness-fn",
|
|
821
|
+
"label": "Consumers' pacts pass",
|
|
822
|
+
"x": 1040,
|
|
823
|
+
"y": 1170,
|
|
824
|
+
"category": "process",
|
|
825
|
+
"threshold": "100% of the pacts of consumer versions on main or in production verified before each deploy; 0 deploys refused by can-i-deploy that went ahead",
|
|
826
|
+
"description": "Every provider build verifies the pacts of its consumers (HTTP interactions with the Verifier, messages with MessageProviderPact) and publishes the result to the Pact Broker; the deploy job runs can-i-deploy first.\n\nTool: Pact (pact-js) and Pact Broker\n\n```ts\nimport { Verifier } from '@pact-foundation/pact'\n\nit('honours every consumer\\'s pact', () =>\n new Verifier({\n provider: 'ordering',\n providerBaseUrl: 'http://localhost:8080',\n pactBrokerUrl: process.env.PACT_BROKER_URL,\n consumerVersionSelectors: [{ mainBranch: true }, { deployedOrReleased: true }],\n publishVerificationResult: true,\n providerVersion: process.env.GIT_SHA,\n providerVersionBranch: process.env.GIT_BRANCH,\n }).verifyProvider())\n\n// deploy job, before deploying:\n// npx pact-broker can-i-deploy --pacticipant ordering --version $GIT_SHA --to-environment production\n```",
|
|
827
|
+
"hubWhen": {
|
|
828
|
+
"CONTRACTS": [
|
|
829
|
+
"pact"
|
|
830
|
+
]
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"id": "ff-workflow",
|
|
835
|
+
"type": "fitness-fn",
|
|
836
|
+
"label": "Workflows compensate",
|
|
837
|
+
"x": 1040,
|
|
838
|
+
"y": 1300,
|
|
839
|
+
"category": "structural",
|
|
840
|
+
"threshold": "Every workflow has a test in which each step that changes data fails once and the earlier steps are compensated",
|
|
841
|
+
"description": "Workflow tests run in Temporal's test environment with time skipping and mocked activities; for each step the test makes it fail and verifies the compensations of the earlier steps ran.\n\nTool: Temporal Java SDK testing (TestWorkflowExtension)\n\n```java\nclass PlaceOrderWorkflowTest {\n @RegisterExtension\n static final TestWorkflowExtension temporal = TestWorkflowExtension.newBuilder()\n .setWorkflowTypes(PlaceOrderWorkflowImpl.class)\n .setDoNotStart(true)\n .build();\n\n @Test\n void releasesStockWhenPaymentFails(TestWorkflowEnvironment env, Worker worker, PlaceOrderWorkflow workflow) {\n var inventory = mock(InventoryActivities.class, withSettings().withoutAnnotations());\n var payment = mock(PaymentActivities.class, withSettings().withoutAnnotations());\n when(payment.charge(any())).thenThrow(ApplicationFailure.newNonRetryableFailure(\"declined\", \"PaymentDeclined\"));\n worker.registerActivitiesImplementations(inventory, payment);\n env.start();\n\n assertThrows(WorkflowFailedException.class, () -> workflow.place(ORDER));\n verify(inventory).release(ORDER.id());\n }\n}\n```",
|
|
842
|
+
"hubWhen": {
|
|
843
|
+
"FLOWS": [
|
|
844
|
+
"orchestration"
|
|
845
|
+
]
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"id": "ff-stuck-flows",
|
|
850
|
+
"type": "fitness-fn",
|
|
851
|
+
"label": "Stuck flows alerted",
|
|
852
|
+
"x": 1040,
|
|
853
|
+
"y": 1430,
|
|
854
|
+
"category": "operational",
|
|
855
|
+
"threshold": "0 flow instances open longer than {{FLOW_MINUTES}} minutes without an alert",
|
|
856
|
+
"description": "A process monitor subscribes to the start and end events of each documented flow, correlated by id, and exports the age of the oldest open instance per flow; the alert names the flow and goes to the owner of the step expected next.\n\nTool: Prometheus alerting rule\n\n```yaml\ngroups:\n - name: choreographed-flows\n rules:\n - alert: FlowStuck\n expr: max by (flow, next_step_owner) (flow_oldest_open_instance_seconds) > {{FLOW_MINUTES}} * 60\n labels: { severity: ticket }\n annotations:\n summary: \"A {{ $labels.flow }} flow has been open for more than {{FLOW_MINUTES}} minutes\"\n```",
|
|
857
|
+
"hubWhen": {
|
|
858
|
+
"FLOWS": [
|
|
859
|
+
"choreography"
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
],
|
|
864
|
+
"relations": [
|
|
865
|
+
{
|
|
866
|
+
"id": "req-default--derives--need",
|
|
867
|
+
"sourceId": "req-default",
|
|
868
|
+
"targetId": "need",
|
|
869
|
+
"relationType": "derives"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"id": "req-depth--derives--need",
|
|
873
|
+
"sourceId": "req-depth",
|
|
874
|
+
"targetId": "need",
|
|
875
|
+
"relationType": "derives"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"id": "req-contracts--derives--need",
|
|
879
|
+
"sourceId": "req-contracts",
|
|
880
|
+
"targetId": "need",
|
|
881
|
+
"relationType": "derives"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"id": "req-deadline--derives--need",
|
|
885
|
+
"sourceId": "req-deadline",
|
|
886
|
+
"targetId": "need",
|
|
887
|
+
"relationType": "derives"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"id": "req-commands--derives--need",
|
|
891
|
+
"sourceId": "req-commands",
|
|
892
|
+
"targetId": "need",
|
|
893
|
+
"relationType": "derives"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"id": "req-events--derives--need",
|
|
897
|
+
"sourceId": "req-events",
|
|
898
|
+
"targetId": "need",
|
|
899
|
+
"relationType": "derives"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"id": "req-propagation--derives--need",
|
|
903
|
+
"sourceId": "req-propagation",
|
|
904
|
+
"targetId": "need",
|
|
905
|
+
"relationType": "derives"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"id": "req-replay--derives--need",
|
|
909
|
+
"sourceId": "req-replay",
|
|
910
|
+
"targetId": "need",
|
|
911
|
+
"relationType": "derives"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"id": "req-orchestrated--derives--need",
|
|
915
|
+
"sourceId": "req-orchestrated",
|
|
916
|
+
"targetId": "need",
|
|
917
|
+
"relationType": "derives"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"id": "req-choreographed--derives--need",
|
|
921
|
+
"sourceId": "req-choreographed",
|
|
922
|
+
"targetId": "need",
|
|
923
|
+
"relationType": "derives"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"id": "req-local-flows--derives--need",
|
|
927
|
+
"sourceId": "req-local-flows",
|
|
928
|
+
"targetId": "need",
|
|
929
|
+
"relationType": "derives"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"id": "req-contract-diff--derives--need",
|
|
933
|
+
"sourceId": "req-contract-diff",
|
|
934
|
+
"targetId": "need",
|
|
935
|
+
"relationType": "derives"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"id": "req-pacts--derives--need",
|
|
939
|
+
"sourceId": "req-pacts",
|
|
940
|
+
"targetId": "need",
|
|
941
|
+
"relationType": "derives"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"id": "sc-default--verifies--req-default",
|
|
945
|
+
"sourceId": "sc-default",
|
|
946
|
+
"targetId": "req-default",
|
|
947
|
+
"relationType": "verifies"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"id": "sc-depth--verifies--req-depth",
|
|
951
|
+
"sourceId": "sc-depth",
|
|
952
|
+
"targetId": "req-depth",
|
|
953
|
+
"relationType": "verifies"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"id": "sc-contracts--verifies--req-contracts",
|
|
957
|
+
"sourceId": "sc-contracts",
|
|
958
|
+
"targetId": "req-contracts",
|
|
959
|
+
"relationType": "verifies"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"id": "sc-deadline--verifies--req-deadline",
|
|
963
|
+
"sourceId": "sc-deadline",
|
|
964
|
+
"targetId": "req-deadline",
|
|
965
|
+
"relationType": "verifies"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"id": "sc-commands--verifies--req-commands",
|
|
969
|
+
"sourceId": "sc-commands",
|
|
970
|
+
"targetId": "req-commands",
|
|
971
|
+
"relationType": "verifies"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"id": "sc-events--verifies--req-events",
|
|
975
|
+
"sourceId": "sc-events",
|
|
976
|
+
"targetId": "req-events",
|
|
977
|
+
"relationType": "verifies"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"id": "sc-propagation--verifies--req-propagation",
|
|
981
|
+
"sourceId": "sc-propagation",
|
|
982
|
+
"targetId": "req-propagation",
|
|
983
|
+
"relationType": "verifies"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"id": "sc-replay--verifies--req-replay",
|
|
987
|
+
"sourceId": "sc-replay",
|
|
988
|
+
"targetId": "req-replay",
|
|
989
|
+
"relationType": "verifies"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"id": "sc-orchestrated--verifies--req-orchestrated",
|
|
993
|
+
"sourceId": "sc-orchestrated",
|
|
994
|
+
"targetId": "req-orchestrated",
|
|
995
|
+
"relationType": "verifies"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"id": "sc-choreographed--verifies--req-choreographed",
|
|
999
|
+
"sourceId": "sc-choreographed",
|
|
1000
|
+
"targetId": "req-choreographed",
|
|
1001
|
+
"relationType": "verifies"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"id": "sc-local-flows--verifies--req-local-flows",
|
|
1005
|
+
"sourceId": "sc-local-flows",
|
|
1006
|
+
"targetId": "req-local-flows",
|
|
1007
|
+
"relationType": "verifies"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"id": "sc-contract-diff--verifies--req-contract-diff",
|
|
1011
|
+
"sourceId": "sc-contract-diff",
|
|
1012
|
+
"targetId": "req-contract-diff",
|
|
1013
|
+
"relationType": "verifies"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"id": "sc-pacts--verifies--req-pacts",
|
|
1017
|
+
"sourceId": "sc-pacts",
|
|
1018
|
+
"targetId": "req-pacts",
|
|
1019
|
+
"relationType": "verifies"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"id": "ff-depth--implements--adr-sync",
|
|
1023
|
+
"sourceId": "ff-depth",
|
|
1024
|
+
"targetId": "adr-sync",
|
|
1025
|
+
"relationType": "implements"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"id": "ff-depth--implements--adr-commands",
|
|
1029
|
+
"sourceId": "ff-depth",
|
|
1030
|
+
"targetId": "adr-commands",
|
|
1031
|
+
"relationType": "implements"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"id": "ff-depth--implements--adr-events",
|
|
1035
|
+
"sourceId": "ff-depth",
|
|
1036
|
+
"targetId": "adr-events",
|
|
1037
|
+
"relationType": "implements"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"id": "ff-depth--implements--adr-streams",
|
|
1041
|
+
"sourceId": "ff-depth",
|
|
1042
|
+
"targetId": "adr-streams",
|
|
1043
|
+
"relationType": "implements"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"id": "ff-budget--implements--adr-sync",
|
|
1047
|
+
"sourceId": "ff-budget",
|
|
1048
|
+
"targetId": "adr-sync",
|
|
1049
|
+
"relationType": "implements"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"id": "ff-command-reply--implements--adr-commands",
|
|
1053
|
+
"sourceId": "ff-command-reply",
|
|
1054
|
+
"targetId": "adr-commands",
|
|
1055
|
+
"relationType": "implements"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"id": "ff-asyncapi--implements--adr-commands",
|
|
1059
|
+
"sourceId": "ff-asyncapi",
|
|
1060
|
+
"targetId": "adr-commands",
|
|
1061
|
+
"relationType": "implements"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"id": "ff-asyncapi--implements--adr-events",
|
|
1065
|
+
"sourceId": "ff-asyncapi",
|
|
1066
|
+
"targetId": "adr-events",
|
|
1067
|
+
"relationType": "implements"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"id": "ff-asyncapi--implements--adr-streams",
|
|
1071
|
+
"sourceId": "ff-asyncapi",
|
|
1072
|
+
"targetId": "adr-streams",
|
|
1073
|
+
"relationType": "implements"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"id": "ff-propagation--implements--adr-events",
|
|
1077
|
+
"sourceId": "ff-propagation",
|
|
1078
|
+
"targetId": "adr-events",
|
|
1079
|
+
"relationType": "implements"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"id": "ff-propagation--implements--adr-streams",
|
|
1083
|
+
"sourceId": "ff-propagation",
|
|
1084
|
+
"targetId": "adr-streams",
|
|
1085
|
+
"relationType": "implements"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"id": "ff-retention--implements--adr-streams",
|
|
1089
|
+
"sourceId": "ff-retention",
|
|
1090
|
+
"targetId": "adr-streams",
|
|
1091
|
+
"relationType": "implements"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"id": "ff-openapi--implements--adr-sync",
|
|
1095
|
+
"sourceId": "ff-openapi",
|
|
1096
|
+
"targetId": "adr-sync",
|
|
1097
|
+
"relationType": "implements"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"id": "ff-openapi--implements--adr-commands",
|
|
1101
|
+
"sourceId": "ff-openapi",
|
|
1102
|
+
"targetId": "adr-commands",
|
|
1103
|
+
"relationType": "implements"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"id": "ff-openapi--implements--adr-events",
|
|
1107
|
+
"sourceId": "ff-openapi",
|
|
1108
|
+
"targetId": "adr-events",
|
|
1109
|
+
"relationType": "implements"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"id": "ff-openapi--implements--adr-streams",
|
|
1113
|
+
"sourceId": "ff-openapi",
|
|
1114
|
+
"targetId": "adr-streams",
|
|
1115
|
+
"relationType": "implements"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"id": "ff-buf--implements--adr-sync",
|
|
1119
|
+
"sourceId": "ff-buf",
|
|
1120
|
+
"targetId": "adr-sync",
|
|
1121
|
+
"relationType": "implements"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"id": "ff-buf--implements--adr-commands",
|
|
1125
|
+
"sourceId": "ff-buf",
|
|
1126
|
+
"targetId": "adr-commands",
|
|
1127
|
+
"relationType": "implements"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
"id": "ff-buf--implements--adr-events",
|
|
1131
|
+
"sourceId": "ff-buf",
|
|
1132
|
+
"targetId": "adr-events",
|
|
1133
|
+
"relationType": "implements"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"id": "ff-buf--implements--adr-streams",
|
|
1137
|
+
"sourceId": "ff-buf",
|
|
1138
|
+
"targetId": "adr-streams",
|
|
1139
|
+
"relationType": "implements"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"id": "ff-breaking--implements--adr-sync",
|
|
1143
|
+
"sourceId": "ff-breaking",
|
|
1144
|
+
"targetId": "adr-sync",
|
|
1145
|
+
"relationType": "implements"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"id": "ff-breaking--implements--adr-commands",
|
|
1149
|
+
"sourceId": "ff-breaking",
|
|
1150
|
+
"targetId": "adr-commands",
|
|
1151
|
+
"relationType": "implements"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"id": "ff-breaking--implements--adr-events",
|
|
1155
|
+
"sourceId": "ff-breaking",
|
|
1156
|
+
"targetId": "adr-events",
|
|
1157
|
+
"relationType": "implements"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"id": "ff-breaking--implements--adr-streams",
|
|
1161
|
+
"sourceId": "ff-breaking",
|
|
1162
|
+
"targetId": "adr-streams",
|
|
1163
|
+
"relationType": "implements"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"id": "ff-pact--implements--adr-sync",
|
|
1167
|
+
"sourceId": "ff-pact",
|
|
1168
|
+
"targetId": "adr-sync",
|
|
1169
|
+
"relationType": "implements"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"id": "ff-pact--implements--adr-commands",
|
|
1173
|
+
"sourceId": "ff-pact",
|
|
1174
|
+
"targetId": "adr-commands",
|
|
1175
|
+
"relationType": "implements"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"id": "ff-pact--implements--adr-events",
|
|
1179
|
+
"sourceId": "ff-pact",
|
|
1180
|
+
"targetId": "adr-events",
|
|
1181
|
+
"relationType": "implements"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"id": "ff-pact--implements--adr-streams",
|
|
1185
|
+
"sourceId": "ff-pact",
|
|
1186
|
+
"targetId": "adr-streams",
|
|
1187
|
+
"relationType": "implements"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"id": "ff-workflow--implements--adr-orchestration",
|
|
1191
|
+
"sourceId": "ff-workflow",
|
|
1192
|
+
"targetId": "adr-orchestration",
|
|
1193
|
+
"relationType": "implements"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"id": "ff-stuck-flows--implements--adr-choreography",
|
|
1197
|
+
"sourceId": "ff-stuck-flows",
|
|
1198
|
+
"targetId": "adr-choreography",
|
|
1199
|
+
"relationType": "implements"
|
|
1200
|
+
}
|
|
1201
|
+
]
|
|
1202
|
+
}
|