@radicaltools/mcp 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -23
- package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
- package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10321 -3964
- package/package.json +1 -1
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
- package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
- package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
- package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
- package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
- package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
- package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
- package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
- package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
- package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
- package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
- package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
- package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
- package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
- package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
- package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
- package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
- package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
- package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
- package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
- package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
|
@@ -0,0 +1,1318 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-decomposition",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Decomposition",
|
|
6
|
+
"description": "How the system is split into deployables: one monolith, a modular monolith, microservices or serverless functions; where the boundaries go, who owns the data, and how an existing system is moved over. The checks are shell and TypeScript scripts (run with tsx) over GitHub, Kubernetes manifests, PostgreSQL and the architecture model, plus Spring Modulith for the module test; each tool line names the alternatives.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"architecture",
|
|
9
|
+
"decomposition",
|
|
10
|
+
"monolith",
|
|
11
|
+
"modular monolith",
|
|
12
|
+
"microservices",
|
|
13
|
+
"serverless",
|
|
14
|
+
"bounded context",
|
|
15
|
+
"strangler fig"
|
|
16
|
+
],
|
|
17
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
18
|
+
"concern": {
|
|
19
|
+
"id": "decomposition",
|
|
20
|
+
"trigger": "LIST NODES WHERE type = \"system\" AND external != true",
|
|
21
|
+
"why": "this system is built and run by people, so how it is split into deployables, and who owns which data, has to be decided.",
|
|
22
|
+
"group": "architecture"
|
|
23
|
+
},
|
|
24
|
+
"sources": [
|
|
25
|
+
{
|
|
26
|
+
"title": "Martin Fowler: MonolithFirst",
|
|
27
|
+
"url": "https://martinfowler.com/bliki/MonolithFirst.html"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "Martin Fowler: MicroservicePremium",
|
|
31
|
+
"url": "https://martinfowler.com/bliki/MicroservicePremium.html"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"title": "James Lewis, Martin Fowler: Microservices",
|
|
35
|
+
"url": "https://martinfowler.com/articles/microservices.html"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "Martin Fowler: BoundedContext",
|
|
39
|
+
"url": "https://martinfowler.com/bliki/BoundedContext.html"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "Martin Fowler: StranglerFigApplication",
|
|
43
|
+
"url": "https://martinfowler.com/bliki/StranglerFigApplication.html"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"title": "microservices.io, Database per service",
|
|
47
|
+
"url": "https://microservices.io/patterns/data/database-per-service.html"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"title": "microservices.io, Shared database",
|
|
51
|
+
"url": "https://microservices.io/patterns/data/shared-database.html"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Sam Newman: Monolith to Microservices (O'Reilly)",
|
|
55
|
+
"url": "https://www.oreilly.com/library/view/monolith-to-microservices/9781492047834/"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"title": "Sam Newman: Building Microservices, 2nd ed. (O'Reilly)",
|
|
59
|
+
"url": "https://www.oreilly.com/library/view/building-microservices-2nd/9781492034018/"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"title": "Matthew Skelton, Manuel Pais: Team Topologies",
|
|
63
|
+
"url": "https://teamtopologies.com/book"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"title": "AWS Well-Architected Framework, Serverless Applications Lens",
|
|
67
|
+
"url": "https://docs.aws.amazon.com/wellarchitected/latest/serverless-applications-lens/welcome.html"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"title": "ISO/IEC 25010, Maintainability: modularity",
|
|
71
|
+
"url": "https://iso25000.com/index.php/en/iso-25000-standards/iso-25010"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"title": "Spring Modulith reference documentation",
|
|
75
|
+
"url": "https://docs.spring.io/spring-modulith/reference/"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"templateParams": [
|
|
79
|
+
{
|
|
80
|
+
"key": "SPLIT",
|
|
81
|
+
"title": "Deployables",
|
|
82
|
+
"label": "How is the system split into deployables?",
|
|
83
|
+
"hint": "Each deployable is released, scaled and run on its own. More of them buy independence for teams and costs network calls, distributed data and operations. The structure inside each is the Architecture style pack.",
|
|
84
|
+
"defaultValue": "modular",
|
|
85
|
+
"options": [
|
|
86
|
+
{
|
|
87
|
+
"value": "monolith",
|
|
88
|
+
"label": "one monolith",
|
|
89
|
+
"description": "One deployable and one database, without enforced inner boundaries. Pick it for one team (up to about eight people), a new product whose domain is still being discovered, or a short-lived system. Goes with one shared schema; the boundary question then says only how it would be cut later."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"value": "modular",
|
|
93
|
+
"label": "a modular monolith",
|
|
94
|
+
"description": "One deployable cut into modules, one per bounded context, each with a published API and its own data. Pick it for one to about three teams, when boundaries are not yet proven, or when the platform and on-call for many services are not there yet: modules can become services later. Goes with a schema per module (or a database per module where isolation matters more than cost)."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"value": "microservices",
|
|
98
|
+
"label": "microservices, one per bounded context",
|
|
99
|
+
"description": "Each bounded context is a service with its own pipeline, data and owning team. Pick it when several teams (more than about three) must release independently, parts scale or fail differently, the boundaries are known, and there is a platform for deployment, observability and on-call per service. Goes with a database per deployable; a shared schema would make them one service released many times."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "serverless",
|
|
103
|
+
"label": "serverless functions, grouped per context",
|
|
104
|
+
"description": "Functions (AWS Lambda, Azure Functions, Google Cloud Functions) triggered by HTTP, queues and schedules, deployed per bounded context as one stack. Pick it for spiky or low, event-driven load where paying per call beats running servers, short tasks (seconds), and a team ready to work within the provider's limits. Goes with a database per deployable (per stack)."
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"key": "DATA",
|
|
110
|
+
"title": "Data",
|
|
111
|
+
"label": "Who owns which data?",
|
|
112
|
+
"hint": "Data shared between parts is coupling the network does not remove: parts that read each other's tables have to change together. This pack owns the decision; the Data consistency pack refers to it.",
|
|
113
|
+
"defaultValue": "schemas",
|
|
114
|
+
"options": [
|
|
115
|
+
{
|
|
116
|
+
"value": "own",
|
|
117
|
+
"label": "a database per deployable",
|
|
118
|
+
"description": "Each service or function group has its own database that nobody else reads; others get its data through its API or events. Pick it with microservices or serverless, or whenever parts must be released and scaled apart; not with one monolith, which has one database."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"value": "schemas",
|
|
122
|
+
"label": "one server, a schema per module",
|
|
123
|
+
"description": "One database server; each module has a schema and a database user of its own, and no query reaches another module's schema. Pick it for a modular monolith, or for services on their way out of one: cheap to run, and each schema can move to its own server later. Not with one monolith, which has no modules to give schemas to."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"value": "shared",
|
|
127
|
+
"label": "one shared schema, writes owned",
|
|
128
|
+
"description": "All parts use one schema; each table has one owning module that alone writes it, and others read only through views it publishes. Pick it for a monolith, or an existing system whose tables cannot be split yet. Not with microservices or serverless: services sharing a schema are one service released many times."
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"key": "BOUNDARY",
|
|
134
|
+
"title": "Boundaries",
|
|
135
|
+
"label": "What decides where a boundary goes?",
|
|
136
|
+
"hint": "A boundary in the wrong place makes every change cross it. This decides what a module or service is cut around. With one monolith there are no enforced boundaries yet; the answer then says how it would be cut.",
|
|
137
|
+
"defaultValue": "context",
|
|
138
|
+
"options": [
|
|
139
|
+
{
|
|
140
|
+
"value": "context",
|
|
141
|
+
"label": "bounded contexts of the domain",
|
|
142
|
+
"description": "Boundaries follow the bounded contexts of a context map: each holds one model and its own language (ordering, billing, shipping). Pick it when the domain is understood well enough to draw a context map, usually after an event-storming or domain-modelling workshop."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"value": "team",
|
|
146
|
+
"label": "the teams that own them",
|
|
147
|
+
"description": "Each stream-aligned team owns its parts end to end, and boundaries are drawn so that most changes stay within one team (Conway's law used on purpose). Pick it when the team structure is settled and coordination between teams is the main cost."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"value": "need",
|
|
151
|
+
"label": "a measured need only",
|
|
152
|
+
"description": "Everything stays together unless a part has a measured, different need: load, runtime, security zone or release rate, recorded with the numbers. Pick it when the domain is young and boundaries are not known, to avoid splitting too early."
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"key": "MIGRATION",
|
|
158
|
+
"title": "Starting point",
|
|
159
|
+
"label": "Is an existing system being replaced?",
|
|
160
|
+
"hint": "A big-bang rewrite delays all value to the end and usually overruns; an existing system is replaced piece by piece behind a facade.",
|
|
161
|
+
"defaultValue": "new",
|
|
162
|
+
"options": [
|
|
163
|
+
{
|
|
164
|
+
"value": "new",
|
|
165
|
+
"label": "no, it is a new system",
|
|
166
|
+
"description": "There is no legacy to move from. Pick it for a new product, or a new system beside existing ones that keep running."
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"value": "strangler",
|
|
170
|
+
"label": "yes, piece by piece (strangler fig)",
|
|
171
|
+
"description": "A routing facade sits in front of the old system; capabilities are rebuilt one at a time, their traffic routed to the new parts, and the old code removed until nothing is left. Pick it whenever an existing system in use is replaced or decomposed."
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"key": "TEAMS",
|
|
177
|
+
"label": "How many teams build the system?",
|
|
178
|
+
"defaultValue": "3",
|
|
179
|
+
"type": "number"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"key": "PER_TEAM",
|
|
183
|
+
"label": "At most how many deployables may one team own?",
|
|
184
|
+
"defaultValue": "3",
|
|
185
|
+
"type": "number"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"key": "BUILD_MINUTES",
|
|
189
|
+
"label": "How long may building and testing one deployable take (minutes)?",
|
|
190
|
+
"defaultValue": "15",
|
|
191
|
+
"type": "number"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"key": "MIGRATION_MONTHS",
|
|
195
|
+
"label": "Within how many months must the old system be retired?",
|
|
196
|
+
"defaultValue": "24",
|
|
197
|
+
"type": "number"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"nodes": [
|
|
202
|
+
{
|
|
203
|
+
"id": "need",
|
|
204
|
+
"type": "need",
|
|
205
|
+
"label": "Teams deliver without waiting",
|
|
206
|
+
"x": 0,
|
|
207
|
+
"y": 0,
|
|
208
|
+
"kind": "brief",
|
|
209
|
+
"source": "Hub concern pack: Decomposition",
|
|
210
|
+
"description": "Teams building this system: {{TEAMS}}. Each should be able to change, test and release its part without waiting for the others, while the system as a whole stays something the organisation can afford to run: every extra deployable is another pipeline, another data store, more network calls and more on-call. Who owns which data has to be clear, because shared data couples parts no matter how they are deployed; and if an existing system is being replaced, it has to keep working while it is. The checks below share one layout: each deployable lives in services/<name> with a Backstage catalog-info.yaml naming its owner (spec.owner) and a workflow .github/workflows/deploy-<name>.yml of its own; the architecture model is the Radical Markdown folder architecture/ (nodes under architecture/nodes, one Markdown file per element with its type and label in the front matter); database users are named module_<name> and tables carry their owning module in a table comment."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": "req-inventory",
|
|
214
|
+
"type": "requirement",
|
|
215
|
+
"label": "Deployables are on record",
|
|
216
|
+
"x": 260,
|
|
217
|
+
"y": 0,
|
|
218
|
+
"ears_type": "ubiquitous",
|
|
219
|
+
"action": "record every deployable of the system in the architecture model as a container or web app, and in the service catalog with its owning team, with 0 deployable folders missing from the model",
|
|
220
|
+
"rationale": "A decomposition nobody can see drifts: services appear without owners and data without a home (Newman, Building Microservices, ch. 1; ISO/IEC 25010 modularity)."
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "req-revisit",
|
|
224
|
+
"type": "requirement",
|
|
225
|
+
"label": "Decomposition revisited",
|
|
226
|
+
"x": 260,
|
|
227
|
+
"y": 130,
|
|
228
|
+
"ears_type": "event-driven",
|
|
229
|
+
"trigger": "building and testing a deployable passes {{BUILD_MINUTES}} minutes, two deployables are released together more than twice in a quarter, or the number of teams moves away from {{TEAMS}}",
|
|
230
|
+
"action": "review this decision and record the outcome in an ADR within one month",
|
|
231
|
+
"rationale": "The right split depends on teams, size and coupling, which change; these signals say the current one no longer fits (Fowler, MonolithFirst; Newman, Monolith to Microservices)."
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "req-build",
|
|
235
|
+
"type": "requirement",
|
|
236
|
+
"label": "One fast pipeline",
|
|
237
|
+
"x": 260,
|
|
238
|
+
"y": 260,
|
|
239
|
+
"ears_type": "ubiquitous",
|
|
240
|
+
"action": "build, test and package the whole system as one deployable in at most {{BUILD_MINUTES}} minutes from commit",
|
|
241
|
+
"rationale": "A single deployable stays workable for several people only while its pipeline is fast; a slow one is the first sign it has outgrown its shape (Fowler, MonolithFirst).",
|
|
242
|
+
"hubWhen": {
|
|
243
|
+
"SPLIT": [
|
|
244
|
+
"monolith",
|
|
245
|
+
"modular"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "req-modules",
|
|
251
|
+
"type": "requirement",
|
|
252
|
+
"label": "A module per context",
|
|
253
|
+
"x": 260,
|
|
254
|
+
"y": 390,
|
|
255
|
+
"ears_type": "ubiquitous",
|
|
256
|
+
"action": "cut the deployable into one module per bounded context, each with a published API, its own data and an owning team, so that each module starts and passes its tests with the other modules absent",
|
|
257
|
+
"rationale": "A module that runs alone can later be extracted into a service without reaching into the others (Spring Modulith, application module tests; Fowler, MonolithFirst).",
|
|
258
|
+
"hubWhen": {
|
|
259
|
+
"SPLIT": [
|
|
260
|
+
"modular"
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"id": "req-independent",
|
|
266
|
+
"type": "requirement",
|
|
267
|
+
"label": "Deployed independently",
|
|
268
|
+
"x": 260,
|
|
269
|
+
"y": 520,
|
|
270
|
+
"ears_type": "event-driven",
|
|
271
|
+
"trigger": "a service or function group changes",
|
|
272
|
+
"action": "build, test and deploy it to production from a pipeline of its own that builds no other deployable, with 0 pairs of deployables released together more than twice in a quarter",
|
|
273
|
+
"rationale": "Independent deployability is the reason to split; services that must be released together carry the costs of distribution without its benefit (Lewis and Fowler, Microservices; Newman, Building Microservices).",
|
|
274
|
+
"hubWhen": {
|
|
275
|
+
"SPLIT": [
|
|
276
|
+
"microservices",
|
|
277
|
+
"serverless"
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"id": "req-owners",
|
|
283
|
+
"type": "requirement",
|
|
284
|
+
"label": "Each team owns a few",
|
|
285
|
+
"x": 260,
|
|
286
|
+
"y": 650,
|
|
287
|
+
"ears_type": "ubiquitous",
|
|
288
|
+
"action": "give every deployable exactly one owning team in its catalog entry and let no team own more than {{PER_TEAM}} deployables",
|
|
289
|
+
"rationale": "A service is as small as one team can own completely, building and running it; more per team than it can operate becomes neglect (Newman, Building Microservices, ch. 15; Skelton and Pais, Team Topologies).",
|
|
290
|
+
"hubWhen": {
|
|
291
|
+
"SPLIT": [
|
|
292
|
+
"microservices",
|
|
293
|
+
"serverless"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "req-functions",
|
|
299
|
+
"type": "requirement",
|
|
300
|
+
"label": "Functions grouped per context",
|
|
301
|
+
"x": 260,
|
|
302
|
+
"y": 780,
|
|
303
|
+
"ears_type": "ubiquitous",
|
|
304
|
+
"action": "deploy the functions of one bounded context together as one stack, give each one trigger and a timeout of at most 30 seconds, and tag each with its context and owning team",
|
|
305
|
+
"rationale": "Functions deployed one by one become hundreds of unowned units; grouping per context keeps the boundary and the ownership (AWS Well-Architected, Serverless Applications Lens).",
|
|
306
|
+
"hubWhen": {
|
|
307
|
+
"SPLIT": [
|
|
308
|
+
"serverless"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "req-own-data",
|
|
314
|
+
"type": "requirement",
|
|
315
|
+
"label": "Each deployable owns its data",
|
|
316
|
+
"x": 260,
|
|
317
|
+
"y": 910,
|
|
318
|
+
"ears_type": "ubiquitous",
|
|
319
|
+
"action": "let each deployable read and write only its own database, with 0 credentials to another's database and other data obtained through its owner's API or events",
|
|
320
|
+
"rationale": "Shared databases couple services at the schema; each service keeping its data private is what lets it change alone (microservices.io, Database per service).",
|
|
321
|
+
"hubWhen": {
|
|
322
|
+
"DATA": [
|
|
323
|
+
"own"
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"id": "req-schemas",
|
|
329
|
+
"type": "requirement",
|
|
330
|
+
"label": "A schema per module",
|
|
331
|
+
"x": 260,
|
|
332
|
+
"y": 1040,
|
|
333
|
+
"ears_type": "ubiquitous",
|
|
334
|
+
"action": "keep each module's tables in a schema of its own, reachable only by that module's database user, with 0 queries joining or reading another module's schema",
|
|
335
|
+
"rationale": "Schemas with their own users keep one database server cheap while making a cross-module query fail at once; each schema can later move out (microservices.io, Database per service: schema-per-service).",
|
|
336
|
+
"hubWhen": {
|
|
337
|
+
"DATA": [
|
|
338
|
+
"schemas"
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "req-shared",
|
|
344
|
+
"type": "requirement",
|
|
345
|
+
"label": "Each table has one writer",
|
|
346
|
+
"x": 260,
|
|
347
|
+
"y": 1170,
|
|
348
|
+
"ears_type": "ubiquitous",
|
|
349
|
+
"action": "record an owning module for every table in its table comment, let only that module's database user insert, update or delete its rows, and let other modules read only through views the owner publishes",
|
|
350
|
+
"rationale": "A shared database is the simplest store but couples everything that writes to it; single writers keep the coupling to reads (microservices.io, Shared database).",
|
|
351
|
+
"hubWhen": {
|
|
352
|
+
"DATA": [
|
|
353
|
+
"shared"
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"id": "req-contexts",
|
|
359
|
+
"type": "requirement",
|
|
360
|
+
"label": "Boundaries follow contexts",
|
|
361
|
+
"x": 260,
|
|
362
|
+
"y": 1300,
|
|
363
|
+
"ears_type": "ubiquitous",
|
|
364
|
+
"action": "draw every boundary between modules or services along a bounded context of the context map, with 0 contexts split across two deployables or modules",
|
|
365
|
+
"rationale": "A bounded context is the boundary inside which a model is consistent; cutting across one splits a model that has to change together (Fowler, BoundedContext).",
|
|
366
|
+
"unchecked": "The architects trace the context map to the deployables at the quarterly architecture review; a context map is a drawing people agree on, which no tool reads.",
|
|
367
|
+
"hubWhen": {
|
|
368
|
+
"BOUNDARY": [
|
|
369
|
+
"context"
|
|
370
|
+
],
|
|
371
|
+
"SPLIT": [
|
|
372
|
+
"modular",
|
|
373
|
+
"microservices",
|
|
374
|
+
"serverless"
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"id": "req-team-changes",
|
|
380
|
+
"type": "requirement",
|
|
381
|
+
"label": "Changes stay in one team",
|
|
382
|
+
"x": 260,
|
|
383
|
+
"y": 1430,
|
|
384
|
+
"ears_type": "ubiquitous",
|
|
385
|
+
"action": "keep the boundaries so that at least 80% of the pull requests merged in a quarter touch only the parts of one team, and redraw them when that share falls",
|
|
386
|
+
"rationale": "Boundaries that match the teams keep coordination low; the share of single-team changes measures it (Conway's law; Skelton and Pais, Team Topologies).",
|
|
387
|
+
"hubWhen": {
|
|
388
|
+
"BOUNDARY": [
|
|
389
|
+
"team"
|
|
390
|
+
],
|
|
391
|
+
"SPLIT": [
|
|
392
|
+
"modular",
|
|
393
|
+
"microservices",
|
|
394
|
+
"serverless"
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"id": "req-split-need",
|
|
400
|
+
"type": "requirement",
|
|
401
|
+
"label": "Splits backed by numbers",
|
|
402
|
+
"x": 260,
|
|
403
|
+
"y": 1560,
|
|
404
|
+
"ears_type": "event-driven",
|
|
405
|
+
"trigger": "a part is proposed to become a deployable or module of its own",
|
|
406
|
+
"action": "split it only when an ADR records the measured need: a load, runtime, security zone or release rate that differs from the rest by at least a factor of 2, or a compliance boundary",
|
|
407
|
+
"rationale": "Splitting before the need is known pays the microservice premium for nothing (Fowler, MicroservicePremium).",
|
|
408
|
+
"unchecked": "The reviewers of the pull request that adds a deployable ask for the ADR with the numbers; whether a measured need is real is judged by people, not read by a tool.",
|
|
409
|
+
"hubWhen": {
|
|
410
|
+
"BOUNDARY": [
|
|
411
|
+
"need"
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"id": "req-strangler",
|
|
417
|
+
"type": "requirement",
|
|
418
|
+
"label": "Legacy replaced piece by piece",
|
|
419
|
+
"x": 260,
|
|
420
|
+
"y": 1690,
|
|
421
|
+
"ears_type": "event-driven",
|
|
422
|
+
"trigger": "a capability of the old system has been rebuilt",
|
|
423
|
+
"action": "route its traffic through the routing facade to the new part, keep the route switchable back for 30 days, then remove the old code, so that the old system's share of requests falls every month and reaches 0 within {{MIGRATION_MONTHS}} months",
|
|
424
|
+
"rationale": "The strangler fig replaces a system while it keeps running, each step small and reversible (Fowler, StranglerFigApplication; Newman, Monolith to Microservices, ch. 3).",
|
|
425
|
+
"hubWhen": {
|
|
426
|
+
"MIGRATION": [
|
|
427
|
+
"strangler"
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"id": "sc-inventory",
|
|
433
|
+
"type": "scenario",
|
|
434
|
+
"label": "Every deployable known",
|
|
435
|
+
"x": 520,
|
|
436
|
+
"y": 0,
|
|
437
|
+
"given": "the deployable folders under services",
|
|
438
|
+
"when": "they are compared with the containers and web apps in the model",
|
|
439
|
+
"then": "every folder is in the model, and the build fails naming the missing ones otherwise"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"id": "sc-revisit",
|
|
443
|
+
"type": "scenario",
|
|
444
|
+
"label": "Signal leads to review",
|
|
445
|
+
"x": 520,
|
|
446
|
+
"y": 130,
|
|
447
|
+
"given": "the decomposition decision",
|
|
448
|
+
"when": "the build passes {{BUILD_MINUTES}} minutes, or two services are released together for the third time in a quarter",
|
|
449
|
+
"then": "the check fails, and within a month an ADR records whether they are merged, re-cut or left as they are"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"id": "sc-build",
|
|
453
|
+
"type": "scenario",
|
|
454
|
+
"label": "Build within limit",
|
|
455
|
+
"x": 520,
|
|
456
|
+
"y": 260,
|
|
457
|
+
"given": "a commit to the main branch",
|
|
458
|
+
"when": "the pipeline builds, tests and packages the deployable",
|
|
459
|
+
"then": "it finishes within {{BUILD_MINUTES}} minutes",
|
|
460
|
+
"hubWhen": {
|
|
461
|
+
"SPLIT": [
|
|
462
|
+
"monolith",
|
|
463
|
+
"modular"
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"id": "sc-modules",
|
|
469
|
+
"type": "scenario",
|
|
470
|
+
"label": "Module runs alone",
|
|
471
|
+
"x": 520,
|
|
472
|
+
"y": 390,
|
|
473
|
+
"given": "the ordering module",
|
|
474
|
+
"when": "its integration tests start it without the other modules",
|
|
475
|
+
"then": "it starts and its tests pass, using only mocks of the APIs it depends on",
|
|
476
|
+
"hubWhen": {
|
|
477
|
+
"SPLIT": [
|
|
478
|
+
"modular"
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"id": "sc-independent",
|
|
484
|
+
"type": "scenario",
|
|
485
|
+
"label": "One service released alone",
|
|
486
|
+
"x": 520,
|
|
487
|
+
"y": 520,
|
|
488
|
+
"given": "two services where one calls the other",
|
|
489
|
+
"when": "the called service is changed and released",
|
|
490
|
+
"then": "it reaches production from its own pipeline and the calling service is neither rebuilt nor redeployed",
|
|
491
|
+
"hubWhen": {
|
|
492
|
+
"SPLIT": [
|
|
493
|
+
"microservices",
|
|
494
|
+
"serverless"
|
|
495
|
+
]
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"id": "sc-owners",
|
|
500
|
+
"type": "scenario",
|
|
501
|
+
"label": "Ownership within limit",
|
|
502
|
+
"x": 520,
|
|
503
|
+
"y": 650,
|
|
504
|
+
"given": "the deployables and their owning teams",
|
|
505
|
+
"when": "the ownership is counted",
|
|
506
|
+
"then": "each has one owner and no team owns more than {{PER_TEAM}}",
|
|
507
|
+
"hubWhen": {
|
|
508
|
+
"SPLIT": [
|
|
509
|
+
"microservices",
|
|
510
|
+
"serverless"
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"id": "sc-functions",
|
|
516
|
+
"type": "scenario",
|
|
517
|
+
"label": "Function belongs somewhere",
|
|
518
|
+
"x": 520,
|
|
519
|
+
"y": 780,
|
|
520
|
+
"given": "the infrastructure templates",
|
|
521
|
+
"when": "a function without a context tag or with a 5-minute timeout is added",
|
|
522
|
+
"then": "the template check fails",
|
|
523
|
+
"hubWhen": {
|
|
524
|
+
"SPLIT": [
|
|
525
|
+
"serverless"
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"id": "sc-own-data",
|
|
531
|
+
"type": "scenario",
|
|
532
|
+
"label": "No foreign credentials",
|
|
533
|
+
"x": 520,
|
|
534
|
+
"y": 910,
|
|
535
|
+
"given": "the deployment manifests of every workload",
|
|
536
|
+
"when": "the database secrets each receives are listed, as environment variables, envFrom and volumes",
|
|
537
|
+
"then": "each receives only those of its own database",
|
|
538
|
+
"hubWhen": {
|
|
539
|
+
"DATA": [
|
|
540
|
+
"own"
|
|
541
|
+
]
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"id": "sc-schemas",
|
|
546
|
+
"type": "scenario",
|
|
547
|
+
"label": "Foreign schema refused",
|
|
548
|
+
"x": 520,
|
|
549
|
+
"y": 1040,
|
|
550
|
+
"given": "the ordering and billing modules with their own schemas and users",
|
|
551
|
+
"when": "ordering's user selects from a billing table",
|
|
552
|
+
"then": "the database refuses it with a permission error",
|
|
553
|
+
"hubWhen": {
|
|
554
|
+
"DATA": [
|
|
555
|
+
"schemas"
|
|
556
|
+
]
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"id": "sc-shared",
|
|
561
|
+
"type": "scenario",
|
|
562
|
+
"label": "Foreign write refused",
|
|
563
|
+
"x": 520,
|
|
564
|
+
"y": 1170,
|
|
565
|
+
"given": "the orders table owned by ordering",
|
|
566
|
+
"when": "billing's database user updates a row of it",
|
|
567
|
+
"then": "the database refuses it with a permission error",
|
|
568
|
+
"hubWhen": {
|
|
569
|
+
"DATA": [
|
|
570
|
+
"shared"
|
|
571
|
+
]
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"id": "sc-contexts",
|
|
576
|
+
"type": "scenario",
|
|
577
|
+
"label": "Context not split",
|
|
578
|
+
"x": 520,
|
|
579
|
+
"y": 1300,
|
|
580
|
+
"given": "the context map and the deployables",
|
|
581
|
+
"when": "each context is traced to the deployables holding its code",
|
|
582
|
+
"then": "every context is held by exactly one module or service",
|
|
583
|
+
"hubWhen": {
|
|
584
|
+
"BOUNDARY": [
|
|
585
|
+
"context"
|
|
586
|
+
],
|
|
587
|
+
"SPLIT": [
|
|
588
|
+
"modular",
|
|
589
|
+
"microservices",
|
|
590
|
+
"serverless"
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"id": "sc-team-changes",
|
|
596
|
+
"type": "scenario",
|
|
597
|
+
"label": "Changes stay with a team",
|
|
598
|
+
"x": 520,
|
|
599
|
+
"y": 1430,
|
|
600
|
+
"given": "the merged pull requests of a quarter and the owners of each part",
|
|
601
|
+
"when": "each change is matched to the teams whose parts it touches",
|
|
602
|
+
"then": "at least 80% touch the parts of one team only",
|
|
603
|
+
"hubWhen": {
|
|
604
|
+
"BOUNDARY": [
|
|
605
|
+
"team"
|
|
606
|
+
],
|
|
607
|
+
"SPLIT": [
|
|
608
|
+
"modular",
|
|
609
|
+
"microservices",
|
|
610
|
+
"serverless"
|
|
611
|
+
]
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"id": "sc-split-need",
|
|
616
|
+
"type": "scenario",
|
|
617
|
+
"label": "Split needs numbers",
|
|
618
|
+
"x": 520,
|
|
619
|
+
"y": 1560,
|
|
620
|
+
"given": "a proposal to extract the search into a service",
|
|
621
|
+
"when": "it is reviewed",
|
|
622
|
+
"then": "it goes ahead only with an ADR showing, for example, search load ten times the rest",
|
|
623
|
+
"hubWhen": {
|
|
624
|
+
"BOUNDARY": [
|
|
625
|
+
"need"
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"id": "sc-strangler",
|
|
631
|
+
"type": "scenario",
|
|
632
|
+
"label": "Route switched over",
|
|
633
|
+
"x": 520,
|
|
634
|
+
"y": 1690,
|
|
635
|
+
"given": "a rebuilt order history behind the routing facade",
|
|
636
|
+
"when": "its route is switched to the new part and the new part fails",
|
|
637
|
+
"then": "the route is switched back within minutes, and once stable for 30 days the old code is removed",
|
|
638
|
+
"hubWhen": {
|
|
639
|
+
"MIGRATION": [
|
|
640
|
+
"strangler"
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"id": "adr-monolith",
|
|
646
|
+
"type": "adr",
|
|
647
|
+
"label": "One monolith",
|
|
648
|
+
"x": 780,
|
|
649
|
+
"y": 0,
|
|
650
|
+
"concern": "decomposition",
|
|
651
|
+
"status": "accepted",
|
|
652
|
+
"date": "",
|
|
653
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
654
|
+
"decision": "The system is one deployable with one database, built by one pipeline in at most {{BUILD_MINUTES}} minutes and released as a whole; {{TEAMS}} team(s) work in it. Data: {{DATA}}. There are no enforced inner boundaries yet; should the code be cut later, boundaries are drawn by {{BOUNDARY}}. Starting point: {{MIGRATION}}. The decision is revisited when the number of teams grows, the build passes {{BUILD_MINUTES}} minutes, or parts need different scaling. Criteria that made it the choice: one team or very few, a domain still being discovered, no platform for running many services.",
|
|
655
|
+
"consequences": "• Simplest to build, test, deploy and debug: local calls, one transaction, one log.\n• Everyone releases together, so a broken part blocks the release and teams wait on each other as they grow.\n• Without enforced boundaries the code tends to tangle; moving to modules later means drawing them first, by the boundary rule above.\n• Scales as a whole: running more copies scales every part at once.\n• A new system starts with nothing to migrate; a replacement adds the facade and the deadline of the strangler decision.",
|
|
656
|
+
"alternatives": "1. A modular monolith: the same single deployable with enforced module boundaries, ready to split later.\n2. Microservices: independent releases per team, at the cost of distribution and operations.\n3. Serverless functions: no servers to run, but many small units and provider limits.",
|
|
657
|
+
"hubWhen": {
|
|
658
|
+
"SPLIT": [
|
|
659
|
+
"monolith"
|
|
660
|
+
]
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"id": "adr-modular-monolith",
|
|
665
|
+
"type": "adr",
|
|
666
|
+
"label": "A modular monolith",
|
|
667
|
+
"x": 780,
|
|
668
|
+
"y": 130,
|
|
669
|
+
"concern": "decomposition",
|
|
670
|
+
"status": "accepted",
|
|
671
|
+
"date": "",
|
|
672
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
673
|
+
"decision": "The system is one deployable cut into modules, one per bounded context, each with a published API, its own data and an owning team; {{TEAMS}} team(s) work in it and it is built in at most {{BUILD_MINUTES}} minutes. Boundaries are drawn by {{BOUNDARY}}; data: {{DATA}}. Starting point: {{MIGRATION}}. Each module starts and is tested on its own (Spring Modulith's @ApplicationModuleTest on Spring Boot; on .NET one project per module with its own test project; in TypeScript an Nx project per module). A module is extracted into a service only when a team or a measured need justifies it (Module boundaries keeps the rules between modules).",
|
|
674
|
+
"consequences": "• Boundaries by domain without the network: one deploy, local calls, one transaction where really needed.\n• Modules with a clean API and private data can become services later with little rework.\n• All modules release together, so one broken module blocks the others' release.\n• One runtime: a module that needs very different scaling or technology is a reason to extract it.\n• A new system starts with nothing to migrate; a replacement adds the facade and the deadline of the strangler decision.",
|
|
675
|
+
"alternatives": "1. A plain monolith: simpler, but boundaries erode and splitting later is harder.\n2. Microservices from the start: independent releases, at the cost of distribution before boundaries are proven.\n3. Separate repositories per module in one deployable: strong boundaries, slow cross-module changes.",
|
|
676
|
+
"hubWhen": {
|
|
677
|
+
"SPLIT": [
|
|
678
|
+
"modular"
|
|
679
|
+
]
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"id": "adr-microservices",
|
|
684
|
+
"type": "adr",
|
|
685
|
+
"label": "Microservices per context",
|
|
686
|
+
"x": 780,
|
|
687
|
+
"y": 260,
|
|
688
|
+
"concern": "decomposition",
|
|
689
|
+
"status": "accepted",
|
|
690
|
+
"date": "",
|
|
691
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
692
|
+
"decision": "The system is split into services, one per bounded context, each in services/<name> with a pipeline, data store and one owning team of its own; {{TEAMS}} team(s) own at most {{PER_TEAM}} services each. Boundaries are drawn by {{BOUNDARY}}; data: {{DATA}}. Starting point: {{MIGRATION}}. Services meet only through contracts checked as the Communication style pack decides, and each is deployed on its own from its own pipeline. A service runs on the shared platform (Kubernetes with a paved-road template, or a managed container service such as ECS, Cloud Run or Azure Container Apps), with per-service dashboards and on-call. Criteria that made it the choice: more teams than one deployable can carry, parts that scale or fail differently, known boundaries, and a platform to run them.",
|
|
693
|
+
"consequences": "• Teams release, scale and choose technology per service without waiting for each other.\n• Every call between contexts is a network call that can fail or be slow, and an operation across services needs events or sagas instead of one transaction.\n• More to run: a pipeline, data store, dashboards and on-call per service, and a platform team to make that cheap.\n• A wrong boundary is expensive to move; boundaries should be proven, ideally first as modules.\n• A new system starts with nothing to migrate; a replacement adds the facade and the deadline of the strangler decision.",
|
|
694
|
+
"alternatives": "1. A modular monolith: the same boundaries in one deployable, simpler to run, released together.\n2. Services per technical layer (a data service, a UI service): every feature touches all of them.\n3. A distributed monolith with a shared database: services in name only.",
|
|
695
|
+
"hubWhen": {
|
|
696
|
+
"SPLIT": [
|
|
697
|
+
"microservices"
|
|
698
|
+
]
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"id": "adr-serverless",
|
|
703
|
+
"type": "adr",
|
|
704
|
+
"label": "Serverless functions per context",
|
|
705
|
+
"x": 780,
|
|
706
|
+
"y": 390,
|
|
707
|
+
"concern": "decomposition",
|
|
708
|
+
"status": "accepted",
|
|
709
|
+
"date": "",
|
|
710
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
711
|
+
"decision": "The system is built from functions grouped per bounded context: each context is one stack in services/<name> (AWS SAM or AWS CDK on AWS Lambda, where the template check below runs; Bicep with Azure Functions or Terraform with Google Cloud Functions need the equivalent policy named in the check) with its functions, queues and data store, owned by one team; {{TEAMS}} team(s) own at most {{PER_TEAM}} stacks each. Each function has one trigger and a timeout of at most 30 seconds; longer work runs as a workflow (Step Functions, Durable Functions). Boundaries are drawn by {{BOUNDARY}}; data: {{DATA}}. Starting point: {{MIGRATION}}. Criteria that made it the choice: spiky or low event-driven load, short tasks, and a team at home with the provider's limits.",
|
|
712
|
+
"consequences": "• No servers to patch or scale; cost follows use and is near zero when idle.\n• Cold starts add latency to the first call after idle; latency-critical paths need provisioned concurrency.\n• Provider limits (duration, payload, concurrency) shape the design, and local testing needs emulators or a cloud sandbox.\n• Strong lock-in to the provider's triggers and services.\n• A new system starts with nothing to migrate; a replacement adds the facade and the deadline of the strangler decision.",
|
|
713
|
+
"alternatives": "1. Containers per context (microservices): no cold starts or duration limits, but servers to run.\n2. A modular monolith on a managed platform: simplest, at the cost of paying for idle capacity.\n3. One function per endpoint deployed alone: maximal granularity, unmanageable ownership.",
|
|
714
|
+
"hubWhen": {
|
|
715
|
+
"SPLIT": [
|
|
716
|
+
"serverless"
|
|
717
|
+
]
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"id": "adr-own-database",
|
|
722
|
+
"type": "adr",
|
|
723
|
+
"label": "A database per deployable",
|
|
724
|
+
"x": 780,
|
|
725
|
+
"y": 520,
|
|
726
|
+
"concern": "decomposition",
|
|
727
|
+
"status": "accepted",
|
|
728
|
+
"date": "",
|
|
729
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
730
|
+
"decision": "Each deployable has its own database (a separate database or managed instance) and holds the only credentials to it, mounted from a Kubernetes secret named db-<deployable>; other deployables get its data through its API or by consuming its events into a copy of their own. Reports that need data from several deployables read a reporting store fed by events or change data capture (Debezium), never the services' databases. Which element writes each table is decided here; the Data consistency pack refers to it.",
|
|
731
|
+
"consequences": "• Each deployable changes its schema and scales its store without asking anyone.\n• No joins or transactions across deployables: queries across them are API compositions or read models, and consistency across them is eventual.\n• More databases to back up, patch and watch.\n• Duplicated data must have one owner; copies are read-only.",
|
|
732
|
+
"alternatives": "1. One server with a schema per deployable: cheaper, same ownership, less isolation of load.\n2. A shared database: easy joins, but every schema change couples all its users.",
|
|
733
|
+
"hubWhen": {
|
|
734
|
+
"DATA": [
|
|
735
|
+
"own"
|
|
736
|
+
]
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"id": "adr-schema-per-module",
|
|
741
|
+
"type": "adr",
|
|
742
|
+
"label": "A schema per module",
|
|
743
|
+
"x": 780,
|
|
744
|
+
"y": 650,
|
|
745
|
+
"concern": "decomposition",
|
|
746
|
+
"status": "accepted",
|
|
747
|
+
"date": "",
|
|
748
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
749
|
+
"decision": "The modules share one database server; each module has a schema and a database user of its own (module_<name>), granted only on that schema, and its migrations (Flyway or Liquibase locations, EF Core migrations per DbContext) touch only it. A module that needs another's data calls its API or keeps a copy fed by its events; there are no cross-schema joins or foreign keys. Which element writes each table is decided here; the Data consistency pack refers to it.",
|
|
750
|
+
"consequences": "• One server to run and back up, while a cross-module query fails at once.\n• A module can move to its own server later by pointing its user elsewhere.\n• No database-enforced references between modules; consistency between them is the modules' job.\n• Load is still shared: a heavy module slows the others.",
|
|
751
|
+
"alternatives": "1. A database per deployable: full isolation, more to run.\n2. One shared schema: joins anywhere, and boundaries only by convention.",
|
|
752
|
+
"hubWhen": {
|
|
753
|
+
"DATA": [
|
|
754
|
+
"schemas"
|
|
755
|
+
]
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"id": "adr-shared-schema",
|
|
760
|
+
"type": "adr",
|
|
761
|
+
"label": "Shared schema, owned writes",
|
|
762
|
+
"x": 780,
|
|
763
|
+
"y": 780,
|
|
764
|
+
"concern": "decomposition",
|
|
765
|
+
"status": "accepted",
|
|
766
|
+
"date": "",
|
|
767
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
768
|
+
"decision": "All parts use one schema. Every table has one owning module, recorded in its table comment and in the model; only the owner's database user (module_<name>) may insert, update or delete it, and other modules read it only through views the owner publishes as its read API. This is a stage: tables move into a schema per module as boundaries firm up. Which element writes each table is decided here; the Data consistency pack refers to it.",
|
|
769
|
+
"consequences": "• Simple and cheap; existing queries and reports keep working.\n• Reads across modules stay possible and therefore coupling stays: a view is a contract to keep.\n• Single writers stop the worst coupling (two modules changing the same rows).\n• Splitting the data later means moving tables and replacing views with APIs or events.",
|
|
770
|
+
"alternatives": "1. A schema per module: enforced isolation on the same server.\n2. A database per deployable: full isolation, more to run.",
|
|
771
|
+
"hubWhen": {
|
|
772
|
+
"DATA": [
|
|
773
|
+
"shared"
|
|
774
|
+
]
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"id": "adr-strangler",
|
|
779
|
+
"type": "adr",
|
|
780
|
+
"label": "Strangler fig migration",
|
|
781
|
+
"x": 780,
|
|
782
|
+
"y": 910,
|
|
783
|
+
"concern": "decomposition",
|
|
784
|
+
"status": "accepted",
|
|
785
|
+
"date": "",
|
|
786
|
+
"context": "The system has to be built, released and run by a given number of teams. How it is split into deployables decides how independently they can work and how much there is to operate. The forces: several teams in one deployable wait for each other's releases and step on each other's code; every split adds network calls that fail and are slow, data that is no longer in one transaction, and pipelines, dashboards and on-call to run (the microservice premium); boundaries drawn before the domain is understood are expensive to move once they are services; two services sharing a database are one service released twice; and an existing system cannot be replaced in one step.",
|
|
787
|
+
"decision": "The old system is replaced piece by piece. A routing facade (an API gateway or reverse proxy: Envoy, NGINX, YARP, Spring Cloud Gateway, or the cloud's gateway) sits in front of it from the first step and labels every request with the backend that served it; capabilities are rebuilt one at a time in order of value and risk, their routes switched to the new parts and kept switchable back for 30 days, then the old code is removed. Data moves with its capability, synchronised both ways (change data capture) while both sides write. The share of traffic still reaching the old system falls every month and reaches zero within {{MIGRATION_MONTHS}} months of the start, which the facade exports as migration_started_timestamp_seconds.",
|
|
788
|
+
"consequences": "• Value arrives with every capability moved, and each step can be reversed.\n• For a while two systems run, and data synchronisation between them is extra work and risk.\n• The facade is on every request path and must be as reliable as the system.\n• Without a deadline and a measure the last 20% never moves; the monthly share and the alerts keep it honest.",
|
|
789
|
+
"alternatives": "1. A big-bang rewrite: no parallel running, but all value at the end and a high risk of overrun.\n2. Branch by abstraction inside the old code: no facade needed, but works only where the old code can still be changed.\n3. Leaving the old system and building around it: no migration cost, and the old system's problems stay.",
|
|
790
|
+
"hubWhen": {
|
|
791
|
+
"MIGRATION": [
|
|
792
|
+
"strangler"
|
|
793
|
+
]
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"id": "ff-inventory",
|
|
798
|
+
"type": "fitness-fn",
|
|
799
|
+
"label": "Every deployable in the model",
|
|
800
|
+
"x": 1040,
|
|
801
|
+
"y": 0,
|
|
802
|
+
"characteristic": "maintainability",
|
|
803
|
+
"scope": "atomic",
|
|
804
|
+
"cadence": "triggered",
|
|
805
|
+
"trigger": "pull-request",
|
|
806
|
+
"invocation": "automated",
|
|
807
|
+
"description": "A test reads the architecture model's node files, collects the labels of its containers and web apps, and compares them with the folders under services (a label matches a folder when it equals the folder name ignoring case and spaces); a folder without an element fails the test naming it.\n\nThreshold: 0 folders under services that are not a container or web app in the architecture model\n\nTool: Vitest with the yaml package over the Radical Markdown folder; for a model kept as a single .radical file: the same test over its nodes array\n\n```ts\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { parse } from 'yaml'\nimport { expect, it } from 'vitest'\n\nconst MODEL = 'architecture/nodes'\nconst files = (dir: string): string[] => readdirSync(dir, { withFileTypes: true })\n .flatMap((e) => e.isDirectory() ? files(join(dir, e.name)) : e.name.endsWith('.md') ? [join(dir, e.name)] : [])\nconst frontMatter = (file: string) => parse(readFileSync(file, 'utf8').split(/^---$/m)[1] ?? '') ?? {}\nconst slug = (s: string) => s.toLowerCase().replace(/\\s+/g, '-')\n\nit('every deployable folder is a container or web app in the model', () => {\n const modelled = new Set(files(MODEL).map(frontMatter)\n .filter((n) => n.type === 'container' || n.type === 'webapp')\n .map((n) => slug(String(n.label))))\n const missing = readdirSync('services', { withFileTypes: true })\n .filter((e) => e.isDirectory()).map((e) => e.name).filter((name) => !modelled.has(slug(name)))\n expect(missing, 'deployables missing from the architecture model').toEqual([])\n})\n```"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"id": "ff-build-time",
|
|
811
|
+
"type": "fitness-fn",
|
|
812
|
+
"label": "Pipeline within limit",
|
|
813
|
+
"x": 1040,
|
|
814
|
+
"y": 130,
|
|
815
|
+
"characteristic": "maintainability",
|
|
816
|
+
"scope": "atomic",
|
|
817
|
+
"cadence": "triggered",
|
|
818
|
+
"trigger": "pull-request",
|
|
819
|
+
"invocation": "automated",
|
|
820
|
+
"description": "The CI job that builds, tests and packages the deployable has a timeout; when it is hit, the job fails and the failure is the signal to review the decomposition within a month.\n\nThreshold: Build, test and package finish within {{BUILD_MINUTES}} minutes on the main branch\n\nTool: GitHub Actions (timeout-minutes); the build command is the stack's (./mvnw or ./gradlew on the JVM, dotnet on .NET, npm in TypeScript)\n\n```yaml\n# .github/workflows/build.yml\nname: build\non: { push: { branches: [main] }, pull_request: {} }\njobs:\n build:\n runs-on: ubuntu-latest\n timeout-minutes: {{BUILD_MINUTES}} # ADR: one deployable stays fast to build\n steps:\n - uses: actions/checkout@v4.2.2 # pin by commit SHA in your repository\n - run: ./mvnw -B verify package\n```",
|
|
821
|
+
"hubWhen": {
|
|
822
|
+
"SPLIT": [
|
|
823
|
+
"monolith",
|
|
824
|
+
"modular"
|
|
825
|
+
]
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"id": "ff-module-alone",
|
|
830
|
+
"type": "fitness-fn",
|
|
831
|
+
"label": "Modules start alone",
|
|
832
|
+
"x": 1040,
|
|
833
|
+
"y": 260,
|
|
834
|
+
"characteristic": "maintainability",
|
|
835
|
+
"scope": "atomic",
|
|
836
|
+
"cadence": "triggered",
|
|
837
|
+
"trigger": "pull-request",
|
|
838
|
+
"invocation": "automated",
|
|
839
|
+
"description": "Each module has an integration test that bootstraps only that module (Spring Modulith's standalone bootstrap mode, the default), with the beans of the modules it depends on mocked. A module that needs another to start fails its test.\n\nThreshold: Every module starts and passes its integration tests with the other modules absent\n\nTool: Spring Modulith (@ApplicationModuleTest, JUnit 5); for .NET: a WebApplicationFactory per module project; for TypeScript: one Nx project per module with its own test target\n\n```java\n@ApplicationModuleTest // bootstraps the ordering module alone (BootstrapMode.STANDALONE is the default)\nclass OrderingModuleTest {\n @Autowired Ordering ordering; // the module's own API\n @MockitoBean BillingApi billing; // the API of a module ordering depends on\n\n @Test\n void placesAnOrderOnItsOwn(Scenario scenario) {\n scenario.stimulate(() -> ordering.place(new PlaceOrder(CUSTOMER, LINES)))\n .andWaitForEventOfType(OrderPlaced.class)\n .toArrive();\n }\n}\n```",
|
|
840
|
+
"hubWhen": {
|
|
841
|
+
"SPLIT": [
|
|
842
|
+
"modular"
|
|
843
|
+
]
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"id": "ff-own-pipeline",
|
|
848
|
+
"type": "fitness-fn",
|
|
849
|
+
"label": "A pipeline per deployable",
|
|
850
|
+
"x": 1040,
|
|
851
|
+
"y": 390,
|
|
852
|
+
"characteristic": "maintainability",
|
|
853
|
+
"scope": "atomic",
|
|
854
|
+
"cadence": "triggered",
|
|
855
|
+
"trigger": "pull-request",
|
|
856
|
+
"invocation": "automated",
|
|
857
|
+
"description": "A test reads each deployable's workflow file, checks that it is triggered by changes under its own folder only, and that no run step names another deployable's folder; a workflow that builds or deploys two deployables fails the test.\n\nThreshold: 100% of the deployables have a deploy workflow triggered only by their own folder; 0 workflow steps that build or deploy another deployable\n\nTool: Vitest with the yaml package over .github/workflows; for GitLab CI: the same test over the rules:changes of each job\n\n```ts\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { parse } from 'yaml'\nimport { expect, it } from 'vitest'\n\nconst deployables = readdirSync('services', { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => e.name)\n\nit.each(deployables)('%s deploys from a pipeline of its own', (name) => {\n const workflow = parse(readFileSync(`.github/workflows/deploy-${name}.yml`, 'utf8'))\n expect(workflow.on.push.paths).toEqual([`services/${name}/**`])\n const steps: string[] = Object.values<any>(workflow.jobs).flatMap((job) => job.steps.map((s: any) => s.run ?? ''))\n for (const other of deployables.filter((o) => o !== name))\n for (const step of steps) expect(step, `${name}'s pipeline touches ${other}`).not.toContain(`services/${other}`)\n})\n```",
|
|
858
|
+
"hubWhen": {
|
|
859
|
+
"SPLIT": [
|
|
860
|
+
"microservices",
|
|
861
|
+
"serverless"
|
|
862
|
+
]
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"id": "ff-coordinated-releases",
|
|
867
|
+
"type": "fitness-fn",
|
|
868
|
+
"label": "No releases in lockstep",
|
|
869
|
+
"x": 1040,
|
|
870
|
+
"y": 520,
|
|
871
|
+
"characteristic": "maintainability",
|
|
872
|
+
"scope": "holistic",
|
|
873
|
+
"cadence": "temporal",
|
|
874
|
+
"every": "30d",
|
|
875
|
+
"invocation": "automated",
|
|
876
|
+
"description": "A monthly job lists the successful runs of every deployable's deploy workflow on main over the last quarter and counts, per pair, the releases that happened within 15 minutes of each other; a pair over the limit fails the job, which is the signal to review the decomposition within a month.\n\nThreshold: 0 pairs of deployables released within 15 minutes of each other more than twice in the last quarter\n\nTool: GitHub CLI (gh run list) in a TypeScript script run with tsx from a scheduled GitHub Actions job; for GitLab: the same over the pipelines API\n\n```ts\n// scripts/coordinated-releases.ts — scheduled monthly: npx tsx scripts/coordinated-releases.ts\nimport { execFileSync } from 'node:child_process'\nimport { readdirSync } from 'node:fs'\n\nconst since = new Date()\nsince.setMonth(since.getMonth() - 3)\nconst deployables = readdirSync('services', { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => e.name)\n\nconst releases = (name: string): number[] =>\n JSON.parse(execFileSync('gh', ['run', 'list', '--workflow', `deploy-${name}.yml`, '--branch', 'main', '--status', 'success',\n '--limit', '500', '--json', 'createdAt'], { encoding: 'utf8' }))\n .map((run: { createdAt: string }) => Date.parse(run.createdAt))\n .filter((t: number) => t > since.getTime())\n\nconst times = Object.fromEntries(deployables.map((d) => [d, releases(d)]))\nconst together: string[] = []\nfor (const a of deployables) for (const b of deployables) if (a < b) {\n const n = times[a].filter((ta) => times[b].some((tb) => Math.abs(ta - tb) < 15 * 60_000)).length\n if (n > 2) together.push(`${a} and ${b}: released together ${n} times`)\n}\nif (together.length) {\n console.error('deployables released in lockstep this quarter (ADR: deployed independently):\\n' + together.join('\\n'))\n process.exit(1)\n}\n```",
|
|
877
|
+
"hubWhen": {
|
|
878
|
+
"SPLIT": [
|
|
879
|
+
"microservices",
|
|
880
|
+
"serverless"
|
|
881
|
+
]
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"id": "ff-ownership",
|
|
886
|
+
"type": "fitness-fn",
|
|
887
|
+
"label": "Owners within limit",
|
|
888
|
+
"x": 1040,
|
|
889
|
+
"y": 650,
|
|
890
|
+
"characteristic": "maintainability",
|
|
891
|
+
"scope": "atomic",
|
|
892
|
+
"cadence": "triggered",
|
|
893
|
+
"trigger": "pull-request",
|
|
894
|
+
"invocation": "automated",
|
|
895
|
+
"description": "Each deployable has a Backstage catalog-info.yaml naming its owner; a CI step collects the owners, fails when one is missing, and fails when a team owns more than the limit.\n\nThreshold: Every deployable names one owner in its catalog entry; no team owns more than {{PER_TEAM}}\n\nTool: yq (mikefarah) in a shell step over Backstage catalog-info.yaml; for a different catalog: the same over its owner field\n\n```bash\nset -euo pipefail\n# every service folder has catalog-info.yaml with spec.owner\n: > owners.txt\nfor f in services/*/catalog-info.yaml; do\n owner=$(yq '.spec.owner // \"\"' \"$f\")\n [ -n \"$owner\" ] || { echo \"no owner: $f\"; exit 1; }\n echo \"$owner\" >> owners.txt\ndone\nsort owners.txt | uniq -c | awk -v max={{PER_TEAM}} '$1 > max { print \"too many deployables for \" $2 \": \" $1; bad = 1 } END { exit bad }'\n```",
|
|
896
|
+
"hubWhen": {
|
|
897
|
+
"SPLIT": [
|
|
898
|
+
"microservices",
|
|
899
|
+
"serverless"
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"id": "ff-functions",
|
|
905
|
+
"type": "fitness-fn",
|
|
906
|
+
"label": "Functions belong to a stack",
|
|
907
|
+
"x": 1040,
|
|
908
|
+
"y": 780,
|
|
909
|
+
"characteristic": "maintainability",
|
|
910
|
+
"scope": "atomic",
|
|
911
|
+
"cadence": "triggered",
|
|
912
|
+
"trigger": "pull-request",
|
|
913
|
+
"invocation": "automated",
|
|
914
|
+
"description": "A CloudFormation Guard rule runs over every synthesised template in CI and fails on a function without a context and owner tag or with a timeout over 30 seconds: SAM functions carry Tags as a map, CDK output as the Lambda resource with a list of Key/Value pairs, and a Lambda function without a Timeout keeps the 3-second default and passes.\n\nThreshold: 0 functions without a context and owner tag or with a timeout above 30 seconds\n\nTool: AWS CloudFormation Guard (cfn-guard validate) over SAM and CDK-synthesised templates; for Bicep: PSRule for Azure with a custom rule; for Terraform: Conftest over the plan JSON\n\n```text\n# rules/functions.guard — cfn-guard validate -d template.yaml -r rules/functions.guard\nlet sam_functions = Resources.*[ Type == 'AWS::Serverless::Function' ]\nlet lambda_functions = Resources.*[ Type == 'AWS::Lambda::Function' ]\n\nrule sam_functions_belong_to_a_context when %sam_functions !empty {\n %sam_functions.Properties {\n Tags.context exists\n Tags.owner exists\n Timeout !exists or Timeout <= 30\n }\n}\n\nrule lambda_functions_belong_to_a_context when %lambda_functions !empty {\n %lambda_functions.Properties {\n Tags[ Key == 'context' ] !empty\n Tags[ Key == 'owner' ] !empty\n Timeout !exists or Timeout <= 30\n }\n}\n```",
|
|
915
|
+
"hubWhen": {
|
|
916
|
+
"SPLIT": [
|
|
917
|
+
"serverless"
|
|
918
|
+
]
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"id": "ff-own-database",
|
|
923
|
+
"type": "fitness-fn",
|
|
924
|
+
"label": "No foreign credentials",
|
|
925
|
+
"x": 1040,
|
|
926
|
+
"y": 910,
|
|
927
|
+
"characteristic": "maintainability",
|
|
928
|
+
"scope": "atomic",
|
|
929
|
+
"cadence": "triggered",
|
|
930
|
+
"trigger": "pull-request",
|
|
931
|
+
"invocation": "automated",
|
|
932
|
+
"description": "A policy over the Kubernetes manifests fails when a Deployment, StatefulSet, Job or CronJob references a database secret other than its own (secrets are named db-<app>), whether through envFrom, an env entry with secretKeyRef, or a secret volume.\n\nThreshold: 0 workloads that receive another deployable's database secret\n\nTool: Conftest (Open Policy Agent, rego.v1) over the rendered manifests; for ECS: the same rule over the task definitions' secrets\n\n```rego\npackage main\nimport rego.v1\n\nworkloads := {\"Deployment\", \"StatefulSet\", \"Job\", \"CronJob\"}\n\npod_spec := input.spec.template.spec if { input.kind in {\"Deployment\", \"StatefulSet\", \"Job\"} }\npod_spec := input.spec.jobTemplate.spec.template.spec if { input.kind == \"CronJob\" }\n\ndb_secrets contains name if {\n some c in pod_spec.containers\n some src in c.envFrom\n name := src.secretRef.name\n}\ndb_secrets contains name if {\n some c in pod_spec.containers\n some e in c.env\n name := e.valueFrom.secretKeyRef.name\n}\ndb_secrets contains name if {\n some v in pod_spec.volumes\n name := v.secret.secretName\n}\n\ndeny contains msg if {\n input.kind in workloads\n app := input.metadata.labels[\"app.kubernetes.io/name\"]\n some name in db_secrets\n startswith(name, \"db-\")\n name != sprintf(\"db-%s\", [app])\n msg := sprintf(\"%s %s reads database secret %s (ADR A database per deployable)\", [input.kind, app, name])\n}\n```",
|
|
933
|
+
"hubWhen": {
|
|
934
|
+
"DATA": [
|
|
935
|
+
"own"
|
|
936
|
+
]
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"id": "ff-schema-grants",
|
|
941
|
+
"type": "fitness-fn",
|
|
942
|
+
"label": "Schemas closed to others",
|
|
943
|
+
"x": 1040,
|
|
944
|
+
"y": 1040,
|
|
945
|
+
"characteristic": "maintainability",
|
|
946
|
+
"scope": "atomic",
|
|
947
|
+
"cadence": "triggered",
|
|
948
|
+
"trigger": "pull-request",
|
|
949
|
+
"invocation": "automated",
|
|
950
|
+
"description": "An integration test starts PostgreSQL in a container, runs every module's migrations and grants, and runs this query; any row fails the test.\n\nThreshold: 0 module users with any privilege on another module's schema\n\nTool: Testcontainers (PostgreSQL) with the test runner of the stack; the query is plain SQL\n\n```sql\n-- module users are named module_<name>, schemas <name>\nSELECT r.rolname AS module_user, n.nspname AS foreign_schema\nFROM pg_roles r CROSS JOIN pg_namespace n\nWHERE r.rolname LIKE 'module\\_%'\n AND n.nspname NOT IN ('public', 'information_schema') AND n.nspname NOT LIKE 'pg\\_%'\n AND n.nspname <> substring(r.rolname FROM 8)\n AND has_schema_privilege(r.rolname, n.oid, 'USAGE');\n-- expected: 0 rows\n```",
|
|
951
|
+
"hubWhen": {
|
|
952
|
+
"DATA": [
|
|
953
|
+
"schemas"
|
|
954
|
+
]
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"id": "ff-table-writers",
|
|
959
|
+
"type": "fitness-fn",
|
|
960
|
+
"label": "One writer per table",
|
|
961
|
+
"x": 1040,
|
|
962
|
+
"y": 1170,
|
|
963
|
+
"characteristic": "maintainability",
|
|
964
|
+
"scope": "atomic",
|
|
965
|
+
"cadence": "triggered",
|
|
966
|
+
"trigger": "pull-request",
|
|
967
|
+
"invocation": "automated",
|
|
968
|
+
"description": "An integration test starts PostgreSQL in a container, runs the migrations and grants, and checks that every table (including partitioned ones) names its owning module in its table comment and can be written only by that module's user.\n\nThreshold: 0 tables writable by a module user other than the owner's; 0 tables without an owner in their comment\n\nTool: Testcontainers (PostgreSQL) with the test runner of the stack; the query is plain SQL\n\n```sql\n-- tables carry their owning module in the table comment (COMMENT ON TABLE orders IS 'ordering'); module users are module_<module>\nSELECT r.rolname AS module_user, c.relname AS foreign_table, obj_description(c.oid, 'pg_class') AS owner\nFROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace\nCROSS JOIN pg_roles r\nWHERE n.nspname = 'public' AND c.relkind IN ('r', 'p') AND r.rolname LIKE 'module\\_%'\n AND (obj_description(c.oid, 'pg_class') IS NULL OR obj_description(c.oid, 'pg_class') <> substring(r.rolname FROM 8))\n AND has_table_privilege(r.rolname, c.oid, 'INSERT, UPDATE, DELETE');\n-- expected: 0 rows\n```",
|
|
969
|
+
"hubWhen": {
|
|
970
|
+
"DATA": [
|
|
971
|
+
"shared"
|
|
972
|
+
]
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"id": "ff-team-changes",
|
|
977
|
+
"type": "fitness-fn",
|
|
978
|
+
"label": "Changes stay with one team",
|
|
979
|
+
"x": 1040,
|
|
980
|
+
"y": 1300,
|
|
981
|
+
"characteristic": "maintainability",
|
|
982
|
+
"scope": "holistic",
|
|
983
|
+
"cadence": "temporal",
|
|
984
|
+
"every": "30d",
|
|
985
|
+
"invocation": "automated",
|
|
986
|
+
"description": "A monthly job lists the pull requests merged in the last quarter with their files, maps each file to its owning team through the CODEOWNERS entries (folder prefixes, one per part, as the Code review and branching pack keeps them) and counts the pull requests whose files belong to one team; below 80% the job fails and the boundaries are reviewed.\n\nThreshold: At least 80% of the pull requests merged in the last quarter touch the parts of one team only\n\nTool: GitHub CLI (gh pr list) in a TypeScript script run with tsx from a scheduled GitHub Actions job\n\n```ts\n// scripts/single-team-changes.ts — scheduled monthly: npx tsx scripts/single-team-changes.ts\nimport { execFileSync } from 'node:child_process'\nimport { readFileSync } from 'node:fs'\n\nconst since = new Date()\nsince.setMonth(since.getMonth() - 3)\nconst owners = readFileSync('.github/CODEOWNERS', 'utf8').split('\\n')\n .filter((line) => line.trim() && !line.startsWith('#'))\n .map((line) => { const [pattern, team] = line.trim().split(/\\s+/); return { prefix: pattern.replace(/^\\//, ''), team } })\nconst teamOf = (file: string) => owners.filter((o) => file.startsWith(o.prefix)).sort((a, b) => b.prefix.length - a.prefix.length)[0]?.team\n\nconst prs: Array<{ files: Array<{ path: string }> }> = JSON.parse(execFileSync('gh', ['pr', 'list', '--state', 'merged',\n '--search', `merged:>=${since.toISOString().slice(0, 10)}`, '--limit', '1000', '--json', 'files'], { encoding: 'utf8' }))\nconst singleTeam = prs.filter((pr) => new Set(pr.files.map((f) => teamOf(f.path)).filter(Boolean)).size <= 1).length\nconst share = Math.round((singleTeam * 100) / Math.max(prs.length, 1))\nconsole.log(`${singleTeam} of ${prs.length} merged pull requests touched one team's parts (${share}%)`)\nif (share < 80) process.exit(1)\n```",
|
|
987
|
+
"hubWhen": {
|
|
988
|
+
"BOUNDARY": [
|
|
989
|
+
"team"
|
|
990
|
+
],
|
|
991
|
+
"SPLIT": [
|
|
992
|
+
"modular",
|
|
993
|
+
"microservices",
|
|
994
|
+
"serverless"
|
|
995
|
+
]
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"id": "ff-legacy-share",
|
|
1000
|
+
"type": "fitness-fn",
|
|
1001
|
+
"label": "Legacy traffic falls",
|
|
1002
|
+
"x": 1040,
|
|
1003
|
+
"y": 1430,
|
|
1004
|
+
"characteristic": "maintainability",
|
|
1005
|
+
"scope": "atomic",
|
|
1006
|
+
"cadence": "continual",
|
|
1007
|
+
"invocation": "automated",
|
|
1008
|
+
"description": "The routing facade labels each request with the backend that served it and exports the migration's start as migration_started_timestamp_seconds; a recording rule keeps the old system's 7-day share, one alert fires when the share is above 0 and has not fallen in 30 days, another when it is above 0 past the deadline.\n\nThreshold: The share of requests reaching the old system falls every 30 days while above 0, and is 0 within {{MIGRATION_MONTHS}} months of the migration's start\n\nTool: Prometheus recording and alerting rules\n\n```yaml\ngroups:\n - name: strangler\n rules:\n - record: migration:legacy_share:ratio_7d\n expr: |\n sum(rate(facade_requests_total{backend=\"legacy\"}[7d])) / sum(rate(facade_requests_total[7d]))\n - alert: MigrationStalled\n expr: |\n migration:legacy_share:ratio_7d > 0\n and migration:legacy_share:ratio_7d >= migration:legacy_share:ratio_7d offset 30d\n labels: { severity: ticket }\n annotations:\n summary: \"Legacy share has not fallen in 30 days; it must reach 0 within {{MIGRATION_MONTHS}} months\"\n - alert: MigrationPastDeadline\n expr: |\n migration:legacy_share:ratio_7d > 0\n and time() - max(migration_started_timestamp_seconds) > {{MIGRATION_MONTHS}} * 30 * 86400\n labels: { severity: page }\n annotations:\n summary: \"The old system still serves traffic {{MIGRATION_MONTHS}} months after the migration started (ADR Strangler fig migration)\"\n```",
|
|
1009
|
+
"hubWhen": {
|
|
1010
|
+
"MIGRATION": [
|
|
1011
|
+
"strangler"
|
|
1012
|
+
]
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
],
|
|
1016
|
+
"relations": [
|
|
1017
|
+
{
|
|
1018
|
+
"id": "req-inventory--derives--need",
|
|
1019
|
+
"sourceId": "req-inventory",
|
|
1020
|
+
"targetId": "need",
|
|
1021
|
+
"relationType": "derives"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"id": "req-revisit--derives--need",
|
|
1025
|
+
"sourceId": "req-revisit",
|
|
1026
|
+
"targetId": "need",
|
|
1027
|
+
"relationType": "derives"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"id": "req-build--derives--need",
|
|
1031
|
+
"sourceId": "req-build",
|
|
1032
|
+
"targetId": "need",
|
|
1033
|
+
"relationType": "derives"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"id": "req-modules--derives--need",
|
|
1037
|
+
"sourceId": "req-modules",
|
|
1038
|
+
"targetId": "need",
|
|
1039
|
+
"relationType": "derives"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"id": "req-independent--derives--need",
|
|
1043
|
+
"sourceId": "req-independent",
|
|
1044
|
+
"targetId": "need",
|
|
1045
|
+
"relationType": "derives"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"id": "req-owners--derives--need",
|
|
1049
|
+
"sourceId": "req-owners",
|
|
1050
|
+
"targetId": "need",
|
|
1051
|
+
"relationType": "derives"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"id": "req-functions--derives--need",
|
|
1055
|
+
"sourceId": "req-functions",
|
|
1056
|
+
"targetId": "need",
|
|
1057
|
+
"relationType": "derives"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"id": "req-own-data--derives--need",
|
|
1061
|
+
"sourceId": "req-own-data",
|
|
1062
|
+
"targetId": "need",
|
|
1063
|
+
"relationType": "derives"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"id": "req-schemas--derives--need",
|
|
1067
|
+
"sourceId": "req-schemas",
|
|
1068
|
+
"targetId": "need",
|
|
1069
|
+
"relationType": "derives"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"id": "req-shared--derives--need",
|
|
1073
|
+
"sourceId": "req-shared",
|
|
1074
|
+
"targetId": "need",
|
|
1075
|
+
"relationType": "derives"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"id": "req-contexts--derives--need",
|
|
1079
|
+
"sourceId": "req-contexts",
|
|
1080
|
+
"targetId": "need",
|
|
1081
|
+
"relationType": "derives"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"id": "req-team-changes--derives--need",
|
|
1085
|
+
"sourceId": "req-team-changes",
|
|
1086
|
+
"targetId": "need",
|
|
1087
|
+
"relationType": "derives"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"id": "req-split-need--derives--need",
|
|
1091
|
+
"sourceId": "req-split-need",
|
|
1092
|
+
"targetId": "need",
|
|
1093
|
+
"relationType": "derives"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"id": "req-strangler--derives--need",
|
|
1097
|
+
"sourceId": "req-strangler",
|
|
1098
|
+
"targetId": "need",
|
|
1099
|
+
"relationType": "derives"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"id": "sc-inventory--verifies--req-inventory",
|
|
1103
|
+
"sourceId": "sc-inventory",
|
|
1104
|
+
"targetId": "req-inventory",
|
|
1105
|
+
"relationType": "verifies"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"id": "sc-revisit--verifies--req-revisit",
|
|
1109
|
+
"sourceId": "sc-revisit",
|
|
1110
|
+
"targetId": "req-revisit",
|
|
1111
|
+
"relationType": "verifies"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"id": "sc-build--verifies--req-build",
|
|
1115
|
+
"sourceId": "sc-build",
|
|
1116
|
+
"targetId": "req-build",
|
|
1117
|
+
"relationType": "verifies"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"id": "sc-modules--verifies--req-modules",
|
|
1121
|
+
"sourceId": "sc-modules",
|
|
1122
|
+
"targetId": "req-modules",
|
|
1123
|
+
"relationType": "verifies"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"id": "sc-independent--verifies--req-independent",
|
|
1127
|
+
"sourceId": "sc-independent",
|
|
1128
|
+
"targetId": "req-independent",
|
|
1129
|
+
"relationType": "verifies"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"id": "sc-owners--verifies--req-owners",
|
|
1133
|
+
"sourceId": "sc-owners",
|
|
1134
|
+
"targetId": "req-owners",
|
|
1135
|
+
"relationType": "verifies"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"id": "sc-functions--verifies--req-functions",
|
|
1139
|
+
"sourceId": "sc-functions",
|
|
1140
|
+
"targetId": "req-functions",
|
|
1141
|
+
"relationType": "verifies"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"id": "sc-own-data--verifies--req-own-data",
|
|
1145
|
+
"sourceId": "sc-own-data",
|
|
1146
|
+
"targetId": "req-own-data",
|
|
1147
|
+
"relationType": "verifies"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"id": "sc-schemas--verifies--req-schemas",
|
|
1151
|
+
"sourceId": "sc-schemas",
|
|
1152
|
+
"targetId": "req-schemas",
|
|
1153
|
+
"relationType": "verifies"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"id": "sc-shared--verifies--req-shared",
|
|
1157
|
+
"sourceId": "sc-shared",
|
|
1158
|
+
"targetId": "req-shared",
|
|
1159
|
+
"relationType": "verifies"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"id": "sc-contexts--verifies--req-contexts",
|
|
1163
|
+
"sourceId": "sc-contexts",
|
|
1164
|
+
"targetId": "req-contexts",
|
|
1165
|
+
"relationType": "verifies"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"id": "sc-team-changes--verifies--req-team-changes",
|
|
1169
|
+
"sourceId": "sc-team-changes",
|
|
1170
|
+
"targetId": "req-team-changes",
|
|
1171
|
+
"relationType": "verifies"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"id": "sc-split-need--verifies--req-split-need",
|
|
1175
|
+
"sourceId": "sc-split-need",
|
|
1176
|
+
"targetId": "req-split-need",
|
|
1177
|
+
"relationType": "verifies"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"id": "sc-strangler--verifies--req-strangler",
|
|
1181
|
+
"sourceId": "sc-strangler",
|
|
1182
|
+
"targetId": "req-strangler",
|
|
1183
|
+
"relationType": "verifies"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"id": "ff-inventory--implements--adr-monolith",
|
|
1187
|
+
"sourceId": "ff-inventory",
|
|
1188
|
+
"targetId": "adr-monolith",
|
|
1189
|
+
"relationType": "implements"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"id": "ff-inventory--implements--adr-modular-monolith",
|
|
1193
|
+
"sourceId": "ff-inventory",
|
|
1194
|
+
"targetId": "adr-modular-monolith",
|
|
1195
|
+
"relationType": "implements"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"id": "ff-inventory--implements--adr-microservices",
|
|
1199
|
+
"sourceId": "ff-inventory",
|
|
1200
|
+
"targetId": "adr-microservices",
|
|
1201
|
+
"relationType": "implements"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"id": "ff-inventory--implements--adr-serverless",
|
|
1205
|
+
"sourceId": "ff-inventory",
|
|
1206
|
+
"targetId": "adr-serverless",
|
|
1207
|
+
"relationType": "implements"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"id": "ff-build-time--implements--adr-monolith",
|
|
1211
|
+
"sourceId": "ff-build-time",
|
|
1212
|
+
"targetId": "adr-monolith",
|
|
1213
|
+
"relationType": "implements"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"id": "ff-build-time--implements--adr-modular-monolith",
|
|
1217
|
+
"sourceId": "ff-build-time",
|
|
1218
|
+
"targetId": "adr-modular-monolith",
|
|
1219
|
+
"relationType": "implements"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"id": "ff-module-alone--implements--adr-modular-monolith",
|
|
1223
|
+
"sourceId": "ff-module-alone",
|
|
1224
|
+
"targetId": "adr-modular-monolith",
|
|
1225
|
+
"relationType": "implements"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"id": "ff-own-pipeline--implements--adr-microservices",
|
|
1229
|
+
"sourceId": "ff-own-pipeline",
|
|
1230
|
+
"targetId": "adr-microservices",
|
|
1231
|
+
"relationType": "implements"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"id": "ff-own-pipeline--implements--adr-serverless",
|
|
1235
|
+
"sourceId": "ff-own-pipeline",
|
|
1236
|
+
"targetId": "adr-serverless",
|
|
1237
|
+
"relationType": "implements"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"id": "ff-coordinated-releases--implements--adr-microservices",
|
|
1241
|
+
"sourceId": "ff-coordinated-releases",
|
|
1242
|
+
"targetId": "adr-microservices",
|
|
1243
|
+
"relationType": "implements"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"id": "ff-coordinated-releases--implements--adr-serverless",
|
|
1247
|
+
"sourceId": "ff-coordinated-releases",
|
|
1248
|
+
"targetId": "adr-serverless",
|
|
1249
|
+
"relationType": "implements"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"id": "ff-ownership--implements--adr-microservices",
|
|
1253
|
+
"sourceId": "ff-ownership",
|
|
1254
|
+
"targetId": "adr-microservices",
|
|
1255
|
+
"relationType": "implements"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"id": "ff-ownership--implements--adr-serverless",
|
|
1259
|
+
"sourceId": "ff-ownership",
|
|
1260
|
+
"targetId": "adr-serverless",
|
|
1261
|
+
"relationType": "implements"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"id": "ff-functions--implements--adr-serverless",
|
|
1265
|
+
"sourceId": "ff-functions",
|
|
1266
|
+
"targetId": "adr-serverless",
|
|
1267
|
+
"relationType": "implements"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"id": "ff-own-database--implements--adr-own-database",
|
|
1271
|
+
"sourceId": "ff-own-database",
|
|
1272
|
+
"targetId": "adr-own-database",
|
|
1273
|
+
"relationType": "implements"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"id": "ff-schema-grants--implements--adr-schema-per-module",
|
|
1277
|
+
"sourceId": "ff-schema-grants",
|
|
1278
|
+
"targetId": "adr-schema-per-module",
|
|
1279
|
+
"relationType": "implements"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"id": "ff-table-writers--implements--adr-shared-schema",
|
|
1283
|
+
"sourceId": "ff-table-writers",
|
|
1284
|
+
"targetId": "adr-shared-schema",
|
|
1285
|
+
"relationType": "implements"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"id": "ff-team-changes--implements--adr-monolith",
|
|
1289
|
+
"sourceId": "ff-team-changes",
|
|
1290
|
+
"targetId": "adr-monolith",
|
|
1291
|
+
"relationType": "implements"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"id": "ff-team-changes--implements--adr-modular-monolith",
|
|
1295
|
+
"sourceId": "ff-team-changes",
|
|
1296
|
+
"targetId": "adr-modular-monolith",
|
|
1297
|
+
"relationType": "implements"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"id": "ff-team-changes--implements--adr-microservices",
|
|
1301
|
+
"sourceId": "ff-team-changes",
|
|
1302
|
+
"targetId": "adr-microservices",
|
|
1303
|
+
"relationType": "implements"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"id": "ff-team-changes--implements--adr-serverless",
|
|
1307
|
+
"sourceId": "ff-team-changes",
|
|
1308
|
+
"targetId": "adr-serverless",
|
|
1309
|
+
"relationType": "implements"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"id": "ff-legacy-share--implements--adr-strangler",
|
|
1313
|
+
"sourceId": "ff-legacy-share",
|
|
1314
|
+
"targetId": "adr-strangler",
|
|
1315
|
+
"relationType": "implements"
|
|
1316
|
+
}
|
|
1317
|
+
]
|
|
1318
|
+
}
|