@radicaltools/cli 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{chunk-SBQRTX3Y.js → chunk-KLTSABHI.js} +1 -1
  2. package/dist/{dist-LSHMW73I.js → dist-5LSJ4CQ3.js} +2 -2
  3. package/dist/hub-catalogue/concern/concern-accessibility.radical +85 -1
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +78 -1
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +78 -1
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +78 -1
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +121 -3
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +78 -1
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +78 -1
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +83 -7
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +77 -1
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +178 -8
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +133 -7
  14. package/dist/hub-catalogue/concern/concern-availability.radical +156 -6
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +71 -8
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +136 -6
  17. package/dist/hub-catalogue/concern/concern-caching.radical +73 -1
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +124 -5
  19. package/dist/hub-catalogue/concern/concern-ci-cd-pipeline.radical +154 -15
  20. package/dist/hub-catalogue/concern/concern-code-documentation.radical +131 -13
  21. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +116 -7
  22. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +174 -13
  23. package/dist/hub-catalogue/concern/concern-code-style.radical +148 -16
  24. package/dist/hub-catalogue/concern/concern-communication-style.radical +94 -7
  25. package/dist/hub-catalogue/concern/concern-data-classification.radical +77 -1
  26. package/dist/hub-catalogue/concern/concern-data-consistency.radical +87 -5
  27. package/dist/hub-catalogue/concern/concern-data-store.radical +87 -5
  28. package/dist/hub-catalogue/concern/concern-decomposition.radical +78 -1
  29. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +150 -11
  30. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +130 -5
  31. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +127 -10
  32. package/dist/hub-catalogue/concern/concern-deployment.radical +113 -9
  33. package/dist/hub-catalogue/concern/concern-encryption.radical +146 -5
  34. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +118 -12
  35. package/dist/hub-catalogue/concern/concern-eu-dora.radical +69 -1
  36. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +148 -9
  37. package/dist/hub-catalogue/concern/concern-incident-management.radical +122 -1
  38. package/dist/hub-catalogue/concern/concern-infrastructure.radical +54 -1
  39. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +110 -5
  40. package/dist/hub-catalogue/concern/concern-messaging.radical +89 -2
  41. package/dist/hub-catalogue/concern/concern-mobile-performance.radical +67 -1
  42. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +92 -5
  43. package/dist/hub-catalogue/concern/concern-observability.radical +105 -1
  44. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +140 -5
  45. package/dist/hub-catalogue/concern/concern-personal-data.radical +206 -7
  46. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +104 -12
  47. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +110 -1
  48. package/dist/hub-catalogue/concern/concern-release-versioning.radical +99 -7
  49. package/dist/hub-catalogue/concern/concern-retention.radical +130 -9
  50. package/dist/hub-catalogue/concern/concern-secrets.radical +196 -12
  51. package/dist/hub-catalogue/concern/concern-secure-coding.radical +122 -1
  52. package/dist/hub-catalogue/concern/concern-secure-development.radical +118 -1
  53. package/dist/hub-catalogue/concern/concern-security-detection.radical +124 -1
  54. package/dist/hub-catalogue/concern/concern-supply-chain.radical +116 -1
  55. package/dist/hub-catalogue/concern/concern-technical-debt.radical +162 -19
  56. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +152 -18
  57. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +111 -1
  58. package/dist/hub-catalogue/concern/concern-test-strategy.radical +83 -7
  59. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +120 -1
  60. package/dist/hub-catalogue/concern/concern-usability.radical +84 -5
  61. package/dist/index.js +68 -18
  62. package/dist/{pdfjs-WWNLOMK2.js → pdfjs-NDGKK4BL.js} +1 -1
  63. package/dist/{undici-53QU2XSN.js → undici-BOSAZUPY.js} +1 -1
  64. package/package.json +1 -1
@@ -19,7 +19,115 @@
19
19
  "trigger": "LIST RELATIONS WHERE (source.type = \"person\" OR source.external = true) AND target.external != true AND (target.type = \"system\" OR target.type = \"container\" OR target.type = \"webapp\" OR target.type = \"component\")",
20
20
  "applyTo": "target",
21
21
  "why": "people or other systems reach these elements, so how much downtime they may have, and what it takes to stay within it, has to be decided.",
