@radicaltools/cli 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 +353 -33
- 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 +12712 -7144
- package/package.json +5 -3
|
@@ -0,0 +1,973 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-messaging",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Messaging",
|
|
6
|
+
"description": "Messages through queues and topics: how often each is delivered, whether order matters, which broker carries them, how their schemas change, and what happens to one that cannot be handled. That a message and the change it reports are written together is decided in the Data consistency pack.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"messaging",
|
|
9
|
+
"queues",
|
|
10
|
+
"events",
|
|
11
|
+
"kafka",
|
|
12
|
+
"rabbitmq",
|
|
13
|
+
"sqs",
|
|
14
|
+
"idempotency",
|
|
15
|
+
"dead-letter",
|
|
16
|
+
"schema-registry"
|
|
17
|
+
],
|
|
18
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
19
|
+
"concern": {
|
|
20
|
+
"id": "messaging",
|
|
21
|
+
"trigger": "LIST NODES WHERE type = \"queue\" AND external != true",
|
|
22
|
+
"why": "messages pass through these queues, so how often each is delivered, in what order, and what happens to one that cannot be handled has to be decided.",
|
|
23
|
+
"group": "architecture"
|
|
24
|
+
},
|
|
25
|
+
"sources": [
|
|
26
|
+
{
|
|
27
|
+
"title": "Enterprise Integration Patterns, Dead Letter Channel",
|
|
28
|
+
"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/DeadLetterChannel.html"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"title": "Enterprise Integration Patterns, Resequencer",
|
|
32
|
+
"url": "https://www.enterpriseintegrationpatterns.com/patterns/messaging/Resequencer.html"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"title": "microservices.io, Idempotent Consumer",
|
|
36
|
+
"url": "https://microservices.io/patterns/communication-style/idempotent-consumer.html"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"title": "AsyncAPI Specification",
|
|
40
|
+
"url": "https://www.asyncapi.com/docs/reference/specification/latest"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"title": "CloudEvents specification",
|
|
44
|
+
"url": "https://cloudevents.io/"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Confluent, Schema Evolution and Compatibility",
|
|
48
|
+
"url": "https://docs.confluent.io/platform/current/schema-registry/fundamentals/schema-evolution.html"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"templateParams": [
|
|
52
|
+
{
|
|
53
|
+
"key": "DELIVERY",
|
|
54
|
+
"title": "Delivery",
|
|
55
|
+
"label": "How often may a message be delivered?",
|
|
56
|
+
"hint": "Exactly once does not exist across a network: either a message may come twice, or it may be lost. This decides which.",
|
|
57
|
+
"defaultValue": "least",
|
|
58
|
+
"options": [
|
|
59
|
+
{
|
|
60
|
+
"value": "least",
|
|
61
|
+
"label": "at least once",
|
|
62
|
+
"description": "Nothing is lost: the broker redelivers until a consumer acknowledges, so a message may arrive twice and every consumer must recognise one it has handled. Pick it whenever a message changes a record: orders, payments, stock."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": "most",
|
|
66
|
+
"label": "at most once",
|
|
67
|
+
"description": "A message is never redelivered, so a crash can lose one; consumers stay simple. Pick it only for messages whose loss changes no record: notifications soon superseded, metrics, cache invalidations with an expiry behind them."
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"key": "ORDER",
|
|
73
|
+
"title": "Order",
|
|
74
|
+
"label": "Does the order of messages matter?",
|
|
75
|
+
"hint": "Order across all messages does not scale; order per key (per order, per account) is usually what is needed, and costs parallelism within a key.",
|
|
76
|
+
"defaultValue": "key",
|
|
77
|
+
"options": [
|
|
78
|
+
{
|
|
79
|
+
"value": "key",
|
|
80
|
+
"label": "in order per key",
|
|
81
|
+
"description": "Messages with the same key (an order id, an account id) are handled one at a time in the order sent; different keys in parallel. Pick it when a later message depends on an earlier one: created, paid, shipped."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"value": "none",
|
|
85
|
+
"label": "in any order",
|
|
86
|
+
"description": "Consumers run in parallel freely; each message carries a version so a stale one is recognised and ignored. Pick it when messages are independent of each other or carry the whole state of what they describe."
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"key": "BROKER",
|
|
92
|
+
"title": "Broker",
|
|
93
|
+
"label": "Which broker carries the messages?",
|
|
94
|
+
"hint": "A log keeps messages to be read again; a queue hands each to one consumer and forgets it. Choose by fan-out, replay, volume and who runs it.",
|
|
95
|
+
"defaultValue": "kafka",
|
|
96
|
+
"options": [
|
|
97
|
+
{
|
|
98
|
+
"value": "kafka",
|
|
99
|
+
"label": "Apache Kafka",
|
|
100
|
+
"description": "A replicated log: messages are kept for days and can be replayed, order holds per partition, throughput reaches hundreds of thousands a second. Pick it for event streams read by several consumers, replay or rebuilding read models, or very high volume; run as Confluent Cloud, Amazon MSK, Aiven or Strimzi."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"value": "rabbitmq",
|
|
104
|
+
"label": "RabbitMQ",
|
|
105
|
+
"description": "Queues with flexible routing through exchanges, acknowledgement per message and built-in dead-lettering; quorum queues replicate. Pick it for commands and work queues between services, routing by type or header, and moderate volume (thousands a second); run yourself or as CloudAMQP or Amazon MQ."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"value": "sqs",
|
|
109
|
+
"label": "Amazon SQS",
|
|
110
|
+
"description": "A managed queue with nothing to operate: redrive to a dead-letter queue built in, FIFO queues for order per message group, SNS in front for fan-out. Pick it on AWS when each queue has one consuming service and replay is not needed."
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"key": "SCHEMA",
|
|
116
|
+
"title": "Schemas",
|
|
117
|
+
"label": "How do message schemas change safely?",
|
|
118
|
+
"hint": "Producers and consumers are released apart, and old messages wait in the queue while new code reads them: each schema change has to be readable both ways.",
|
|
119
|
+
"defaultValue": "registry",
|
|
120
|
+
"options": [
|
|
121
|
+
{
|
|
122
|
+
"value": "registry",
|
|
123
|
+
"label": "a schema registry",
|
|
124
|
+
"description": "Schemas (Avro, Protobuf or JSON Schema) are registered with a compatibility mode, and the registry refuses an incompatible version when a producer registers it: Confluent Schema Registry or Apicurio for Kafka, AWS Glue Schema Registry on AWS. Pick it when several teams produce or consume the same messages, or messages are kept and replayed long after they were written."
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"value": "repo",
|
|
128
|
+
"label": "schemas in the repository",
|
|
129
|
+
"description": "Messages are described in an AsyncAPI document with JSON Schema in the producer's repository, and CI refuses a breaking change. Pick it when one team owns the producer and its few consumers, or the broker has no registry."
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "MAX_ATTEMPTS",
|
|
135
|
+
"label": "After how many failed attempts is a message set aside?",
|
|
136
|
+
"defaultValue": "5",
|
|
137
|
+
"type": "number"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"key": "DLQ_HOURS",
|
|
141
|
+
"label": "Within how many hours must a set-aside message be replayed or discarded?",
|
|
142
|
+
"defaultValue": "24",
|
|
143
|
+
"type": "number"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "LAG_MINUTES",
|
|
147
|
+
"label": "How old may the oldest waiting message get before someone is alerted (minutes)?",
|
|
148
|
+
"defaultValue": "5",
|
|
149
|
+
"type": "number"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"key": "DEDUPE_DAYS",
|
|
153
|
+
"label": "For how many days does a consumer remember the messages it has handled?",
|
|
154
|
+
"defaultValue": "7",
|
|
155
|
+
"type": "number"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"nodes": [
|
|
160
|
+
{
|
|
161
|
+
"id": "need",
|
|
162
|
+
"type": "need",
|
|
163
|
+
"label": "Messages arrive and count once",
|
|
164
|
+
"x": 0,
|
|
165
|
+
"y": 0,
|
|
166
|
+
"kind": "brief",
|
|
167
|
+
"source": "Hub concern pack: Messaging",
|
|
168
|
+
"description": "Parts of the system talk through queues. A message can be delivered twice, lost, arrive out of order, or fail every time it is handled; a producer can change a message so that a consumer released last month cannot read it. Each of these quietly corrupts data, and a stuck consumer looks like silence, unless it is decided how each is handled."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "req-envelope",
|
|
172
|
+
"type": "requirement",
|
|
173
|
+
"label": "Messages identify themselves",
|
|
174
|
+
"x": 260,
|
|
175
|
+
"y": 0,
|
|
176
|
+
"ears_type": "ubiquitous",
|
|
177
|
+
"action": "give every message a unique id, its type, its schema version (dataschema), its source, the time it was produced and a correlation id, as CloudEvents attributes",
|
|
178
|
+
"rationale": "Deduplication, ordering checks, tracing and replay all need these, and a common envelope means every consumer finds them in the same place (CloudEvents specification)."
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "req-dedupe",
|
|
182
|
+
"type": "requirement",
|
|
183
|
+
"label": "Duplicates handled once",
|
|
184
|
+
"x": 260,
|
|
185
|
+
"y": 130,
|
|
186
|
+
"ears_type": "ubiquitous",
|
|
187
|
+
"action": "handle a message delivered more than once as once, by recording its id in the same transaction as its effect and keeping the ids for {{DEDUPE_DAYS}} days",
|
|
188
|
+
"rationale": "At-least-once delivery means duplicates; recording the id with the effect is what makes the second delivery harmless even after a crash (microservices.io, Idempotent Consumer).",
|
|
189
|
+
"hubWhen": {
|
|
190
|
+
"DELIVERY": [
|
|
191
|
+
"least"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "req-dlq",
|
|
197
|
+
"type": "requirement",
|
|
198
|
+
"label": "Failing messages set aside",
|
|
199
|
+
"x": 260,
|
|
200
|
+
"y": 260,
|
|
201
|
+
"ears_type": "unwanted-behaviour",
|
|
202
|
+
"unwanted_condition": "handling a message fails {{MAX_ATTEMPTS}} times",
|
|
203
|
+
"action": "move it to a dead-letter queue with the error and the number of attempts, go on with the next messages, alert the consumer's owner, and alert again if it is still there after {{DLQ_HOURS}} hours",
|
|
204
|
+
"rationale": "One poisoned message must neither block the rest nor vanish; a dead letter nobody looks at has vanished (Enterprise Integration Patterns, Dead Letter Channel).",
|
|
205
|
+
"hubWhen": {
|
|
206
|
+
"DELIVERY": [
|
|
207
|
+
"least"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "req-lossy",
|
|
213
|
+
"type": "requirement",
|
|
214
|
+
"label": "Only losable messages",
|
|
215
|
+
"x": 260,
|
|
216
|
+
"y": 390,
|
|
217
|
+
"ears_type": "ubiquitous",
|
|
218
|
+
"action": "carry only message types listed as losable, whose loss changes no record, and drop a message whose handling fails without redelivering it, counting the drops per type",
|
|
219
|
+
"rationale": "At-most-once delivery loses messages by design; the list keeps a message that matters from being sent through it by accident.",
|
|
220
|
+
"hubWhen": {
|
|
221
|
+
"DELIVERY": [
|
|
222
|
+
"most"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "req-order",
|
|
228
|
+
"type": "requirement",
|
|
229
|
+
"label": "Order kept per key",
|
|
230
|
+
"x": 260,
|
|
231
|
+
"y": 520,
|
|
232
|
+
"ears_type": "ubiquitous",
|
|
233
|
+
"action": "publish every message with its key (the order id, the account id), and handle the messages of one key one at a time in the order they were published, while different keys run in parallel",
|
|
234
|
+
"rationale": "Applying \"paid\" before \"created\" breaks the record; order per key keeps it without giving up parallelism across keys (Enterprise Integration Patterns, Resequencer).",
|
|
235
|
+
"hubWhen": {
|
|
236
|
+
"ORDER": [
|
|
237
|
+
"key"
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"id": "req-stale",
|
|
243
|
+
"type": "requirement",
|
|
244
|
+
"label": "Stale messages ignored",
|
|
245
|
+
"x": 260,
|
|
246
|
+
"y": 650,
|
|
247
|
+
"ears_type": "unwanted-behaviour",
|
|
248
|
+
"unwanted_condition": "a message arrives carrying a version older than the one the record it changes already holds",
|
|
249
|
+
"action": "ignore it and count it, so that the result does not depend on the order of delivery",
|
|
250
|
+
"rationale": "Without order, a late message would overwrite a newer state; a version on each message makes any order give the same result.",
|
|
251
|
+
"hubWhen": {
|
|
252
|
+
"ORDER": [
|
|
253
|
+
"none"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "req-schema-registry",
|
|
259
|
+
"type": "requirement",
|
|
260
|
+
"label": "Incompatible schemas refused",
|
|
261
|
+
"x": 260,
|
|
262
|
+
"y": 780,
|
|
263
|
+
"ears_type": "event-driven",
|
|
264
|
+
"trigger": "a producer registers a new version of a message schema",
|
|
265
|
+
"action": "check it against every earlier version under the subject's compatibility mode (BACKWARD_TRANSITIVE by default, FULL_TRANSITIVE where either side may be upgraded first) and refuse an incompatible one before any message uses it",
|
|
266
|
+
"rationale": "Old messages wait in the queue and are replayed long after; a transitive check keeps every version readable. BACKWARD lets consumers upgrade first, FORWARD producers, FULL either (Confluent, Schema Evolution and Compatibility).",
|
|
267
|
+
"hubWhen": {
|
|
268
|
+
"SCHEMA": [
|
|
269
|
+
"registry"
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"id": "req-schema-repo",
|
|
275
|
+
"type": "requirement",
|
|
276
|
+
"label": "Breaking schema change refused",
|
|
277
|
+
"x": 260,
|
|
278
|
+
"y": 910,
|
|
279
|
+
"ears_type": "unwanted-behaviour",
|
|
280
|
+
"unwanted_condition": "a pull request changes a message in the AsyncAPI document so that a consumer of the last release cannot read it (a field removed, renamed or retyped, or a new required field)",
|
|
281
|
+
"action": "fail the build, and accept the change only as a new message type or channel version published beside the old one",
|
|
282
|
+
"rationale": "Producers and consumers are released apart; the document is the contract both build against (AsyncAPI Specification).",
|
|
283
|
+
"hubWhen": {
|
|
284
|
+
"SCHEMA": [
|
|
285
|
+
"repo"
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"id": "req-lag",
|
|
291
|
+
"type": "requirement",
|
|
292
|
+
"label": "Backlog alerted",
|
|
293
|
+
"x": 260,
|
|
294
|
+
"y": 1040,
|
|
295
|
+
"ears_type": "unwanted-behaviour",
|
|
296
|
+
"unwanted_condition": "the oldest message waiting for a consumer is older than {{LAG_MINUTES}} minutes",
|
|
297
|
+
"action": "alert the owner of that consumer",
|
|
298
|
+
"rationale": "A stopped or slow consumer looks like silence; the age of the oldest message is the one number that shows it (AWS ApproximateAgeOfOldestMessage, consumer lag in Kafka)."
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"id": "sc-envelope",
|
|
302
|
+
"type": "scenario",
|
|
303
|
+
"label": "Envelope complete",
|
|
304
|
+
"x": 520,
|
|
305
|
+
"y": 0,
|
|
306
|
+
"given": "each message type a producer sends",
|
|
307
|
+
"when": "one of each is read from the queue",
|
|
308
|
+
"then": "each carries id, type, dataschema, source, time and correlationid, and no two ids are equal"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"id": "sc-dedupe",
|
|
312
|
+
"type": "scenario",
|
|
313
|
+
"label": "Duplicate ignored",
|
|
314
|
+
"x": 520,
|
|
315
|
+
"y": 130,
|
|
316
|
+
"given": "a consumer that has handled a message",
|
|
317
|
+
"when": "the same message is delivered again, once right away and once after a restart",
|
|
318
|
+
"then": "state is as after one delivery, and the duplicates are counted",
|
|
319
|
+
"hubWhen": {
|
|
320
|
+
"DELIVERY": [
|
|
321
|
+
"least"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": "sc-dlq",
|
|
327
|
+
"type": "scenario",
|
|
328
|
+
"label": "Poison message set aside",
|
|
329
|
+
"x": 520,
|
|
330
|
+
"y": 260,
|
|
331
|
+
"given": "a message its consumer always fails on",
|
|
332
|
+
"when": "it has failed {{MAX_ATTEMPTS}} times, and {{DLQ_HOURS}} hours pass",
|
|
333
|
+
"then": "it is in the dead-letter queue with its error, the owner is alerted at once and again after {{DLQ_HOURS}} hours, and the messages behind it are handled",
|
|
334
|
+
"hubWhen": {
|
|
335
|
+
"DELIVERY": [
|
|
336
|
+
"least"
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"id": "sc-lossy",
|
|
342
|
+
"type": "scenario",
|
|
343
|
+
"label": "Unlisted type refused",
|
|
344
|
+
"x": 520,
|
|
345
|
+
"y": 390,
|
|
346
|
+
"given": "the list of losable message types",
|
|
347
|
+
"when": "a producer sends a type on the list, a type not on it, and a consumer fails on one message",
|
|
348
|
+
"then": "the first is delivered, the second is refused at the producer, and the failed one is delivered once, dropped and counted",
|
|
349
|
+
"hubWhen": {
|
|
350
|
+
"DELIVERY": [
|
|
351
|
+
"most"
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"id": "sc-order",
|
|
357
|
+
"type": "scenario",
|
|
358
|
+
"label": "Order of one key kept",
|
|
359
|
+
"x": 520,
|
|
360
|
+
"y": 520,
|
|
361
|
+
"given": "three messages for one order published in sequence among a thousand for other orders",
|
|
362
|
+
"when": "four consumers handle them in parallel",
|
|
363
|
+
"then": "the three are handled in the order published",
|
|
364
|
+
"hubWhen": {
|
|
365
|
+
"ORDER": [
|
|
366
|
+
"key"
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"id": "sc-stale",
|
|
372
|
+
"type": "scenario",
|
|
373
|
+
"label": "Late message ignored",
|
|
374
|
+
"x": 520,
|
|
375
|
+
"y": 650,
|
|
376
|
+
"given": "a record at version 3",
|
|
377
|
+
"when": "a message with version 2 for it arrives",
|
|
378
|
+
"then": "the record stays at version 3 and the stale message is counted",
|
|
379
|
+
"hubWhen": {
|
|
380
|
+
"ORDER": [
|
|
381
|
+
"none"
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"id": "sc-schema-registry",
|
|
387
|
+
"type": "scenario",
|
|
388
|
+
"label": "Removed field refused",
|
|
389
|
+
"x": 520,
|
|
390
|
+
"y": 780,
|
|
391
|
+
"given": "a subject in BACKWARD_TRANSITIVE mode with three versions",
|
|
392
|
+
"when": "a producer registers a version that removes a field without a default",
|
|
393
|
+
"then": "the registry refuses it and the producer's build fails",
|
|
394
|
+
"hubWhen": {
|
|
395
|
+
"SCHEMA": [
|
|
396
|
+
"registry"
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"id": "sc-schema-repo",
|
|
402
|
+
"type": "scenario",
|
|
403
|
+
"label": "Breaking change fails",
|
|
404
|
+
"x": 520,
|
|
405
|
+
"y": 910,
|
|
406
|
+
"given": "a pull request that renames a field of a message",
|
|
407
|
+
"when": "the schema check compares it with the last release",
|
|
408
|
+
"then": "the build fails, and passes once the change is a new message version",
|
|
409
|
+
"hubWhen": {
|
|
410
|
+
"SCHEMA": [
|
|
411
|
+
"repo"
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"id": "sc-lag",
|
|
417
|
+
"type": "scenario",
|
|
418
|
+
"label": "Stuck consumer alerted",
|
|
419
|
+
"x": 520,
|
|
420
|
+
"y": 1040,
|
|
421
|
+
"given": "a consumer that has stopped, and one that runs too slowly",
|
|
422
|
+
"when": "messages wait longer than {{LAG_MINUTES}} minutes",
|
|
423
|
+
"then": "each owner is alerted"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"id": "adr-least",
|
|
427
|
+
"type": "adr",
|
|
428
|
+
"label": "At-least-once delivery with idempotent consumers",
|
|
429
|
+
"x": 780,
|
|
430
|
+
"y": 0,
|
|
431
|
+
"concern": "messaging",
|
|
432
|
+
"status": "accepted",
|
|
433
|
+
"date": "",
|
|
434
|
+
"context": "Parts of the system, or other systems, talk through this queue instead of calling each other. The forces: brokers and networks redeliver, so a message may arrive twice, and avoiding that loses messages instead (exactly once does not exist end to end); parallel consumers reorder messages unless order is asked for, and global order does not scale; a message that always fails either blocks the ones behind it or vanishes; producers and consumers are released apart, so a message schema changes while old messages are still waiting; and a backlog grows silently until someone notices that nothing has happened for an hour. Snippets assume the message types with one sample each under src/messages/, the consumers under src/consumers/, schemas under schemas/ (Avro .avsc, Protobuf .proto or JSON Schema .json, one file per subject), and queues defined in Terraform under infra/.",
|
|
435
|
+
"decision": "Messages are delivered at least once. A message and the change it reports are written together through the transactional outbox, as decided in the Data consistency pack. Every message carries CloudEvents attributes; consumers record each id in the transaction of its effect and keep the ids for {{DEDUPE_DAYS}} days. A message that fails {{MAX_ATTEMPTS}} times, with backoff between attempts, goes to a dead-letter queue and its owner is alerted, to replay or discard it within {{DLQ_HOURS}} hours; one still there after that raises a second alert. Consumers handle messages {{ORDER}}.",
|
|
436
|
+
"consequences": "• No message is lost, and a duplicate has the effect of one delivery.\n• Every consumer keeps a table of handled ids, written in the same transaction as its effect.\n• Dead letters need an owner, a tool to replay them and a deadline.",
|
|
437
|
+
"alternatives": "1. At most once: simpler consumers, but messages are lost.\n2. A distributed transaction (XA) across the database and the broker: rarely supported by modern brokers, slow, and couples their availability.\n3. Kafka transactions (exactly-once within Kafka): only for read-process-write that stays inside Kafka; the database side is the Data consistency pack's.",
|
|
438
|
+
"hubWhen": {
|
|
439
|
+
"DELIVERY": [
|
|
440
|
+
"least"
|
|
441
|
+
]
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"id": "adr-most",
|
|
446
|
+
"type": "adr",
|
|
447
|
+
"label": "At-most-once delivery for losable messages",
|
|
448
|
+
"x": 780,
|
|
449
|
+
"y": 130,
|
|
450
|
+
"concern": "messaging",
|
|
451
|
+
"status": "accepted",
|
|
452
|
+
"date": "",
|
|
453
|
+
"context": "Parts of the system, or other systems, talk through this queue instead of calling each other. The forces: brokers and networks redeliver, so a message may arrive twice, and avoiding that loses messages instead (exactly once does not exist end to end); parallel consumers reorder messages unless order is asked for, and global order does not scale; a message that always fails either blocks the ones behind it or vanishes; producers and consumers are released apart, so a message schema changes while old messages are still waiting; and a backlog grows silently until someone notices that nothing has happened for an hour. Snippets assume the message types with one sample each under src/messages/, the consumers under src/consumers/, schemas under schemas/ (Avro .avsc, Protobuf .proto or JSON Schema .json, one file per subject), and queues defined in Terraform under infra/. Here the messages are notifications, metrics or hints whose loss changes no record.",
|
|
454
|
+
"decision": "Messages are delivered at most once: acknowledged on receipt (auto-ack, or offsets committed before handling) and never redelivered; a failed message is dropped and counted. Only message types on the losable list, kept in the code, may be published; anything that changes a record needs this decision superseded by at-least-once delivery first. Every message still carries CloudEvents attributes. Consumers handle messages {{ORDER}}.",
|
|
455
|
+
"consequences": "• Simple consumers: no handled-id table, no dead letters, no outbox.\n• A crash or a deployment loses the messages in flight, by design.\n• The losable list is the line to watch: a message that matters must never go through.",
|
|
456
|
+
"alternatives": "1. At least once with idempotent consumers, as soon as a message matters.\n2. No messaging: notify by a direct call that may fail visibly.",
|
|
457
|
+
"hubWhen": {
|
|
458
|
+
"DELIVERY": [
|
|
459
|
+
"most"
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"id": "adr-kafka",
|
|
465
|
+
"type": "adr",
|
|
466
|
+
"label": "Apache Kafka carries the messages",
|
|
467
|
+
"x": 780,
|
|
468
|
+
"y": 260,
|
|
469
|
+
"concern": "messaging",
|
|
470
|
+
"status": "accepted",
|
|
471
|
+
"date": "",
|
|
472
|
+
"context": "Parts of the system, or other systems, talk through this queue instead of calling each other. The forces: brokers and networks redeliver, so a message may arrive twice, and avoiding that loses messages instead (exactly once does not exist end to end); parallel consumers reorder messages unless order is asked for, and global order does not scale; a message that always fails either blocks the ones behind it or vanishes; producers and consumers are released apart, so a message schema changes while old messages are still waiting; and a backlog grows silently until someone notices that nothing has happened for an hour. Snippets assume the message types with one sample each under src/messages/, the consumers under src/consumers/, schemas under schemas/ (Avro .avsc, Protobuf .proto or JSON Schema .json, one file per subject), and queues defined in Terraform under infra/.",
|
|
473
|
+
"decision": "Messages go through Apache Kafka (managed: Confluent Cloud, Amazon MSK or Aiven; on Kubernetes: Strimzi). Topics are replicated 3 times with min.insync.replicas = 2; producers use acks = all and enable.idempotence = true; retention is at least 7 days so a consumer can replay. Consumers handle messages {{ORDER}}; where order per key is needed, the message key (the order id, the account id) is the partition key, so the messages of one key stay in order on one partition, and a consumer group's parallelism is its partition count. Kafka has no dead-letter queue of its own: the consumer framework (Spring Kafka DeadLetterPublishingRecoverer, Kafka Connect errors.deadletterqueue) publishes failed messages to a <topic>.dlq topic, the suffix configured (Spring's default is -dlt); a triage consumer group dlq-triage reads the .dlq topics when the owner replays or discards. Consumer lag is exported to Prometheus and alerted at {{LAG_MINUTES}} minutes. Choose Kafka over a queue broker when several consumers read the same stream, replay is needed, or volume is beyond tens of thousands a second.",
|
|
474
|
+
"consequences": "• Any number of consumers can read a topic, each at its own pace, and replay it.\n• Order is per partition only; the partition count bounds parallelism and is hard to change later.\n• Retries and dead letters are the consumer's code, not the broker's.\n• A cluster is heavy to run yourself; managed Kafka costs per partition and throughput.",
|
|
475
|
+
"alternatives": "1. RabbitMQ: routing and per-message dead-lettering built in, but no replay.\n2. Amazon SQS with SNS: nothing to run, but no replay and fan-out through SNS.\n3. Apache Pulsar or Redpanda: Kafka-like logs with other trade-offs (tiered storage, no JVM).",
|
|
476
|
+
"hubWhen": {
|
|
477
|
+
"BROKER": [
|
|
478
|
+
"kafka"
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"id": "adr-rabbitmq",
|
|
484
|
+
"type": "adr",
|
|
485
|
+
"label": "RabbitMQ carries the messages",
|
|
486
|
+
"x": 780,
|
|
487
|
+
"y": 390,
|
|
488
|
+
"concern": "messaging",
|
|
489
|
+
"status": "accepted",
|
|
490
|
+
"date": "",
|
|
491
|
+
"context": "Parts of the system, or other systems, talk through this queue instead of calling each other. The forces: brokers and networks redeliver, so a message may arrive twice, and avoiding that loses messages instead (exactly once does not exist end to end); parallel consumers reorder messages unless order is asked for, and global order does not scale; a message that always fails either blocks the ones behind it or vanishes; producers and consumers are released apart, so a message schema changes while old messages are still waiting; and a backlog grows silently until someone notices that nothing has happened for an hour. Snippets assume the message types with one sample each under src/messages/, the consumers under src/consumers/, schemas under schemas/ (Avro .avsc, Protobuf .proto or JSON Schema .json, one file per subject), and queues defined in Terraform under infra/.",
|
|
492
|
+
"decision": "Messages go through RabbitMQ (self-run on three nodes, CloudAMQP or Amazon MQ), on quorum queues so that they survive the loss of a node. Publishers use publisher confirms and set the timestamp property; consumers acknowledge manually after handling, with a prefetch of 10 to 50. A policy on every queue sets a dead-letter exchange and delivery-limit = {{MAX_ATTEMPTS}}, so a message that keeps failing goes to its <queue>.dlq. Consumers handle messages {{ORDER}}; where order per key is needed, the consistent-hash exchange spreads keys over single-active-consumer queues, so one key always lands in one queue read by one consumer. Queue depth, consumers, dead letters and the age of the oldest dead letter are exported through the rabbitmq_prometheus plugin and alerted. Choose RabbitMQ over a log when messages are commands or work items for one consumer each, routing by type matters, and replay is not needed.",
|
|
493
|
+
"consequences": "• Dead-lettering and delivery limits are the broker's, not code.\n• A message is gone once acknowledged: no replay, so read models are rebuilt from the source, not the queue.\n• Order per key costs a queue per hash bucket and one active consumer each.\n• A cluster to run and upgrade, unless bought managed.",
|
|
494
|
+
"alternatives": "1. Apache Kafka: replay and many consumers per stream, but dead letters and routing in code.\n2. Amazon SQS: nothing to run on AWS, less routing.\n3. Azure Service Bus: managed, with sessions for order and dead-lettering built in, on Azure.",
|
|
495
|
+
"hubWhen": {
|
|
496
|
+
"BROKER": [
|
|
497
|
+
"rabbitmq"
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"id": "adr-sqs",
|
|
503
|
+
"type": "adr",
|
|
504
|
+
"label": "Amazon SQS carries the messages",
|
|
505
|
+
"x": 780,
|
|
506
|
+
"y": 520,
|
|
507
|
+
"concern": "messaging",
|
|
508
|
+
"status": "accepted",
|
|
509
|
+
"date": "",
|
|
510
|
+
"context": "Parts of the system, or other systems, talk through this queue instead of calling each other. The forces: brokers and networks redeliver, so a message may arrive twice, and avoiding that loses messages instead (exactly once does not exist end to end); parallel consumers reorder messages unless order is asked for, and global order does not scale; a message that always fails either blocks the ones behind it or vanishes; producers and consumers are released apart, so a message schema changes while old messages are still waiting; and a backlog grows silently until someone notices that nothing has happened for an hour. Snippets assume the message types with one sample each under src/messages/, the consumers under src/consumers/, schemas under schemas/ (Avro .avsc, Protobuf .proto or JSON Schema .json, one file per subject), and queues defined in Terraform under infra/.",
|
|
511
|
+
"decision": "Messages go through Amazon SQS, with SNS in front when more than one service consumes a kind of message. Each queue has a redrive policy to its own dead-letter queue with maxReceiveCount = {{MAX_ATTEMPTS}} and a visibility timeout of six times the consumer's handling time. Consumers handle messages {{ORDER}}; where order per key is needed, FIFO queues take the key as MessageGroupId (in high-throughput mode when one queue needs more than 300 messages a second), otherwise standard queues are used. CloudWatch alarms watch ApproximateAgeOfOldestMessage at {{LAG_MINUTES}} minutes on every queue, any message in a dead-letter queue, and a dead letter older than {{DLQ_HOURS}} hours. Queues are defined in Terraform, and a plan check refuses a queue without its redrive policy. Choose SQS on AWS when each queue has one consuming service, replay is not needed, and nobody should run a broker.",
|
|
512
|
+
"consequences": "• Nothing to run or patch; cost per request.\n• Standard queues deliver at least once and out of order; FIFO queues keep order per group at a lower throughput.\n• No replay: a message is gone once deleted.\n• Messages are limited to 1 MiB (256 KiB before August 2025); larger payloads go to S3 with a reference.",
|
|
513
|
+
"alternatives": "1. Amazon Kinesis or MSK: replay and many readers per stream on AWS, more to manage.\n2. Amazon EventBridge: routing by content between many services, with lower throughput per rule.\n3. RabbitMQ on Amazon MQ: richer routing, a broker to size.",
|
|
514
|
+
"hubWhen": {
|
|
515
|
+
"BROKER": [
|
|
516
|
+
"sqs"
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id": "adr-registry",
|
|
522
|
+
"type": "adr",
|
|
523
|
+
"label": "Message schemas in a schema registry",
|
|
524
|
+
"x": 780,
|
|
525
|
+
"y": 650,
|
|
526
|
+
"concern": "messaging",
|
|
527
|
+
"status": "accepted",
|
|
528
|
+
"date": "",
|
|
529
|
+
"context": "Parts of the system, or other systems, talk through this queue instead of calling each other. The forces: brokers and networks redeliver, so a message may arrive twice, and avoiding that loses messages instead (exactly once does not exist end to end); parallel consumers reorder messages unless order is asked for, and global order does not scale; a message that always fails either blocks the ones behind it or vanishes; producers and consumers are released apart, so a message schema changes while old messages are still waiting; and a backlog grows silently until someone notices that nothing has happened for an hour. Snippets assume the message types with one sample each under src/messages/, the consumers under src/consumers/, schemas under schemas/ (Avro .avsc, Protobuf .proto or JSON Schema .json, one file per subject), and queues defined in Terraform under infra/.",
|
|
530
|
+
"decision": "Every message type has a schema (Avro or Protobuf; JSON Schema where consumers cannot use either) registered in a schema registry under one subject per topic or message type: Confluent Schema Registry or Apicurio Registry with Kafka, AWS Glue Schema Registry on AWS. Subjects are set to BACKWARD_TRANSITIVE (consumers may be upgraded before producers), FULL_TRANSITIVE where either side may be upgraded first. Producers fail to start with an unregistered schema (auto.register.schemas = false in production); CI asks the registry whether a changed schema is compatible before merge. The schema version travels in the message.",
|
|
531
|
+
"consequences": "• An incompatible schema is refused before any message uses it, across teams.\n• Old messages stay readable for as long as they are kept.\n• The registry is on the producer's path at start-up and must be highly available.\n• Removing a field needs a default first; renaming is add-then-remove.",
|
|
532
|
+
"alternatives": "1. Schemas in the repository with an AsyncAPI diff in CI: no registry to run, but only the producer's repository is checked.\n2. Schemaless JSON: nothing to set up, and breaks are found by consumers in production.",
|
|
533
|
+
"hubWhen": {
|
|
534
|
+
"SCHEMA": [
|
|
535
|
+
"registry"
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"id": "adr-schema-repo",
|
|
541
|
+
"type": "adr",
|
|
542
|
+
"label": "Message schemas in the repository",
|
|
543
|
+
"x": 780,
|
|
544
|
+
"y": 780,
|
|
545
|
+
"concern": "messaging",
|
|
546
|
+
"status": "accepted",
|
|
547
|
+
"date": "",
|
|
548
|
+
"context": "Parts of the system, or other systems, talk through this queue instead of calling each other. The forces: brokers and networks redeliver, so a message may arrive twice, and avoiding that loses messages instead (exactly once does not exist end to end); parallel consumers reorder messages unless order is asked for, and global order does not scale; a message that always fails either blocks the ones behind it or vanishes; producers and consumers are released apart, so a message schema changes while old messages are still waiting; and a backlog grows silently until someone notices that nothing has happened for an hour. Snippets assume the message types with one sample each under src/messages/, the consumers under src/consumers/, schemas under schemas/ (Avro .avsc, Protobuf .proto or JSON Schema .json, one file per subject), and queues defined in Terraform under infra/.",
|
|
549
|
+
"decision": "Every channel and message is described in an AsyncAPI document with JSON Schema payloads, kept in the producer's repository and released with it. CI compares the document with the last release (AsyncAPI CLI diff) and fails on a breaking change; a breaking change becomes a new message version on the same channel, published beside the old one until consumers have moved. Consumers generate their types from the released document. Choose it over a registry when one team owns the producer and its consumers, or the broker has no registry to hand.",
|
|
550
|
+
"consequences": "• No registry to run; the contract is reviewed with the code.\n• Only the producer's pull requests are checked: a consumer that reads a field the document never promised is not protected.\n• Two versions of a message are published side by side while consumers move.",
|
|
551
|
+
"alternatives": "1. A schema registry: checks at publish time across teams, one more service to run.\n2. Schemaless JSON: nothing to set up, breaks found in production.",
|
|
552
|
+
"hubWhen": {
|
|
553
|
+
"SCHEMA": [
|
|
554
|
+
"repo"
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"id": "ff-envelope",
|
|
560
|
+
"type": "fitness-fn",
|
|
561
|
+
"label": "Every message is a CloudEvent",
|
|
562
|
+
"x": 1040,
|
|
563
|
+
"y": 0,
|
|
564
|
+
"characteristic": "compatibility",
|
|
565
|
+
"scope": "atomic",
|
|
566
|
+
"cadence": "triggered",
|
|
567
|
+
"trigger": "pull-request",
|
|
568
|
+
"invocation": "automated",
|
|
569
|
+
"description": "A test constructs a CloudEvent from each message sample (one per type, the same samples the consumers are tested with); the SDK refuses a missing or malformed required attribute, and the test checks the attributes the pack adds.\n\nThreshold: Every message sample validates as a CloudEvent and carries dataschema, time and correlationid; 0 duplicate ids among the samples\n\nTool: Vitest with the cloudevents SDK (or the test runner and CloudEvents SDK of your stack)\n\n```ts\nimport { CloudEvent } from 'cloudevents'\nimport { MESSAGE_SAMPLES } from '../src/messages/samples' // one sample per message type\n\nit('every message type is a valid CloudEvent with schema version, time and correlation id', () => {\n const ids = new Set<string>()\n for (const sample of MESSAGE_SAMPLES) {\n const event = new CloudEvent(sample) // strict: throws ValidationError on a bad envelope\n const attrs = event.toJSON() as Record<string, unknown>\n expect(attrs.dataschema, `${event.type}: dataschema`).toMatch(/^\\S+$/)\n expect(attrs.time, `${event.type}: time`).toMatch(/^\\d{4}-\\d{2}-\\d{2}T/)\n expect(attrs.correlationid, `${event.type}: correlationid`).toMatch(/^\\S+$/)\n expect(ids.has(event.id), `duplicate id ${event.id}`).toBe(false)\n ids.add(event.id)\n }\n})\n```"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"id": "ff-dupes",
|
|
573
|
+
"type": "fitness-fn",
|
|
574
|
+
"label": "Duplicate delivery harmless",
|
|
575
|
+
"x": 1040,
|
|
576
|
+
"y": 130,
|
|
577
|
+
"characteristic": "reliability",
|
|
578
|
+
"scope": "atomic",
|
|
579
|
+
"cadence": "triggered",
|
|
580
|
+
"trigger": "pull-request",
|
|
581
|
+
"invocation": "automated",
|
|
582
|
+
"description": "An integration test starts the real broker and database in containers, publishes each message type a consumer handles twice with the same id, restarts the consumer, publishes it a third time, and compares the state with a single delivery.\n\nThreshold: Every consumer, given each of its message types twice (and again after a restart), ends in the same state as with one delivery; 0 double effects; 2 duplicates counted\n\nTool: Testcontainers (Kafka, RabbitMQ or LocalStack module) with Vitest (or the test runner of your stack)\n\n```ts\nimport { runWith } from './harness' // starts broker and database with Testcontainers, runs the real consumer\nimport { MESSAGE_SAMPLES } from '../src/messages/samples' // one sample per message type\n\ndescribe.each(MESSAGE_SAMPLES)('$type', (sample) => {\n it('has the effect of one delivery when delivered three times', async () => {\n const once = await runWith([sample])\n const thrice = await runWith([sample, sample], { restart: true, then: [sample] })\n expect(thrice.state).toEqual(once.state)\n expect(thrice.duplicatesCounted).toBe(2)\n })\n})\n```",
|
|
583
|
+
"hubWhen": {
|
|
584
|
+
"DELIVERY": [
|
|
585
|
+
"least"
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"id": "ff-lossy",
|
|
591
|
+
"type": "fitness-fn",
|
|
592
|
+
"label": "Only losable types, failures dropped",
|
|
593
|
+
"x": 1040,
|
|
594
|
+
"y": 260,
|
|
595
|
+
"characteristic": "reliability",
|
|
596
|
+
"scope": "atomic",
|
|
597
|
+
"cadence": "triggered",
|
|
598
|
+
"trigger": "pull-request",
|
|
599
|
+
"invocation": "automated",
|
|
600
|
+
"description": "A test enumerates the message types the producers can publish from their type definitions (not from a list kept by hand) and fails on any that is not on the losable list; a second test, against the real broker in a container, makes the consumer fail on a message and checks that it is delivered once and the drop counter moves.\n\nThreshold: Every message type a producer can publish is on the losable list, 0 off it; a message the consumer fails on is delivered once, never again, and counted as dropped\n\nTool: Vitest with Testcontainers (or the test runner of your stack)\n\n```ts\nimport { PUBLISHED_TYPES } from '../src/messages' // derived from the producers' type union\nimport { LOSABLE } from '../src/messages/losable' // reviewed list: loss changes no record\nimport { runWith } from './harness' // starts the broker with Testcontainers, runs the real consumer\nimport { FAILING_SAMPLE } from '../src/messages/samples' // a message the consumer throws on\n\nit('publishes only message types whose loss changes no record', () => {\n expect(PUBLISHED_TYPES.filter((t) => !LOSABLE.has(t))).toEqual([])\n})\n\nit('drops a failing message after one delivery and counts it', async () => {\n const result = await runWith([FAILING_SAMPLE])\n expect(result.deliveries).toBe(1)\n expect(result.droppedCounted).toBe(1)\n})\n```",
|
|
601
|
+
"hubWhen": {
|
|
602
|
+
"DELIVERY": [
|
|
603
|
+
"most"
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"id": "ff-stale",
|
|
609
|
+
"type": "fitness-fn",
|
|
610
|
+
"label": "Any order, same result",
|
|
611
|
+
"x": 1040,
|
|
612
|
+
"y": 390,
|
|
613
|
+
"characteristic": "reliability",
|
|
614
|
+
"scope": "atomic",
|
|
615
|
+
"cadence": "triggered",
|
|
616
|
+
"trigger": "pull-request",
|
|
617
|
+
"invocation": "automated",
|
|
618
|
+
"description": "A property-based test generates sequences of versioned messages for one record, applies every permutation, and expects the same final state as the ordered sequence.\n\nThreshold: For every message type, all orders of a sequence of 3 versions end in the state of the highest version; 0 differences\n\nTool: fast-check with Vitest (or the property-testing library of your stack)\n\n```ts\nimport fc from 'fast-check'\nimport { apply, emptyState } from '../src/consumers/record'\nimport { arbitraryUpdates } from './arbitraries' // versioned messages for one record\n\nit('ends in the same state whatever the order', () => {\n fc.assert(fc.property(\n arbitraryUpdates(3).chain((updates) =>\n fc.tuple(fc.constant(updates), fc.shuffledSubarray(updates, { minLength: updates.length }))),\n ([updates, shuffled]) => {\n const ordered = [...updates].sort((a, b) => a.version - b.version).reduce(apply, emptyState)\n expect(shuffled.reduce(apply, emptyState)).toEqual(ordered)\n }))\n})\n```",
|
|
619
|
+
"hubWhen": {
|
|
620
|
+
"ORDER": [
|
|
621
|
+
"none"
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"id": "ff-order",
|
|
627
|
+
"type": "fitness-fn",
|
|
628
|
+
"label": "Order per key holds",
|
|
629
|
+
"x": 1040,
|
|
630
|
+
"y": 520,
|
|
631
|
+
"characteristic": "reliability",
|
|
632
|
+
"scope": "atomic",
|
|
633
|
+
"cadence": "triggered",
|
|
634
|
+
"trigger": "pull-request",
|
|
635
|
+
"invocation": "automated",
|
|
636
|
+
"description": "An integration test against the real broker in a container publishes numbered messages for 100 keys interleaved, runs four consumers, and checks that each key's numbers were handled in increasing order.\n\nThreshold: With 4 consumers in parallel, the messages of each of 100 keys are handled in the order published; 0 out of order\n\nTool: Testcontainers (Kafka, RabbitMQ or LocalStack module) with Vitest (or the test runner of your stack)\n\n```ts\nit('keeps the order within each key', async () => {\n const keys = Array.from({ length: 100 }, (_, i) => 'order-' + i)\n for (let n = 1; n <= 20; n++) for (const key of keys) await publish({ key, n })\n const handled = await consumeWith(4, keys.length * 20) // [{ key, n }] in handling order\n for (const key of keys) {\n const ns = handled.filter((m) => m.key === key).map((m) => m.n)\n expect(ns).toEqual([...ns].sort((a, b) => a - b))\n }\n})\n```",
|
|
637
|
+
"hubWhen": {
|
|
638
|
+
"ORDER": [
|
|
639
|
+
"key"
|
|
640
|
+
]
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"id": "ff-kafka",
|
|
645
|
+
"type": "fitness-fn",
|
|
646
|
+
"label": "Kafka lag and dead letters",
|
|
647
|
+
"x": 1040,
|
|
648
|
+
"y": 650,
|
|
649
|
+
"characteristic": "reliability",
|
|
650
|
+
"scope": "atomic",
|
|
651
|
+
"cadence": "continual",
|
|
652
|
+
"invocation": "automated",
|
|
653
|
+
"description": "Prometheus rules over kafka-exporter metrics alert on a stuck consumer group, on a slow one (lag divided by consumption rate), on any message published to a .dlq topic, and on a dead letter the triage group has not consumed within {{DLQ_HOURS}} hours (the owner's replay or discard tool runs as that group). With at-most-once delivery there are no .dlq topics and those two rules stay idle.\n\nThreshold: An alert fires when a consumer group with waiting messages has made no progress for {{LAG_MINUTES}} minutes, or consumes so slowly that its lag is more than {{LAG_MINUTES}} minutes of its own rate; when a dead-letter topic receives a message; and when the dlq-triage group has had a dead letter waiting for {{DLQ_HOURS}} hours\n\nTool: Prometheus alerting rules (kafka-exporter)\n\n```yaml\ngroups:\n- name: messaging\n rules:\n - alert: ConsumerStuck\n expr: kafka_consumergroup_lag_sum > 0\n and delta(kafka_consumergroup_current_offset_sum[{{LAG_MINUTES}}m]) == 0\n labels: { severity: page }\n annotations: { summary: \"{{ $labels.consumergroup }} has not moved for {{LAG_MINUTES}} minutes\" }\n - alert: ConsumerSlow\n expr: kafka_consumergroup_lag_sum / rate(kafka_consumergroup_current_offset_sum[5m]) > {{LAG_MINUTES}} * 60\n for: 5m\n labels: { severity: page }\n annotations: { summary: \"{{ $labels.consumergroup }} is more than {{LAG_MINUTES}} minutes behind at its own rate\" }\n - alert: DeadLetters\n expr: increase(kafka_topic_partition_current_offset{topic=~\".+\\\\.dlq\"}[5m]) > 0\n labels: { severity: ticket }\n - alert: DeadLetterUntriaged\n expr: kafka_consumergroup_lag_sum{consumergroup=\"dlq-triage\"} > 0\n for: {{DLQ_HOURS}}h\n labels: { severity: page }\n annotations: { summary: \"a dead letter on {{ $labels.topic }} has waited {{DLQ_HOURS}} hours\" }\n```",
|
|
654
|
+
"hubWhen": {
|
|
655
|
+
"BROKER": [
|
|
656
|
+
"kafka"
|
|
657
|
+
]
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"id": "ff-rabbitmq",
|
|
662
|
+
"type": "fitness-fn",
|
|
663
|
+
"label": "RabbitMQ backlog and dead letters",
|
|
664
|
+
"x": 1040,
|
|
665
|
+
"y": 780,
|
|
666
|
+
"characteristic": "reliability",
|
|
667
|
+
"scope": "atomic",
|
|
668
|
+
"cadence": "continual",
|
|
669
|
+
"invocation": "automated",
|
|
670
|
+
"description": "Prometheus rules over the rabbitmq_prometheus plugin's per-object metrics alert on stuck queues, dead letters, and a dead letter older than {{DLQ_HOURS}} hours (the head timestamp needs the timestamp property set by publishers). With at-most-once delivery there are no .dlq queues and those two rules stay idle.\n\nThreshold: An alert fires when a queue has messages ready and no consumer, or messages ready that have not decreased for {{LAG_MINUTES}} minutes, or any message in a .dlq queue, or a .dlq head message older than {{DLQ_HOURS}} hours\n\nTool: Prometheus alerting rules (rabbitmq_prometheus plugin, per-object metrics)\n\n```yaml\ngroups:\n- name: messaging\n rules:\n - alert: QueueWithoutConsumer\n expr: rabbitmq_queue_messages_ready > 0 and rabbitmq_queue_consumers == 0\n for: {{LAG_MINUTES}}m\n - alert: QueueStuck\n expr: rabbitmq_queue_messages_ready > 0 and delta(rabbitmq_queue_messages_ready[{{LAG_MINUTES}}m]) >= 0\n for: {{LAG_MINUTES}}m\n - alert: DeadLetters\n expr: rabbitmq_queue_messages{queue=~\".+\\\\.dlq\"} > 0\n labels: { severity: ticket }\n - alert: DeadLetterUntriaged\n expr: time() - rabbitmq_queue_head_message_timestamp{queue=~\".+\\\\.dlq\"} > {{DLQ_HOURS}} * 3600\n labels: { severity: page }\n```",
|
|
671
|
+
"hubWhen": {
|
|
672
|
+
"BROKER": [
|
|
673
|
+
"rabbitmq"
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"id": "ff-rabbitmq-policy",
|
|
679
|
+
"type": "fitness-fn",
|
|
680
|
+
"label": "Every queue quorum with a delivery limit",
|
|
681
|
+
"x": 1040,
|
|
682
|
+
"y": 910,
|
|
683
|
+
"characteristic": "reliability",
|
|
684
|
+
"scope": "atomic",
|
|
685
|
+
"cadence": "triggered",
|
|
686
|
+
"trigger": "nightly",
|
|
687
|
+
"invocation": "automated",
|
|
688
|
+
"description": "A scheduled job reads every queue from the management API and fails on one that is not a quorum queue or whose effective policy lacks the dead-letter exchange or the delivery limit; the policy itself is applied from the repository.\n\nThreshold: Every queue that is not a .dlq is a quorum queue whose effective policy sets a dead-letter exchange and delivery-limit = {{MAX_ATTEMPTS}}; 0 queues without\n\nTool: RabbitMQ management API with curl and jq\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\n# policy, applied from the repository:\n# rabbitmqctl set_policy dlx \".*\" '{\"dead-letter-exchange\":\"dlx\",\"delivery-limit\":{{MAX_ATTEMPTS}}}' --apply-to quorum_queues\nbad=$(curl -sf -u \"$RABBIT_USER:$RABBIT_PASS\" \"$RABBIT_MGMT_URL/api/queues\" | jq -r --argjson max {{MAX_ATTEMPTS}} '\n .[] | select(.name | endswith(\".dlq\") | not)\n | select(.type != \"quorum\"\n or (.effective_policy_definition[\"delivery-limit\"] // -1) != $max\n or ((.effective_policy_definition[\"dead-letter-exchange\"] // \"\") == \"\"))\n | \"\\(.vhost)/\\(.name) (\\(.type))\"')\ntest -z \"$bad\" || { echo \"queues without quorum type or the dead-letter policy:\"; echo \"$bad\"; exit 1; }\n```",
|
|
689
|
+
"hubWhen": {
|
|
690
|
+
"BROKER": [
|
|
691
|
+
"rabbitmq"
|
|
692
|
+
]
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"id": "ff-sqs",
|
|
697
|
+
"type": "fitness-fn",
|
|
698
|
+
"label": "SQS age and dead letters",
|
|
699
|
+
"x": 1040,
|
|
700
|
+
"y": 1040,
|
|
701
|
+
"characteristic": "reliability",
|
|
702
|
+
"scope": "atomic",
|
|
703
|
+
"cadence": "continual",
|
|
704
|
+
"invocation": "automated",
|
|
705
|
+
"description": "Each queue, its dead-letter queue and their three CloudWatch alarms are defined together in one Terraform module, so a queue cannot exist without its alarms; the redrive policy itself is checked by the plan policy.\n\nThreshold: An alarm fires when ApproximateAgeOfOldestMessage of a queue exceeds {{LAG_MINUTES}} minutes, when its dead-letter queue holds a message, and when the oldest dead letter is older than {{DLQ_HOURS}} hours\n\nTool: Amazon CloudWatch alarms (Terraform)\n\n```hcl\nresource \"aws_sqs_queue\" \"orders_dlq\" { name = \"orders-dlq\" }\n\nresource \"aws_sqs_queue\" \"orders\" {\n name = \"orders\"\n redrive_policy = jsonencode({ deadLetterTargetArn = aws_sqs_queue.orders_dlq.arn, maxReceiveCount = {{MAX_ATTEMPTS}} })\n}\n\nresource \"aws_cloudwatch_metric_alarm\" \"orders_age\" {\n alarm_name = \"orders-oldest-message\"\n namespace = \"AWS/SQS\"\n metric_name = \"ApproximateAgeOfOldestMessage\"\n dimensions = { QueueName = aws_sqs_queue.orders.name }\n statistic = \"Maximum\"\n period = 60\n evaluation_periods = 1\n threshold = {{LAG_MINUTES}} * 60\n comparison_operator = \"GreaterThanThreshold\"\n}\n\nresource \"aws_cloudwatch_metric_alarm\" \"orders_dead_letters\" {\n alarm_name = \"orders-dead-letters\"\n namespace = \"AWS/SQS\"\n metric_name = \"ApproximateNumberOfMessagesVisible\"\n dimensions = { QueueName = aws_sqs_queue.orders_dlq.name }\n statistic = \"Maximum\"\n period = 60\n evaluation_periods = 1\n threshold = 0\n comparison_operator = \"GreaterThanThreshold\"\n}\n\nresource \"aws_cloudwatch_metric_alarm\" \"orders_dead_letter_age\" {\n alarm_name = \"orders-dead-letter-untriaged\"\n namespace = \"AWS/SQS\"\n metric_name = \"ApproximateAgeOfOldestMessage\"\n dimensions = { QueueName = aws_sqs_queue.orders_dlq.name }\n statistic = \"Maximum\"\n period = 300\n evaluation_periods = 1\n threshold = {{DLQ_HOURS}} * 3600\n comparison_operator = \"GreaterThanThreshold\"\n}\n```",
|
|
706
|
+
"hubWhen": {
|
|
707
|
+
"BROKER": [
|
|
708
|
+
"sqs"
|
|
709
|
+
]
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"id": "ff-sqs-redrive",
|
|
714
|
+
"type": "fitness-fn",
|
|
715
|
+
"label": "No queue without redrive",
|
|
716
|
+
"x": 1040,
|
|
717
|
+
"y": 1170,
|
|
718
|
+
"characteristic": "reliability",
|
|
719
|
+
"scope": "atomic",
|
|
720
|
+
"cadence": "triggered",
|
|
721
|
+
"trigger": "pull-request",
|
|
722
|
+
"invocation": "automated",
|
|
723
|
+
"description": "A Conftest policy over the Terraform plan fails the pull request on a queue without a redrive policy, or with another maxReceiveCount; a policy only known after apply is reported too, so it is written as a literal.\n\nThreshold: Every aws_sqs_queue in the plan that is not a dead-letter queue has a redrive policy with maxReceiveCount = {{MAX_ATTEMPTS}}; 0 without\n\nTool: Conftest (Open Policy Agent) over terraform show -json\n\n```rego\npackage main\n\nimport rego.v1\n\nqueues contains rc if {\n some rc in input.resource_changes\n rc.type == \"aws_sqs_queue\"\n not endswith(rc.change.after.name, \"-dlq\")\n}\n\ndeny contains msg if {\n some rc in queues\n not rc.change.after.redrive_policy\n msg := sprintf(\"%s has no redrive policy to a dead-letter queue\", [rc.address])\n}\n\ndeny contains msg if {\n some rc in queues\n rc.change.after.redrive_policy\n json.unmarshal(rc.change.after.redrive_policy).maxReceiveCount != {{MAX_ATTEMPTS}}\n msg := sprintf(\"%s sets maxReceiveCount other than {{MAX_ATTEMPTS}}\", [rc.address])\n}\n```",
|
|
724
|
+
"hubWhen": {
|
|
725
|
+
"BROKER": [
|
|
726
|
+
"sqs"
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"id": "ff-registry",
|
|
732
|
+
"type": "fitness-fn",
|
|
733
|
+
"label": "Schemas compatible before merge",
|
|
734
|
+
"x": 1040,
|
|
735
|
+
"y": 1300,
|
|
736
|
+
"characteristic": "compatibility",
|
|
737
|
+
"scope": "atomic",
|
|
738
|
+
"cadence": "triggered",
|
|
739
|
+
"trigger": "pull-request",
|
|
740
|
+
"invocation": "automated",
|
|
741
|
+
"description": "A CI step asks the registry whether each changed Avro, Protobuf or JSON schema is compatible with every version of its subject under the subject's mode, skips subjects that do not exist yet, and fails on the first incompatible one.\n\nThreshold: Every changed schema of an existing subject is compatible with all registered versions under the subject's mode before merge; 0 incompatible registrations; a new subject passes\n\nTool: Confluent Schema Registry compatibility API with curl and jq (Apicurio Registry offers the same check)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nauth=(-u \"$SR_KEY:$SR_SECRET\")\nfor file in $(git diff --name-only origin/main -- 'schemas/*.avsc' 'schemas/*.proto' 'schemas/*.json'); do\n name=$(basename \"$file\"); subject=\"${name%.*}-value\"\n case \"${name##*.}\" in avsc) type=AVRO ;; proto) type=PROTOBUF ;; json) type=JSON ;; esac\n if ! curl -sf \"${auth[@]}\" \"$SCHEMA_REGISTRY_URL/subjects/$subject/versions\" > /dev/null; then\n echo \"$subject: new subject, nothing to be compatible with\"; continue\n fi\n body=$(jq -n --arg t \"$type\" --rawfile s \"$file\" '{schemaType: $t, schema: $s}')\n curl -sf \"${auth[@]}\" -H 'Content-Type: application/vnd.schemaregistry.v1+json' -d \"$body\" \\\n \"$SCHEMA_REGISTRY_URL/compatibility/subjects/$subject/versions?verbose=true\" \\\n | jq -e '.is_compatible' > /dev/null || { echo \"incompatible: $file\"; exit 1; }\ndone\n```",
|
|
742
|
+
"hubWhen": {
|
|
743
|
+
"SCHEMA": [
|
|
744
|
+
"registry"
|
|
745
|
+
]
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"id": "ff-asyncapi",
|
|
750
|
+
"type": "fitness-fn",
|
|
751
|
+
"label": "AsyncAPI break check",
|
|
752
|
+
"x": 1040,
|
|
753
|
+
"y": 1430,
|
|
754
|
+
"characteristic": "compatibility",
|
|
755
|
+
"scope": "atomic",
|
|
756
|
+
"cadence": "triggered",
|
|
757
|
+
"trigger": "pull-request",
|
|
758
|
+
"invocation": "automated",
|
|
759
|
+
"description": "In every pull request, the AsyncAPI CLI diffs the document with the one of the last release tag, listing only the changes it classifies as breaking, and the step fails when that list is not empty.\n\nThreshold: 0 breaking changes between the last release's AsyncAPI document and the pull request\n\nTool: AsyncAPI CLI (asyncapi diff)\n\n```yaml\n# .github/workflows/messages.yml (a job step; actions/checkout@v4.2.2 with fetch-depth: 0 — pin by commit SHA in your repository)\n- name: No breaking message changes\n run: |\n git show \"$(git describe --tags --abbrev=0)\":asyncapi.yaml > /tmp/base.yaml\n npx @asyncapi/cli diff /tmp/base.yaml asyncapi.yaml --type breaking --format json > /tmp/breaking.json\n jq -e 'length == 0' /tmp/breaking.json\n```",
|
|
760
|
+
"hubWhen": {
|
|
761
|
+
"SCHEMA": [
|
|
762
|
+
"repo"
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"relations": [
|
|
768
|
+
{
|
|
769
|
+
"id": "req-envelope--derives--need",
|
|
770
|
+
"sourceId": "req-envelope",
|
|
771
|
+
"targetId": "need",
|
|
772
|
+
"relationType": "derives"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"id": "req-dedupe--derives--need",
|
|
776
|
+
"sourceId": "req-dedupe",
|
|
777
|
+
"targetId": "need",
|
|
778
|
+
"relationType": "derives"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"id": "req-dlq--derives--need",
|
|
782
|
+
"sourceId": "req-dlq",
|
|
783
|
+
"targetId": "need",
|
|
784
|
+
"relationType": "derives"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"id": "req-lossy--derives--need",
|
|
788
|
+
"sourceId": "req-lossy",
|
|
789
|
+
"targetId": "need",
|
|
790
|
+
"relationType": "derives"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"id": "req-order--derives--need",
|
|
794
|
+
"sourceId": "req-order",
|
|
795
|
+
"targetId": "need",
|
|
796
|
+
"relationType": "derives"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"id": "req-stale--derives--need",
|
|
800
|
+
"sourceId": "req-stale",
|
|
801
|
+
"targetId": "need",
|
|
802
|
+
"relationType": "derives"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"id": "req-schema-registry--derives--need",
|
|
806
|
+
"sourceId": "req-schema-registry",
|
|
807
|
+
"targetId": "need",
|
|
808
|
+
"relationType": "derives"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"id": "req-schema-repo--derives--need",
|
|
812
|
+
"sourceId": "req-schema-repo",
|
|
813
|
+
"targetId": "need",
|
|
814
|
+
"relationType": "derives"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"id": "req-lag--derives--need",
|
|
818
|
+
"sourceId": "req-lag",
|
|
819
|
+
"targetId": "need",
|
|
820
|
+
"relationType": "derives"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"id": "sc-envelope--verifies--req-envelope",
|
|
824
|
+
"sourceId": "sc-envelope",
|
|
825
|
+
"targetId": "req-envelope",
|
|
826
|
+
"relationType": "verifies"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"id": "sc-dedupe--verifies--req-dedupe",
|
|
830
|
+
"sourceId": "sc-dedupe",
|
|
831
|
+
"targetId": "req-dedupe",
|
|
832
|
+
"relationType": "verifies"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"id": "sc-dlq--verifies--req-dlq",
|
|
836
|
+
"sourceId": "sc-dlq",
|
|
837
|
+
"targetId": "req-dlq",
|
|
838
|
+
"relationType": "verifies"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"id": "sc-lossy--verifies--req-lossy",
|
|
842
|
+
"sourceId": "sc-lossy",
|
|
843
|
+
"targetId": "req-lossy",
|
|
844
|
+
"relationType": "verifies"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"id": "sc-order--verifies--req-order",
|
|
848
|
+
"sourceId": "sc-order",
|
|
849
|
+
"targetId": "req-order",
|
|
850
|
+
"relationType": "verifies"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"id": "sc-stale--verifies--req-stale",
|
|
854
|
+
"sourceId": "sc-stale",
|
|
855
|
+
"targetId": "req-stale",
|
|
856
|
+
"relationType": "verifies"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"id": "sc-schema-registry--verifies--req-schema-registry",
|
|
860
|
+
"sourceId": "sc-schema-registry",
|
|
861
|
+
"targetId": "req-schema-registry",
|
|
862
|
+
"relationType": "verifies"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"id": "sc-schema-repo--verifies--req-schema-repo",
|
|
866
|
+
"sourceId": "sc-schema-repo",
|
|
867
|
+
"targetId": "req-schema-repo",
|
|
868
|
+
"relationType": "verifies"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"id": "sc-lag--verifies--req-lag",
|
|
872
|
+
"sourceId": "sc-lag",
|
|
873
|
+
"targetId": "req-lag",
|
|
874
|
+
"relationType": "verifies"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"id": "ff-envelope--implements--adr-least",
|
|
878
|
+
"sourceId": "ff-envelope",
|
|
879
|
+
"targetId": "adr-least",
|
|
880
|
+
"relationType": "implements"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"id": "ff-envelope--implements--adr-most",
|
|
884
|
+
"sourceId": "ff-envelope",
|
|
885
|
+
"targetId": "adr-most",
|
|
886
|
+
"relationType": "implements"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"id": "ff-dupes--implements--adr-least",
|
|
890
|
+
"sourceId": "ff-dupes",
|
|
891
|
+
"targetId": "adr-least",
|
|
892
|
+
"relationType": "implements"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"id": "ff-lossy--implements--adr-most",
|
|
896
|
+
"sourceId": "ff-lossy",
|
|
897
|
+
"targetId": "adr-most",
|
|
898
|
+
"relationType": "implements"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"id": "ff-stale--implements--adr-least",
|
|
902
|
+
"sourceId": "ff-stale",
|
|
903
|
+
"targetId": "adr-least",
|
|
904
|
+
"relationType": "implements"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"id": "ff-stale--implements--adr-most",
|
|
908
|
+
"sourceId": "ff-stale",
|
|
909
|
+
"targetId": "adr-most",
|
|
910
|
+
"relationType": "implements"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"id": "ff-order--implements--adr-kafka",
|
|
914
|
+
"sourceId": "ff-order",
|
|
915
|
+
"targetId": "adr-kafka",
|
|
916
|
+
"relationType": "implements"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"id": "ff-order--implements--adr-rabbitmq",
|
|
920
|
+
"sourceId": "ff-order",
|
|
921
|
+
"targetId": "adr-rabbitmq",
|
|
922
|
+
"relationType": "implements"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"id": "ff-order--implements--adr-sqs",
|
|
926
|
+
"sourceId": "ff-order",
|
|
927
|
+
"targetId": "adr-sqs",
|
|
928
|
+
"relationType": "implements"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"id": "ff-kafka--implements--adr-kafka",
|
|
932
|
+
"sourceId": "ff-kafka",
|
|
933
|
+
"targetId": "adr-kafka",
|
|
934
|
+
"relationType": "implements"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"id": "ff-rabbitmq--implements--adr-rabbitmq",
|
|
938
|
+
"sourceId": "ff-rabbitmq",
|
|
939
|
+
"targetId": "adr-rabbitmq",
|
|
940
|
+
"relationType": "implements"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"id": "ff-rabbitmq-policy--implements--adr-rabbitmq",
|
|
944
|
+
"sourceId": "ff-rabbitmq-policy",
|
|
945
|
+
"targetId": "adr-rabbitmq",
|
|
946
|
+
"relationType": "implements"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"id": "ff-sqs--implements--adr-sqs",
|
|
950
|
+
"sourceId": "ff-sqs",
|
|
951
|
+
"targetId": "adr-sqs",
|
|
952
|
+
"relationType": "implements"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"id": "ff-sqs-redrive--implements--adr-sqs",
|
|
956
|
+
"sourceId": "ff-sqs-redrive",
|
|
957
|
+
"targetId": "adr-sqs",
|
|
958
|
+
"relationType": "implements"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"id": "ff-registry--implements--adr-registry",
|
|
962
|
+
"sourceId": "ff-registry",
|
|
963
|
+
"targetId": "adr-registry",
|
|
964
|
+
"relationType": "implements"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"id": "ff-asyncapi--implements--adr-schema-repo",
|
|
968
|
+
"sourceId": "ff-asyncapi",
|
|
969
|
+
"targetId": "adr-schema-repo",
|
|
970
|
+
"relationType": "implements"
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
}
|