Chapter 4 of 6
7
Choose the stack
The previous chapters established the business decision, the workload, the definition of one row, and who owns that definition. This chapter decides which architecture should deliver the result.
Operating rule
My operating rule: I name the workload before I name a tool. A choice is unfinished until the alternatives, and the reasons they lost, are written down. The simplest design is the least complex one that meets the requirements in front of me.
Checked 22 Oct 2026Data analytics field card
The workload
The sheet is the workload specification. I fill it before I name a tool. Users and freshness are already known for this offer: one credit controller, and open invoices as of yesterday. The remaining lines are performance, reliability, failure, security, privacy, budget, platforms, the team's skills, and the owners. A blank line is a guess. A larger volume stays an assumption until this decision needs it.
- Users
- Who decides, and who else reads or receives the result.
- Volume
- Sources, how much data, how it grows, and how tangled it is.
- Freshness
- How new the result must be, and how often it is produced.
- Performance
- How fast a refresh or a read must finish for the decision.
- Reliability
- How soon a failed run or a wrong result must be restored.
- Failure
- What the business does if the list is late, wrong, or missing, and who can see that failure.
- Security
- Who may see the list, who may change it, and how sensitive customer data is protected.
- Privacy
- Which rule limits that data, and what must stay off a shared copy.
- Budget
- What the organization will keep paying to run the design.
- Platforms
- What is already running, and what can be reused.
- Team
- The skills and the time to build the design and to operate it.
- Owners
- The technical owner and the business owner.
Three patterns
The question is the least complex architecture that meets this workload and that the organization can operate. The three patterns are alternatives, not a ladder. A larger volume does not select the next one. The card's maturity rungs guide how much practice can be kept. A pattern is not a rung.
A personal or exploratory analysis fits when one person can produce, rerun, and check the list, and the credit controller can come back to that person. This book's illustration is that pattern. A second user does not, by itself, require a shared platform. Share one definition when several people must act on the same meaning and their copies would diverge, or when the list must appear without the person who built it.
Shared, governed analytics is that arrangement: one validated list on a known rhythm, an owner, and a freshness check. A missed scheduled run does not, by itself, justify a production data product. That product is justified when an application, or the collections workflow, must receive the list and a failure changes that work the same day. It then needs an integration, a stated availability, a recovery path, and a person who acts on the failure. Anything further needs a requirement this pattern still misses.
The figure is one business question under three hypothetical architectures: whether this credit controller offers an open invoice more time before write-off. Nothing here was measured or deployed, and no amount is stated. This book uses the individual design because the requirement is smaller, not because it costs less to start.7
Individual analysis
Hypothetical: one person refreshes yesterday's list for this credit controller.
- Selected: the invoice ledger, an in-process query, a column contract, and one report
- A shared warehouse, a scheduler, and an API are refused, because this design does not use them
- A second user does not, by itself, change this choice
Shared daily workflow
Hypothetical: several people must act on one validated list before the day starts.
- Selected: shared storage, a tested transform, the row sentence, one report, and a visible failure
- A live screen and a feed into the collections workflow are refused, because no system is waiting
- A missed scheduled run does not, by itself, require an operational service
Operational service
Hypothetical: the collections workflow must receive the list, and a failure changes that day's work.
- Selected: the shared list, an integration, a stated availability, a retry, and a person on failure
- The daily report is refused as the delivery path, because the workflow does not read that report
- Further machinery needs a requirement this design still misses
Where the work sits
Whatever pattern is chosen, the jobs are the same. One platform can carry several. A dedicated component is for a job that platform misses.
- 1
Sources
Where the rows come from.
- 2
Transform
How they become the result.
- 3
Definitions
The row sentence, kept.
- 4
Consumption
Who reads or receives it.
- 5
Orchestration
The order, the retry, and the record, when a person cannot.
- 6
Monitoring
The failure a person can see.
- 1
Sources
Where the rows come from.
- 2
Transform
How they become the result.
- 3
Definitions
The row sentence, kept.
- 4
Consumption
Who reads or receives it.
- 5
Orchestration
The order, the retry, and the record, when a person cannot.
- 6
Monitoring
The failure a person can see.
The responsibilities
One platform can carry several of these. I keep it when it answers the question on the row. A dedicated component is for a row it misses.
Sources and ingestion
Question to answerDoes the data arrive on time?
When a dedicated component is justifiedWhen the platform misses that arrival.
Storage and compute
Question to answerDoes the query finish in time?
When a dedicated component is justifiedWhen the platform misses a query that finishes in time.
Transformation
Question to answerIs the result transformed?
When a dedicated component is justifiedWhen the platform does not transform the result.
Business definitions
Question to answerIs there one definition across the reports?
When a dedicated component is justifiedWhen that definition would diverge. A semantic model can drift from the row sentence on Say what one row means.
Consumption
Question to answerWho reads or receives the result?
When a dedicated component is justifiedWhen a system must receive the result.
Orchestration
Question to answerCan a person meet the freshness?
When a dedicated component is justifiedWhen a person cannot, or the steps need an order, a retry, and a record. A schedule, or a miss the same person can repair, does not by itself require it. An orchestrator is another system to operate.
Quality and lineage
Question to answerCan a failure be seen, and where did the number come from?
When a dedicated component is justifiedA quality tool, when it catches a failure the platform misses. A second lineage catalogue, when the platform's own path does not show where the number came from.
Security and operations
Question to answerIs access limited as the sheet requires, and can a failure be restored?
When a dedicated component is justifiedWhen access is not limited as the sheet requires, or a failure cannot be restored.
The field card maps example tools onto the lanes. I add a tool only for a line the sheet names. On the individual design, DuckDB is the in-process analytical database and dbt is the column contract. The limit of that contract stays on Keep the definition. Spark 4.2.0 processes at large scale and also runs on one machine, so volume alone does not select it. Airflow runs the path when it is triggered or on a schedule, and a schedule is not required. A scheduler does not define the number.23467
Cost, build, and buy
I compare two or three designs that could meet this specification. Reuse, a managed service, a commercial product, and a build the team would own all count when they are available. For each design I look at fit and performance; license, compute, engineering, and maintenance; complexity, reliability, and recovery; security, governance, and regulation; and skills, integrations, and the cost of leaving the vendor.
The lowest cost to start is not the best choice over the life of the design. A cheap extract can cost more once other people depend on it, or once the cost of leaving the vendor exceeds the cost of staying. For a managed service I use that provider's split. On Amazon Web Services, for an abstracted service such as S3, AWS operates the infrastructure, and the customer manages the data, including encryption options, classifies the assets, and sets who may use them. I do not copy that split onto another provider.5
What has to be run
The controls follow the consequence of failure. Name a technical owner and a business owner. Access controls say who may see the list and who may change it, and they protect sensitive customer data on the invoice. A failure has to be visible: a quality check, a freshness check, and an alert a person can act on. Recovery is proportionate to that consequence. An occasional list needs a rerun and a note of the extract. A list that another system depends on needs a retry, a way back to the previous result, and steps a second person can follow. Keep trust in force uses the freshness named here. Calendars, blast radius, and cutover stay on the technology delivery field card.8
The decision record
The record lets a later reader see why this architecture was chosen, what was refused, and what would reopen the choice. Nygard, on 15 November 2011, gives the shape: context, decision, a status of proposed, accepted, or superseded, and consequences, including those that are not benefits. A superseded record stays and points at its replacement. I reopen the record when that context changes.
Completing the sheet does not prove that a system works. The record stays proposed until that evidence exists. A new tool does not, by itself, reopen the choice.1
- Workload
- The specification and the constraints, including failure, security, and what the team can keep.
- Selected
- The pattern, each significant component, and the requirement it meets.
- Rejected
- Each alternative and why it lost. Include reuse, a managed service, or a purchase when it was available.
- Assumptions
- What was taken as true, the risks, and the limits. A future volume goes here.
- Operating
- The expected cost to run, the technical owner, and the business owner.
- Evidence
- What must be shown before this is called production.
- Revisit
- The change in the workload or a constraint that reopens the choice.
Status
Proposed until the evidence is met. Accepted is agreement, not a running system. Superseded names the replacement.
Where I do not use it
Choose the work decides whether the offer is worth building. The brief, the row, a disagreement, and the owner of the definition stay on Make the number fit to use. Continue, change, or stop stays on Run the product and judge the value. A slow backtest of probability of default or expected credit loss stays on the Bayesian optimisation card.79
When AI drafts the stack
A model may draft the options and the record. The responsible person still checks the assumptions, what the products actually do, the cost, the security, the integrations, and whether this organization can operate the design when it fails. A generated list of tools is not an architecture decision. A draft marked accepted stays proposed until the evidence exists.
References
- Michael Nygard, Documenting Architecture Decisions (15 Nov 2011, read 21 Oct 2026)
- DuckDB, in-process analytical database (read 21 Oct 2026)
- Apache Spark 4.2.0 overview (read 21 Oct 2026)
- Apache Airflow, Running Dags (read 21 Oct 2026)
- Amazon Web Services, Shared Responsibility Model (read 21 Oct 2026)
- dbt Developer Hub, model contracts (read 16 Oct 2026)
- Data analytics field card
- Technology delivery field card
- Bayesian optimisation field card