22
- "group": "operability"
22
+ "group": "operability",
23
+ "scope": {
24
+ "group": "operability",
25
+ "questions": [
26
+ {
27
+ "key": "DOWNTIME",
28
+ "label": "If it stops, what happens, and how soon must it be back?",
29
+ "default": "hours",
30
+ "hint": "The longest outage the business can bear decides how much redundancy, backup and response it needs (BSI 200-2 protection needs, ISO 22301).",
31
+ "options": [
32
+ {
33
+ "value": "workaround",
34
+ "label": "people wait or work around it; a day is fine",
35
+ "description": "People wait, use paper or the phone, and catch up later; one to three days down is bearable (BSI normal)."
36
+ },
37
+ {
38
+ "value": "hours",
39
+ "label": "customers cannot work or buy; back within hours",
40
+ "description": "Customers cannot do what they came for and some go elsewhere; it must be back within hours (BSI high)."
41
+ },
42
+ {
43
+ "value": "critical",
44
+ "label": "safety, an essential service or large losses; back within an hour",
45
+ "description": "People's safety, an essential service, a contract (SLA) or large sums are at stake within minutes (BSI very high)."
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "key": "LOAD",
51
+ "label": "What load does it carry?",
52
+ "default": "light",
53
+ "hint": "Only a load that grows or peaks needs sizing, autoscaling and load tests.",
54
+ "options": [
55
+ {
56
+ "value": "light",
57
+ "label": "light and steady",
58
+ "description": "Up to some thousands of users or requests a day, no peaks that matter."
59
+ },
60
+ {
61
+ "value": "peaks",
62
+ "label": "peaks or tens of thousands",
63
+ "description": "Tens of thousands of users a day, or peaks (a sale, a deadline, a season) it must be sized for."
64
+ },
65
+ {
66
+ "value": "large",
67
+ "label": "large, scaling out",
68
+ "description": "Hundreds of thousands of users or more, several regions, load that has to scale out and back."
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "key": "ONCALL",
74
+ "label": "Who answers when it breaks?",
75
+ "default": "builders",
76
+ "hint": "An incident process and game days pay off once someone is expected to answer out of hours.",
77
+ "options": [
78
+ {
79
+ "value": "builders",
80
+ "label": "the people who build it, in working hours",
81
+ "description": "The developers look at it when they are at work; nobody is on call."
82
+ },
83
+ {
84
+ "value": "outofhours",
85
+ "label": "someone answers out of hours",
86
+ "description": "Someone is reachable evenings and weekends, though not a full rota."
87
+ },
88
+ {
89
+ "value": "rota",
90
+ "label": "an on-call rota round the clock",
91
+ "description": "An on-call rota answers at any hour, with escalation."
92
+ }
93
+ ]
94
+ }
95
+ ]
96
+ },
97
+ "scopeAnswers": [
98
+ {
99
+ "when": {
100
+ "DOWNTIME": [
101
+ "workaround"
102
+ ]
103
+ },
104
+ "answers": {
105
+ "TIER": "99.0",
106
+ "BUDGET": "review",
107
+ "MAINTENANCE": "window"
108
+ }
109
+ },
110
+ {
111
+ "when": {
112
+ "DOWNTIME": [
113
+ "hours"
114
+ ]
115
+ },
116
+ "answers": {
117
+ "TIER": "99.9"
118
+ }
119
+ },
120
+ {
121
+ "when": {
122
+ "DOWNTIME": [
123
+ "critical"
124
+ ]
125
+ },
126
+ "answers": {
127
+ "TIER": "99.95"
128
+ }
129
+ }
130
+ ]
23
131
  },
24
132
  "sources": [
25
133
  {
@@ -98,7 +206,12 @@
98
206
  "label": "a review that sets priorities",
99
207
  "description": "A spent budget starts a blameless postmortem and puts its top action into the next iteration; releases go on. Pick it for a young product where shipping matters more than the last nine, or a team without the authority to freeze."
100
208
  }
101
- ]
209
+ ],
210
+ "scopeWhen": {
211
+ "DOWNTIME": [
212
+ "critical"
213
+ ]
214
+ }
102
215
  },
103
216
  {
104
217
  "key": "DEPENDENCIES",
@@ -117,7 +230,12 @@
117
230
  "label": "degraded service without weak dependencies",
118
231
  "description": "Dependencies that cannot meet the target are made soft: without them it still serves what does not need them (cached prices, orders queued for later). Pick it when a partner system or an older internal service is weaker than the target."
119
232
  }
120
- ]
233
+ ],
234
+ "scopeWhen": {
235
+ "DOWNTIME": [
236
+ "critical"
237
+ ]
238
+ }
121
239
  },
122
240
  {
123
241
  "key": "MAINTENANCE",
@@ -196,6 +314,10 @@
196
314
  "TIER": [
197
315
  "99.9",
198
316
  "99.95"
317
+ ],
318
+ "BUDGET": [
319
+ "freeze",
320
+ "review"
199
321
  ]
200
322
  }
201
323
  },
@@ -212,6 +334,10 @@
212
334
  "hubWhen": {
213
335
  "TIER": [
214
336
  "99.99"
337
+ ],
338
+ "BUDGET": [
339
+ "freeze",
340
+ "review"
215
341
  ]
216
342
  }
217
343
  },
@@ -348,6 +474,10 @@
348
474
  "TIER": [
349
475
  "99.9",
350
476
  "99.95"
477
+ ],
478
+ "BUDGET": [
479
+ "freeze",
480
+ "review"
351
481
  ]
352
482
  }
353
483
  },
@@ -363,6 +493,10 @@
363
493
  "hubWhen": {
364
494
  "TIER": [
365
495
  "99.99"
496
+ ],
497
+ "BUDGET": [
498
+ "freeze",
499
+ "review"
366
500
  ]
367
501
  }
368
502
  },
@@ -466,7 +600,7 @@
466
600
  "status": "accepted",
467
601
  "date": "",
468
602
  "context": "People or other systems reach this element, so when it is down somebody notices: a customer who cannot buy, a partner whose calls fail. The forces: every extra nine costs more (more zones, more replicas, automation instead of people) while users cannot tell 99.99 % from 100 % behind their own network; the allowed downtime per 30 days shrinks from hours (99.0 %) to minutes (99.99 %), and a person paged at night needs 15 to 30 minutes just to start; an element is never more available than the product of the hard dependencies it calls; planned work (releases, migrations, patching) is downtime too unless it is designed out; and without an agreed number and a policy for when it is missed, reliability work loses every argument against features. Who is alerted, and the indicator the objective is measured with, are decided in the Observability pack; how a release rolls out without dropping requests in the Deployment and rollback pack. The snippets of this pack assume the element is order-api, scraped by Prometheus as job order-api and deployed to the shop namespace; rename them for yours.",
469
- "decision": "The element targets {{TIER}} % per 30 days (7 h 12 min of downtime). It runs in one availability zone on a platform that restarts failed instances by itself: a Kubernetes Deployment with liveness probes, or a managed runtime (Azure App Service, Google Cloud Run, AWS App Runner). Its database is a managed single instance with automated backups. Dependencies: {{DEPENDENCIES}}. Planned work: {{MAINTENANCE}}. When the budget is spent: {{BUDGET}}. Choose the runtime by what the team already operates; a managed runtime unless the element needs Kubernetes features.",
603
+ "decision": "The element targets {{TIER}} % per 30 days (7 h 12 min of downtime). It runs in one availability zone on a platform that restarts failed instances by itself: a Kubernetes Deployment with liveness probes, or a managed runtime (Azure App Service, Google Cloud Run, AWS App Runner). Its database is a managed single instance with automated backups. Planned work: {{MAINTENANCE}}. Choose the runtime by what the team already operates; a managed runtime unless the element needs Kubernetes features.",
470
604
  "consequences": "• The cheapest setup: one copy of everything.\n• A zone outage takes the element down until the zone returns; that is accepted at 99.0 %.\n• An outage can wait as long as the month's budget allows; whether anyone is paged at night is decided in the Observability pack.\n• Moving to 99.9 % later means a second zone and a database that fails over, which this decision does not prepare.",
471
605
  "alternatives": "1. Two zones from the start: buys 99.9 % but doubles the cost for users who do not need it.\n2. A single virtual machine restarted by hand: cheaper, but a restart waits for someone to notice.",
472
606
  "hubWhen": {
@@ -485,13 +619,17 @@
485
619
  "status": "accepted",
486
620
  "date": "",
487
621
  "context": "People or other systems reach this element, so when it is down somebody notices: a customer who cannot buy, a partner whose calls fail. The forces: every extra nine costs more (more zones, more replicas, automation instead of people) while users cannot tell 99.99 % from 100 % behind their own network; the allowed downtime per 30 days shrinks from hours (99.0 %) to minutes (99.99 %), and a person paged at night needs 15 to 30 minutes just to start; an element is never more available than the product of the hard dependencies it calls; planned work (releases, migrations, patching) is downtime too unless it is designed out; and without an agreed number and a policy for when it is missed, reliability work loses every argument against features. Who is alerted, and the indicator the objective is measured with, are decided in the Observability pack; how a release rolls out without dropping requests in the Deployment and rollback pack. The snippets of this pack assume the element is order-api, scraped by Prometheus as job order-api and deployed to the shop namespace; rename them for yours.",
488
- "decision": "The element targets {{TIER}} % per 30 days. It runs at least two instances in two availability zones (for 99.95 %: three zones, with enough instances that two zones carry the peak), spread with Kubernetes topology spread constraints or zone-redundant platform settings, behind a load balancer that health-checks each instance. Its database fails over to a synchronous standby in another zone by itself: Amazon RDS Multi-AZ, Azure SQL zone-redundant, Cloud SQL high availability or a Patroni cluster. Dependencies: {{DEPENDENCIES}}. Planned work: {{MAINTENANCE}}. When the budget is spent: {{BUDGET}}. 43 minutes a month (21 for 99.95 %) do not wait for the morning; who is alerted, and when, is decided in the Observability pack.",
622
+ "decision": "The element targets {{TIER}} % per 30 days. It runs at least two instances in two availability zones (for 99.95 %: three zones, with enough instances that two zones carry the peak), spread with Kubernetes topology spread constraints or zone-redundant platform settings, behind a load balancer that health-checks each instance. Its database fails over to a synchronous standby in another zone by itself: Amazon RDS Multi-AZ, Azure SQL zone-redundant, Cloud SQL high availability or a Patroni cluster. Planned work: {{MAINTENANCE}}. 43 minutes a month (21 for 99.95 %) do not wait for the morning; who is alerted, and when, is decided in the Observability pack.",
489
623
  "consequences": "• A zone loss costs minutes of errors, not hours.\n• Roughly twice the compute of one zone (three zones for 99.95 %), and cross-zone traffic is billed.\n• Every instance must be stateless or share state through the database or a cache: sessions and uploads cannot live on one instance.\n• The database failover is a few dozen seconds of errors, which counts against the budget; it is tested, not assumed.",
490
624
  "alternatives": "1. One zone and fast restarts: cheaper, but one zone outage uses the whole month's budget.\n2. Two regions active-active: survives a region, at roughly twice the cost and with the hard problem of data replicated across regions.",
491
625
  "hubWhen": {
492
626
  "TIER": [
493
627
  "99.9",
494
628
  "99.95"
629
+ ],
630
+ "BUDGET": [
631
+ "freeze",
632
+ "review"
495
633
  ]
496
634
  }
497
635
  },
@@ -505,12 +643,16 @@
505
643
  "status": "accepted",
506
644
  "date": "",
507
645
  "context": "People or other systems reach this element, so when it is down somebody notices: a customer who cannot buy, a partner whose calls fail. The forces: every extra nine costs more (more zones, more replicas, automation instead of people) while users cannot tell 99.99 % from 100 % behind their own network; the allowed downtime per 30 days shrinks from hours (99.0 %) to minutes (99.99 %), and a person paged at night needs 15 to 30 minutes just to start; an element is never more available than the product of the hard dependencies it calls; planned work (releases, migrations, patching) is downtime too unless it is designed out; and without an agreed number and a policy for when it is missed, reliability work loses every argument against features. Who is alerted, and the indicator the objective is measured with, are decided in the Observability pack; how a release rolls out without dropping requests in the Deployment and rollback pack. The snippets of this pack assume the element is order-api, scraped by Prometheus as job order-api and deployed to the shop namespace; rename them for yours.",
508
- "decision": "The element targets {{TIER}} % per 30 days (4 min 19 s). It runs active-active in two regions, each in at least two zones and each able to carry the whole peak. A global load balancer routes by health and moves traffic without a person: Amazon Route 53 with health checks and Application Recovery Controller, Azure Front Door, or Google Cloud global load balancing. Data is replicated across regions by a store built for it: Amazon Aurora Global Database or DynamoDB global tables, Azure Cosmos DB, Google Cloud Spanner, or CockroachDB; choose by the consistency the data needs (strong across regions: Spanner or CockroachDB; per-region writes with replication lag: Aurora Global Database, DynamoDB global tables). Dependencies: {{DEPENDENCIES}}. Planned work: {{MAINTENANCE}}. When the budget is spent: {{BUDGET}}.",
646
+ "decision": "The element targets {{TIER}} % per 30 days (4 min 19 s). It runs active-active in two regions, each in at least two zones and each able to carry the whole peak. A global load balancer routes by health and moves traffic without a person: Amazon Route 53 with health checks and Application Recovery Controller, Azure Front Door, or Google Cloud global load balancing. Data is replicated across regions by a store built for it: Amazon Aurora Global Database or DynamoDB global tables, Azure Cosmos DB, Google Cloud Spanner, or CockroachDB; choose by the consistency the data needs (strong across regions: Spanner or CockroachDB; per-region writes with replication lag: Aurora Global Database, DynamoDB global tables). Planned work: {{MAINTENANCE}}. ",
509
647
  "consequences": "• A region outage costs a minute, not the month.\n• Roughly double the infrastructure, plus cross-region data transfer.\n• Writes across regions are slower or eventually consistent; the data model has to be designed for it.\n• Failover is exercised regularly, or it will not work when needed.\n• Every hard dependency, the identity provider included, must also be multi-region.",
510
648
  "alternatives": "1. Active-passive with a warm standby region: cheaper, but failover takes minutes and is rarely tested.\n2. Three zones in one region (99.95 %): far simpler, and enough unless a contract demands four nines.",
511
649
  "hubWhen": {
512
650
  "TIER": [
513
651
  "99.99"
652
+ ],
653
+ "BUDGET": [
654
+ "freeze",
655
+ "review"
514
656
  ]
515
657
  }
516
658
  },
@@ -714,6 +856,10 @@
714
856
  "TIER": [
715
857
  "99.9",
716
858
  "99.95"
859
+ ],
860
+ "BUDGET": [
861
+ "freeze",
862
+ "review"
717
863
  ]
718
864
  }
719
865
  },
@@ -732,6 +878,10 @@
732
878
  "hubWhen": {
733
879
  "TIER": [
734
880
  "99.99"
881
+ ],
882
+ "BUDGET": [
883
+ "freeze",
884
+ "review"
735
885
  ]
736
886
  }
737
887
  },
@@ -19,7 +19,60 @@
19
19
  "id": "backend-stack",
20
20
  "trigger": "LIST NODES WHERE type = \"container\" AND external != true",
21
21
  "why": "these are server-side services, so what they are built on and how they are kept on supported versions has to be decided.",
22
- "group": "technology"
22
+ "group": "technology",
23
+ "scope": {
24
+ "group": "technology",
25
+ "questions": [
26
+ {
27
+ "key": "STANDARDS",
28
+ "label": "Does the organisation keep technology standards?",
29
+ "default": "no",
30
+ "hint": "A tech radar records which technologies to adopt, try, hold or retire.",
31
+ "options": [
32
+ {
33
+ "value": "no",
34
+ "label": "no",
35
+ "description": "Each system picks its own technologies."
36
+ },
37
+ {
38
+ "value": "yes",
39
+ "label": "yes",
40
+ "description": "The organisation keeps technology standards or a tech radar that systems follow."
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "key": "TEAMS",
46
+ "label": "How many teams choose technology?",
47
+ "default": "one",
48
+ "hint": "Several teams choosing alone end up with many stacks to keep up.",
49
+ "options": [
50
+ {
51
+ "value": "one",
52
+ "label": "one team",
53
+ "description": "One team chooses for the whole system."
54
+ },
55
+ {
56
+ "value": "several",
57
+ "label": "several teams",
58
+ "description": "Several teams each choose for their parts."
59
+ }
60
+ ]
61
+ }
62
+ ],
63
+ "when": [
64
+ {
65
+ "STANDARDS": [
66
+ "yes"
67
+ ]
68
+ },
69
+ {
70
+ "TEAMS": [
71
+ "several"
72
+ ]
73
+ }
74
+ ]
75
+ }
23
76
  },
24
77
  "sources": [
25
78
  {
@@ -108,7 +161,12 @@
108
161
  "label": "performance",
109
162
  "description": "Memory and start-up time drive cost or scaling. Pick it only when load or cost figures show it matters, and hold the stack to the footprint numbers asked below."
110
163
  }
111
- ]
164
+ ],
165
+ "scopeWhen": {
166
+ "STANDARDS": [
167
+ "yes"
168
+ ]
169
+ }
112
170
  },
113
171
  {
114
172
  "key": "UPGRADE",
@@ -132,7 +190,12 @@
132
190
  "label": "the latest release within 30 days",
133
191
  "description": "Each new release cycle of the runtime and framework is adopted within 30 days. Pick it for small services with a strong test suite and automated updates."
134
192
  }
135
- ]
193
+ ],
194
+ "scopeWhen": {
195
+ "STANDARDS": [
196
+ "yes"
197
+ ]
198
+ }
136
199
  },
137
200
  {
138
201
  "key": "EOL_DAYS",
@@ -399,7 +462,7 @@
399
462
  "status": "accepted",
400
463
  "date": "",
401
464
  "context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
402
- "decision": "The service runs on the JVM: Java (or Kotlin where the team prefers it) on a JDK release the version policy allows, from a supported distribution (Eclipse Temurin, Amazon Corretto or Microsoft Build of OpenJDK), with Spring Boot as the framework, built with Gradle or Maven. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; each version replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (eclipse-temurin, spring-boot). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing Java or Kotlin: Kotlin for null safety and concise domain code when the team knows it; Java when more people need to read it. Choosing Spring Boot or Quarkus: Spring Boot for the widest ecosystem; Quarkus (or Spring with GraalVM native image) when start-up time and memory matter, e.g. scale-to-zero.",
465
+ "decision": "The service runs on the JVM: Java (or Kotlin where the team prefers it) on a JDK release the version policy allows, from a supported distribution (Eclipse Temurin, Amazon Corretto or Microsoft Build of OpenJDK), with Spring Boot as the framework, built with Gradle or Maven. Each version replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (eclipse-temurin, spring-boot). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing Java or Kotlin: Kotlin for null safety and concise domain code when the team knows it; Java when more people need to read it. Choosing Spring Boot or Quarkus: Spring Boot for the widest ecosystem; Quarkus (or Spring with GraalVM native image) when start-up time and memory matter, e.g. scale-to-zero.",
403
466
  "consequences": "• The widest choice of enterprise libraries, drivers and SDKs, and many people who know it.\n• Higher memory use and slower start than Go or .NET native AOT, unless native images are used.\n• Spring Boot's major versions follow the JDK baseline; framework and JDK upgrades are planned together.\n• A new JDK every six months and an LTS every two years: the version policy sets whether that is one upgrade a year or one every two.",
404
467
  "alternatives": "1. .NET: similar maturity and performance, a single vendor stack.\n2. Go: smaller and faster to start, fewer enterprise libraries.\n3. Node.js (TypeScript): one language with the front end, weaker for CPU-heavy work.",
405
468
  "hubWhen": {
@@ -418,7 +481,7 @@
418
481
  "status": "accepted",
419
482
  "date": "",
420
483
  "context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
421
- "decision": "The service runs on .NET with C#, on a release the version policy allows (an LTS every two years, supported three years; an STS in between, supported two), with ASP.NET Core (minimal APIs or controllers) and Entity Framework Core or Dapper for data access. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; each version replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (dotnet). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing EF Core or Dapper: EF Core for domain models and migrations; Dapper where queries are hand-tuned. Native AOT only when start-up time matters and every library used supports trimming.",
484
+ "decision": "The service runs on .NET with C#, on a release the version policy allows (an LTS every two years, supported three years; an STS in between, supported two), with ASP.NET Core (minimal APIs or controllers) and Entity Framework Core or Dapper for data access. Each version replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (dotnet). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing EF Core or Dapper: EF Core for domain models and migrations; Dapper where queries are hand-tuned. Native AOT only when start-up time matters and every library used supports trimming.",
422
485
  "consequences": "• One coherent stack (language, web framework, ORM, test tooling) maintained by one vendor, with good performance.\n• A release every November: the version policy decides whether every one is adopted or only the LTS ones, every two years.\n• Fewer open-source libraries than the JVM or Node.js for some niches.\n• Strong fit with Azure and Microsoft identity; runs equally on Linux containers.",
423
486
  "alternatives": "1. The JVM with Spring Boot: the widest ecosystem.\n2. Go: smaller and simpler, fewer abstractions.\n3. Node.js (TypeScript): shares the language with the front end.",
424
487
  "hubWhen": {
@@ -437,7 +500,7 @@
437
500
  "status": "accepted",
438
501
  "date": "",
439
502
  "context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
440
- "decision": "The service runs on Node.js, on a release line the version policy allows (the even-numbered majors become LTS lines), written in TypeScript in strict mode, with Fastify or NestJS as the framework (Express only for small services). Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; the version is pinned in .nvmrc and the base image, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (nodejs). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing Fastify or NestJS: Fastify for lean APIs and speed; NestJS when the team wants modules and dependency injection in a larger codebase.",
503
+ "decision": "The service runs on Node.js, on a release line the version policy allows (the even-numbered majors become LTS lines), written in TypeScript in strict mode, with Fastify or NestJS as the framework (Express only for small services). The version is pinned in .nvmrc and the base image, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (nodejs). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing Fastify or NestJS: Fastify for lean APIs and speed; NestJS when the team wants modules and dependency injection in a larger codebase.",
441
504
  "consequences": "• One language across the front end and back end; types can be shared through generated contracts.\n• Very large package ecosystem, of very uneven quality: dependencies need review and updates more often than elsewhere.\n• Single-threaded event loop: excellent for I/O-bound APIs, poor for CPU-heavy work, which goes to worker threads or another service.\n• A new major every six months and an LTS line every year, each supported about 30 months: the version policy sets the upgrade rhythm.",
442
505
  "alternatives": "1. Go: better for CPU-bound and high-throughput services, a separate language from the front end.\n2. The JVM or .NET: more structure and performance for large business domains.\n3. Deno or Bun: modern runtimes with built-in tooling, younger ecosystems and support policies.",
443
506
  "hubWhen": {
@@ -456,7 +519,7 @@
456
519
  "status": "accepted",
457
520
  "date": "",
458
521
  "context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
459
- "decision": "The service is written in Go, on a release the version policy allows (the Go team supports the two latest releases), using the standard library's net/http with a thin router (chi or the standard ServeMux) rather than a large framework, sqlc or pgx for data access, and distroless or scratch base images. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; the toolchain is pinned in go.mod, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (go). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack.",
522
+ "decision": "The service is written in Go, on a release the version policy allows (the Go team supports the two latest releases), using the standard library's net/http with a thin router (chi or the standard ServeMux) rather than a large framework, sqlc or pgx for data access, and distroless or scratch base images. The toolchain is pinned in go.mod, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (go). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack.",
460
523
  "consequences": "• Small static binaries, start-up in milliseconds, low memory: cheap to run and to scale.\n• Each Go release is supported for about a year, so the toolchain is upgraded every six to twelve months; the Go 1 compatibility promise makes that routine.\n• Fewer high-level libraries (ORMs, enterprise SDKs); more code written by hand.\n• Simple language, fast to learn; less expressive for rich domain models.",
461
524
  "alternatives": "1. The JVM or .NET: richer frameworks for large business domains, heavier to run.\n2. Rust: more control and safety, slower to write and to learn.\n3. Node.js (TypeScript): one language with the front end, weaker under CPU load.",
462
525
  "hubWhen": {
@@ -475,7 +538,7 @@
475
538
  "status": "accepted",
476
539
  "date": "",
477
540
  "context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
478
- "decision": "The service is written in Python on a 3.x release the version policy allows (each supported five years, a new one every October), with FastAPI (async APIs, Pydantic models) or Django (data-heavy apps with an admin), type-checked with mypy or pyright and linted with Ruff, dependencies locked with uv or Poetry. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; the version is pinned in pyproject.toml and the base image, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (python, django). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing FastAPI or Django: FastAPI for APIs and model serving; Django when the service owns a relational data model and needs an admin and its migrations.",
541
+ "decision": "The service is written in Python on a 3.x release the version policy allows (each supported five years, a new one every October), with FastAPI (async APIs, Pydantic models) or Django (data-heavy apps with an admin), type-checked with mypy or pyright and linted with Ruff, dependencies locked with uv or Poetry. The version is pinned in pyproject.toml and the base image, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (python, django). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing FastAPI or Django: FastAPI for APIs and model serving; Django when the service owns a relational data model and needs an admin and its migrations.",
479
542
  "consequences": "• Direct access to the data and machine-learning ecosystem (NumPy, pandas, PyTorch, scikit-learn).\n• Slower and more memory-hungry per request than the JVM, .NET or Go; CPU-heavy work goes to native libraries or worker processes.\n• Dynamic typing needs type checking in the build to keep a large codebase safe to change.\n• A new release every October, each supported five years: the version policy sets how many are skipped.",
480
543
  "alternatives": "1. Go or the JVM for the request-handling service, with Python only where models run.\n2. Node.js (TypeScript): faster for I/O-bound APIs, weaker data ecosystem.\n3. Notebooks deployed as services: quick, but neither testable nor maintainable.",
481
544
  "hubWhen": {
@@ -17,7 +17,127 @@
17
17
  "id": "backup-recovery",
18
18
  "trigger": "LIST NODES WHERE type = \"database\" AND external != true",
19
19
  "why": "these stores hold what may not be recomputable, so how much may be lost, how fast it comes back and where the copies are kept has to be decided.",
20
- "group": "operability"
20
+ "group": "operability",
21
+ "scope": {
22
+ "group": "operability",
23
+ "questions": [
24
+ {
25
+ "key": "DOWNTIME",
26
+ "label": "If it stops, what happens, and how soon must it be back?",
27
+ "default": "hours",
28
+ "hint": "The longest outage the business can bear decides how much redundancy, backup and response it needs (BSI 200-2 protection needs, ISO 22301).",
29
+ "options": [
30
+ {
31
+ "value": "workaround",
32
+ "label": "people wait or work around it; a day is fine",
33
+ "description": "People wait, use paper or the phone, and catch up later; one to three days down is bearable (BSI normal)."
34
+ },
35
+ {
36
+ "value": "hours",
37
+ "label": "customers cannot work or buy; back within hours",
38
+ "description": "Customers cannot do what they came for and some go elsewhere; it must be back within hours (BSI high)."
39
+ },
40
+ {
41
+ "value": "critical",
42
+ "label": "safety, an essential service or large losses; back within an hour",
43
+ "description": "People's safety, an essential service, a contract (SLA) or large sums are at stake within minutes (BSI very high)."
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "key": "LOAD",
49
+ "label": "What load does it carry?",
50
+ "default": "light",
51
+ "hint": "Only a load that grows or peaks needs sizing, autoscaling and load tests.",
52
+ "options": [
53
+ {
54
+ "value": "light",
55
+ "label": "light and steady",
56
+ "description": "Up to some thousands of users or requests a day, no peaks that matter."
57
+ },
58
+ {
59
+ "value": "peaks",
60
+ "label": "peaks or tens of thousands",
61
+ "description": "Tens of thousands of users a day, or peaks (a sale, a deadline, a season) it must be sized for."
62
+ },
63
+ {
64
+ "value": "large",
65
+ "label": "large, scaling out",
66
+ "description": "Hundreds of thousands of users or more, several regions, load that has to scale out and back."
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "key": "ONCALL",
72
+ "label": "Who answers when it breaks?",
73
+ "default": "builders",
74
+ "hint": "An incident process and game days pay off once someone is expected to answer out of hours.",
75
+ "options": [
76
+ {
77
+ "value": "builders",
78
+ "label": "the people who build it, in working hours",
79
+ "description": "The developers look at it when they are at work; nobody is on call."
80
+ },
81
+ {
82
+ "value": "outofhours",
83
+ "label": "someone answers out of hours",
84
+ "description": "Someone is reachable evenings and weekends, though not a full rota."
85
+ },
86
+ {
87
+ "value": "rota",
88
+ "label": "an on-call rota round the clock",
89
+ "description": "An on-call rota answers at any hour, with escalation."
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ },
95
+ "scopeAnswers": [
96
+ {
97
+ "when": {
98
+ "DOWNTIME": [
99
+ "workaround"
100
+ ]
101
+ },
102
+ "answers": {
103
+ "METHOD": "snapshot",
104
+ "DR": "single"
105
+ }
106
+ },
107
+ {
108
+ "when": {
109
+ "DOWNTIME": [
110
+ "hours"
111
+ ]
112
+ },
113
+ "answers": {
114
+ "METHOD": "pitr",
115
+ "DR": "restore"
116
+ }
117
+ },
118
+ {
119
+ "when": {
120
+ "DOWNTIME": [
121
+ "critical"
122
+ ]
123
+ },
124
+ "answers": {
125
+ "METHOD": "pitr",
126
+ "DR": "standby",
127
+ "DRILL": "auto"
128
+ }
129
+ },
130
+ {
131
+ "when": {
132
+ "ONCALL": [
133
+ "builders"
134
+ ]
135
+ },
136
+ "answers": {
137
+ "DRILL": "manual"
138
+ }
139
+ }
140
+ ]
21
141
  },
22
142
  "sources": [
23
143
  {
@@ -97,7 +217,12 @@
97
217
  "label": "offline media at a second site",
98
218
  "description": "A copy on tape or removable disks, disconnected after writing and kept at a second site under separate administration. Pick it for on-premises systems, or as the third copy where regulation demands an air gap."
99
219
  }
100
- ]
220
+ ],
221
+ "scopeWhen": {
222
+ "DOWNTIME": [
223
+ "critical"
224
+ ]
225
+ }
101
226
  },
102
227
  {
103
228
  "key": "DR",
@@ -121,7 +246,12 @@
121
246
  "label": "one region across zones",
122
247
  "description": "The store survives the loss of a zone, but a region outage is waited out. Pick it when the business accepts that, and it is written down where customers can see it (the service level agreement)."
123
248
  }
124
- ]
249
+ ],
250
+ "scopeWhen": {
251
+ "DOWNTIME": [
252
+ "critical"
253
+ ]
254
+ }
125
255
  },
126
256
  {
127
257
  "key": "DRILL",
@@ -716,7 +846,7 @@
716
846
  "status": "accepted",
717
847
  "date": "",
718
848
  "context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
719
- "decision": "Writes are replicated synchronously and acknowledged only when a second zone or region has them: PostgreSQL with synchronous_standby_names and synchronous_commit = on (managed by Patroni or CloudNativePG), or a managed service that does it (Amazon Aurora, Azure SQL Business Critical, Cloud SQL high availability; Spanner or CockroachDB across regions). A lost store loses no acknowledged write. Replication copies mistakes, so continuous backups with point-in-time recovery cover them, with a recovery point of {{RPO_MINUTES}} minutes, kept {{RETAIN_DAYS}} days in {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose a managed service unless the database must run on premises; choose cross-region synchronous replication only when the added latency of every write (tens of milliseconds) is acceptable.",
849
+ "decision": "Writes are replicated synchronously and acknowledged only when a second zone or region has them: PostgreSQL with synchronous_standby_names and synchronous_commit = on (managed by Patroni or CloudNativePG), or a managed service that does it (Amazon Aurora, Azure SQL Business Critical, Cloud SQL high availability; Spanner or CockroachDB across regions). A lost store loses no acknowledged write. Replication copies mistakes, so continuous backups with point-in-time recovery cover them, with a recovery point of {{RPO_MINUTES}} minutes, kept {{RETAIN_DAYS}} days. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose a managed service unless the database must run on premises; choose cross-region synchronous replication only when the added latency of every write (tens of milliseconds) is acceptable.",
720
850
  "consequences": "• No acknowledged write is lost when a zone (or region) is.\n• Every write waits for the second copy: higher latency, and writes stop if no synchronous standby is available.\n• Twice the database cost, plus the backups that still guard against mistakes.\n• Failover must be automatic and tested, or the zero loss comes with a long RTO.",
721
851
  "alternatives": "1. Continuous backup with point-in-time recovery: minutes of loss, cheaper and faster writes.\n2. Asynchronous replication: fast writes, but what was in flight is lost on failover.\n3. Scheduled snapshots: hours of loss.",
722
852
  "hubWhen": {
@@ -735,7 +865,7 @@
735
865
  "status": "accepted",
736
866
  "date": "",
737
867
  "context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
738
- "decision": "The store archives its write-ahead log continuously and restores to any second of the last {{RETAIN_DAYS}} days, the newest archived change no older than {{RPO_MINUTES}} minutes: the managed service's point-in-time recovery (Amazon RDS and Aurora automated backups, Azure Database for PostgreSQL, Cloud SQL, MongoDB Atlas continuous backup), or pgBackRest or WAL-G to object storage for self-managed PostgreSQL. Copies are kept in {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose the managed service's own feature when there is one; pgBackRest when you run PostgreSQL yourself and need parallel restore and verification.",
868
+ "decision": "The store archives its write-ahead log continuously and restores to any second of the last {{RETAIN_DAYS}} days, the newest archived change no older than {{RPO_MINUTES}} minutes: the managed service's point-in-time recovery (Amazon RDS and Aurora automated backups, Azure Database for PostgreSQL, Cloud SQL, MongoDB Atlas continuous backup), or pgBackRest or WAL-G to object storage for self-managed PostgreSQL. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose the managed service's own feature when there is one; pgBackRest when you run PostgreSQL yourself and need parallel restore and verification.",
739
869
  "consequences": "• At most {{RPO_MINUTES}} minutes of loss, and a way back from a mistake to the second before it.\n• Cheap: most managed databases include it.\n• Restoring a large store replays a lot of log: the restore time must be measured, not assumed, against {{RTO_MINUTES}} minutes.\n• Copies to another account or region are a separate step the managed feature does not always do.",
740
870
  "alternatives": "1. Synchronous replication: no loss, slower and dearer writes, and still needs backups.\n2. Scheduled snapshots: simpler, hours of loss.",
741
871
  "hubWhen": {
@@ -754,7 +884,7 @@
754
884
  "status": "accepted",
755
885
  "date": "",
756
886
  "context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
757
- "decision": "The store is snapshotted at least every {{RPO_MINUTES}} minutes and each snapshot is kept {{RETAIN_DAYS}} days in {{COPIES}}: AWS Backup or Azure Backup plans for managed stores and volumes, Velero for Kubernetes volumes, pg_dump or mysqldump for small databases. Snapshots are taken application-consistent (quiesced or from the database's own tool). Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. The changes since the last snapshot are lost and must be redone or re-imported; the owner of the data agrees to that.",
887
+ "decision": "The store is snapshotted at least every {{RPO_MINUTES}} minutes and each snapshot is kept {{RETAIN_DAYS}} days: AWS Backup or Azure Backup plans for managed stores and volumes, Velero for Kubernetes volumes, pg_dump or mysqldump for small databases. Snapshots are taken application-consistent (quiesced or from the database's own tool). Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. The changes since the last snapshot are lost and must be redone or re-imported; the owner of the data agrees to that.",
758
888
  "consequences": "• Simple and cheap to run.\n• Up to {{RPO_MINUTES}} minutes of changes is lost: the business must be able to redo them.\n• Crash-consistent volume snapshots of a running database may not restore: consistency must be checked in the drill.",
759
889
  "alternatives": "1. Point-in-time recovery: minutes of loss for little more.\n2. Synchronous replication: no loss, far dearer.",
760
890
  "hubWhen": {