The time has come to put it all together. Throughout module 5 you have built a criteria framework, calculated the five-year total cost, gone through regulatory compliance, planned the migration with its waves and its exit plan, and learned from other organisations' successes and mistakes. This exercise turns all of that into the final product of an architect or IT manager: a decision document that someone can approve today and understand in two years' time. The exercise has two parts. In part A you will write up Hortalia's cloud architecture decisions with a professional template (one decision per system, with context, options, criteria, decision and consequences) and you will be able to compare them with the complete solution for the ERP, the store, email and the CRM. In part B you will apply the complete method, from scratch, to a new project: a B2B order portal with batch traceability for Hortalia's 150 retail customers, with its weighted matrix in Python, its cost estimate and a reasoned solution covering the most common reasoning errors.
- What an architecture decision record (ADR) is and why you should write one
An ADR (Architecture Decision Record) is a short document — one or two pages — that captures one important decision: what was decided, in what context, which alternatives were ruled out and what consequences it has. It is kept alongside the code or the technical documentation, with a number and a date, and it is not rewritten: if the decision changes, a new ADR is written that supersedes the previous one.
Why it is worth it:
- Against forgetting: in two years' time nobody will remember why Shopify was ruled out or why the commitment was for one year and not three.
- Against circular arguments: when someone reopens a topic, you read the ADR and discuss only what has changed.
- For onboarding new people: a folder of ADRs explains a system better than any diagram.
- For audits and compliance: it documents who decided what, when and with what information.
- The template
# ADR-000X: <the decision in one sentence>
- **Status:** proposed | accepted | superseded by ADR-00YY | rejected
- **Date:** YYYY-MM-DD
- **Decision-makers:** <the people who decide> · **Consulted:** <who contributed information>
## Context
The current situation, constraints, requirements and relevant data (including figures).
What problem has to be solved and why now.
## Options considered
1. <Option A> — a one- or two-line description
2. <Option B>
3. <Option C>
## Criteria and weights
| Criterion | Weight | Why it matters here |
|---|---|---|
| ... | 3/2/1 | ... |
(The result of the weighted matrix, if one was used.)
## Decision
What is decided, in one clear sentence. And, where relevant, what is decided **not** to do.
## Consequences
- **Positive:** ...
- **Negative or accepted costs:** ...
- **Financial impact:** estimated cost (up-front investment and recurring).
## Risks and mitigations
| Risk | Mitigation | Owner |
|---|---|---|
## Review conditions
What would have to happen for this decision to be reopened, and when it is reviewed by default.
## References
Links to the analyses that support it (TCO, compliance, migration plan).Three writing tips:
- One decision per document. If an ADR needs several "decision" sections, it is really several ADRs.
- Write the context with numbers. "The server is nine years old and the database takes up 40 GB" is worth more than "the server is old".
- Be explicit about what you are giving up. An ADR with no negative consequences is suspicious: every decision has a price.
- Part A: the brief
Your task. Using the template above, write four ADRs for Hortalia: the ERP, the hortalia-shop store, email and collaboration, and the CRM. Use only information from the course: the map of systems and criteria (05-01), costs (05-02), compliance (05-03), migration and lock-in (05-04) and lessons from others (05-05).
Minimum requirements for each ADR: at least two real options (not a straw man), criteria with justified weights, figures in the context and in the consequences, a review condition and a risk table with mitigations.
Spend time on it before reading the solution: what is valuable in the exercise is the reasoning, not matching word for word.
- Part A: solution (ERP, store, email and CRM)
All the figures are illustrative and come from the calculations in this module.
4.1 ADR-0001: the ERP moves to a virtual machine in Azure (IaaS)
# ADR-0001: Move the ERP to a virtual machine in Azure (IaaS), without replacing it yet
- **Status:** accepted
- **Date:** 2026-10-15
- **Decision-makers:** senior management, Sara (finance), Laura (IT) · **Consulted:** the ERP vendor, the Microsoft partner
## Context
The ERP (third-party vendor software on .NET Framework, SQL Server and Windows Server) runs on a
2017 server in the cabinet in the warehouse, with backups on a USB drive in the same cabinet and
reachable only from the local network: the sales reps cannot see stock from their phones.
The database takes up ~40 GB and grows by ~8 GB/year; average CPU of 15% and 12 GB of RAM used.
The hardware is at the end of its useful life and the decision has to be made now.
## Options considered
1. Renew the server in the warehouse (CapEx, ~€21,500 up front).
2. Move it as-is to a VM in Azure `spaincentral` (rehost, IaaS).
3. Replace it with a SaaS ERP (repurchase): a 9-15 month implementation.
## Criteria and weights
| Criterion | Weight | Why it matters here |
|---|---|---|
| Business continuity and risk | 3 | Without the ERP, no orders go out |
| Effort and timeline | 3 | A one-person team; the hardware will not wait |
| 5-year cost | 2 | Limited budget |
| Remote access for the sales reps | 2 | A real business problem today |
| Compatibility with the vendor's software | 3 | The application cannot be modified |
## Decision
The ERP is moved as-is (rehost) to `vm-erp-01` (Standard_D4s_v5, SQL Server 2022 Standard with the
license included) in Azure `spaincentral`, with no public IP, reachable over VPN with Entra ID and
MFA, with immutable backups and recovery in `francecentral` (RPO 1 h, RTO 8 h).
It is **not** replaced with a SaaS ERP at this time.
## Consequences
- **Positive:** the hardware and the cabinet disappear as a single point of failure; the sales reps
reach stock over the VPN; immutable backups and tested recovery; expected risk from outages down
from €25,000 to €6,250 over 5 years.
- **Negative:** Laura is still responsible for the operating system, SQL Server and the patches;
the ERP is still old technology; it depends on the warehouse's connectivity.
- **Financial impact:** ~€5,150 one-off and ~€9,300/year of cash; ~€56,650 direct over 5 years
(against ~€43,900 for the own server, which does not include the risk).
## Risks and mitigations
| Risk | Mitigation | Owner |
|---|---|---|
| The only fibre line goes down | A second line with another operator before the cutover | Laura |
| A failed cutover | A dry run, and the old server switched off but untouched for 30 days | Laura |
| Cost overrun | Tags, a budget with alerts and a monthly review | Laura and Sara |
| Vendor end of support | A roadmap in writing and a review in 2028 | Management |
## Review conditions
Review in 2028, or sooner if: the vendor announces end of support or fails to adapt the product to
e-invoicing; the hours spent on the ERP exceed what was expected; or a new line of business
(the B2B portal) requires features the ERP does not support.
That is why the pricing commitment is a **1-year savings plan**, not a 3-year reservation.
## References
Costs and TCO (05-02), compliance (05-03), wave plan (05-04).4.2 ADR-0002: the store stays on PaaS
# ADR-0002: Keep hortalia-shop on Azure App Service (PaaS) and delegate payment to a gateway
- **Status:** accepted · **Date:** 2026-10-15
- **Decision-makers:** senior management, Marc (development), Laura · **Consulted:** Jordi, Sara
## Context
The store is an in-house application (Python/Flask + PostgreSQL) that goes from 300 visits/hour in
February to 6,000 at Christmas. It needs real-time stock from the ERP (today it is updated by hand
every morning), configurable boxes and its own delivery by zone and slot. Marc maintains it.
## Options considered
1. PaaS: App Service with autoscaling (the prototype is already running).
2. SaaS: Shopify or another commerce platform, with third-party apps.
3. IaaS: own VMs with a load balancer.
## Criteria and weights
Differentiation (3), integration with the ERP over a private network (3), operations with a
one-person team (2), scaling at peaks (2), payments and PCI DSS (2), 5-year cost (2), timeline (1),
portability (1). Weighted matrix: **PaaS 85%, Shopify 66%, IaaS 66%**.
## Decision
The store stays on App Service, with autoscaling (minimum 2, maximum 10 instances and a peak season
profile), a managed PostgreSQL database and **payment delegated to a gateway with a hosted page**;
transactional email stays on a managed service. A mixed architecture.
## Consequences
- **Positive:** full control of what differentiates Hortalia; integration with the stock API over
the private network without exposing the ERP; peaks absorb themselves; no card data at Hortalia.
- **Negative:** Marc is still responsible for the code, the dependencies and the database; if Marc
is away, there is no immediate replacement; ~60 h/year of operations.
- **Financial impact:** ~€2,480/year of platform; ~€24,400 over 5 years including Marc's hours
(Shopify: ~€30,500). The development already done is a sunk cost and is not counted.
## Risks and mitigations
| Risk | Mitigation | Owner |
|---|---|---|
| Dependency on a single person | Documentation, IaC, automated deployments, training a replacement | Marc |
| A failure during the Christmas peak | A load test in October, a peak season profile, a change freeze | Marc |
| Cost growth during the peak season | An annual budget with a forecast alert | Laura and Sara |
## Review conditions
Annual review. It is reopened if Marc leaves the company with no replacement, if boxes and own
delivery stop mattering in sales, or if the cost of the platform clearly exceeds that of the SaaS
alternative.4.3 ADR-0003: email, office suite and files to Microsoft 365 (SaaS)
# ADR-0003: Replace Exchange 2016 and the file server with Microsoft 365
- **Status:** accepted · **Date:** 2026-10-15
- **Decision-makers:** senior management, Sara, Laura · **Consulted:** the Microsoft partner, the data protection consultancy
## Context
Exchange Server 2016 has been out of support since October 2025 (like Office 2016), with no MFA and
114 h/year of Laura's work. There are 120 users: 45 in the office and 75 in the warehouse and
delivery. The file server holds the shared spreadsheets and also needs renewing.
## Options considered
1. Renew the own email system (new server, subscription licenses, perpetual office suite).
2. Microsoft 365: 45 Business Premium + 75 F3.
3. Google Workspace: 45 Business Plus + 75 Frontline.
## Criteria and weights
Product security and support (3), single identity and Conditional Access (3), migration
effort (2), desktop office suite for the admin team (2), 5-year cost (2), vendor
lock-in (1).
## Decision
Microsoft 365 (45 Business Premium + 75 F3), with OneDrive and SharePoint replacing the file
server, Conditional Access with MFA for everyone and third-party backup of email and OneDrive.
## Consequences
- **Positive:** supported software, MFA and Conditional Access, Teams for warehouse and delivery,
large mailboxes, mobile device management; Laura goes from 134 to 30 h/year on email and files.
- **Negative:** **more expensive in cash** than renewing the own email system (~€116,500 against
~€99,200 over 5 years, risk included); greater concentration with a single vendor.
- **Financial impact:** €6,000 one-off and ~€20,750/year.
## Risks and mitigations
| Risk | Mitigation | Owner |
|---|---|---|
| Vendor concentration | A CRM from another vendor, open formats, third-party backup, exit plan, annual contract | Laura |
| User resistance | A pilot of 10 mailboxes, training, advance communication | Management and Laura |
| Unused licenses | A quarterly review with the Graph report | Laura and Sara |
| Data loss through deletion or error | Configured retention and third-party backup | Laura |
## Review conditions
Annual review of the contract and the plans; an alternative identified (Google Workspace) in the
exit plan.4.4 ADR-0004: the sales CRM on HubSpot (SaaS)
# ADR-0004: Replace the customer spreadsheet with HubSpot (entry paid plan)
- **Status:** accepted · **Date:** 2026-10-15
- **Decision-makers:** senior management, Jordi (sales), Sara, Laura
## Context
The sales pipeline lives in `Clientes_2026_v3_FINAL.xlsx`, with no mobile access, with duplicates
and with no opportunity tracking. Users: 9 (Jordi and 8 sales reps). HubSpot free was prototyped
with fictitious data and was well received by the team.
## Options considered
1. Carry on with the spreadsheet (the status quo).
2. HubSpot, entry paid plan.
3. Pipedrive.
4. Dynamics 365 Sales.
## Criteria and weights
Adoption by the sales team (3), 5-year cost (2), integration with email and, later on, with the
ERP (2), portability and exit (2), security features — SSO, fine-grained permissions — (1).
## Decision
HubSpot on the entry paid plan for 9 users, MFA required, weekly export through the API to
immutable storage and an annual contract. Business owner: Jordi.
## Consequences
- **Positive:** a single customer record reachable from a phone, a shops pipeline, reports;
~€14,800 over 5 years against ~€45,100 for Dynamics 365 Sales; it diversifies the risk of
concentration with Microsoft.
- **Negative:** no SSO on the plan taken out (offset with MFA); integration with the ERP through
the API and functions, not native; advanced features on considerably more expensive plans.
- **Financial impact:** €2,000 one-off and ~€2,560/year (licenses and administration hours).
## Risks and mitigations
| Risk | Mitigation | Owner |
|---|---|---|
| Going back to the spreadsheet | Training, migrated and clean data, mandatory use at the weekly sales meeting | Jordi |
| A price rise or the need for a higher plan | An annual review with costed alternatives (Pipedrive, Dynamics) | Sara |
| Loss or leak of customer data | A tested weekly export, MFA, per-team roles, an export log | Laura |
## Review conditions
Annual review, or sooner if SSO, fine-grained permissions or native ERP integration are needed.
- Part B: the B2B portal brief
It is March 2027. The migrations are finished and Jordi comes to the committee with a request from the business: the 150 retail customers want to order online, see real stock and, above all, be able to check where each consignment of fruit comes from: the farm or supplier of origin, the harvest date and the batch. Several shops are asking for it so they can answer their own customers and their quality audits.
Agreed requirements:
| Requirement | Detail |
|---|---|
| Users | 150 retail customers, around 300 named users (2 per shop) |
| Peaks | 80% of orders are placed on Monday and Tuesday between 6:00 and 9:00: up to ~120 concurrent users; ~600 orders/week |
| Functionality | A catalogue with real stock, per-customer prices, orders with line items, history and delivery notes |
| Traceability | Per order line: batch, origin (farm or supplier) and harvest date; downloadable record |
| Integration | Stock, batches and prices from the ERP (the existing stock API, app-hortalia-stock-api); order creation in the ERP |
| GDPR | Business contact data; each user sees only their own shop's data; access logging |
| Budget | A maximum of €25,000 in the first year (development included) and ≤ €400/month of operations |
| Timeline | 4 months: kick-off in May 2027, in production in September, before the peak season |
| Team | Marc at half time + 1 freelance developer for 4 months |
| Constraint | The ERP cannot be exposed to the internet (ADR-0001) |
Your task (part B).
- Apply the decision tree from 05-01 and explain which branch the project falls into and why.
- Evaluate at least three options: SaaS (the B2B module of an e-commerce platform), PaaS (extending the hortalia-shop platform with a new application) and IaaS (own VMs).
- Build a weighted matrix in Python with justified criteria and weights.
- Estimate the cost of the first year and over three years for each option, and compare it with the budget.
- Write ADR-0005 with the decision, its consequences, risks and review conditions.
- State which compliance checks you would carry out before putting the portal into production.
- Part B: reasoned solution
6.1 The decision tree
First question: is there a mature SaaS product covering 80%? There are e-commerce platforms with very capable B2B modules (per-customer catalogues, price lists, orders, approvals). They cover ordering and the catalogue well, but not batch traceability, which is specific to the food sector and lives in the ERP.
Second question: is the missing 20% exactly what differentiates us? Yes. Hortalia sells fresh fruit to neighbourhood shops; being able to say which farm each box came from and when it was picked is precisely its value proposition, and it is what the shops are asking for. On top of that, stock and prices live in an ERP that cannot be exposed to the internet, so any option needs a piece of its own acting as an intermediary.
The tree therefore leads to PaaS, provided there is a team: there is (Marc + a freelancer) and a platform is already up and running with the stock API, the private network, the secrets in Key Vault and the monitoring all solved.
6.2 The weighted matrix
# Hortalia B2B portal: weighted matrix and 3-year cost (ILLUSTRATIVE figures, euros)
weights = {
"batch_traceability": 3, # a non-negotiable requirement: origin and harvest date per line
"erp_integration": 3, # stock, per-customer prices and order creation
"deadline_4_months": 3,
"first_year_cost": 2, # budget €25,000
"recurring_cost": 2, # target <= €400/month
"team_operation": 2, # Marc + 1 freelancer, no systems administrators
"identity_and_gdpr": 2, # 300 users from 150 customer companies
"monday_peak": 1, # 120 concurrent users 2 days a week
"portability": 1,
}
options = {
"SaaS B2B": {"batch_traceability": 2, "erp_integration": 2, "deadline_4_months": 4,
"first_year_cost": 2, "recurring_cost": 1, "team_operation": 5,
"identity_and_gdpr": 4, "monday_peak": 5, "portability": 2},
"PaaS (extend hortalia-shop)": {"batch_traceability": 5, "erp_integration": 5, "deadline_4_months": 4,
"first_year_cost": 4, "recurring_cost": 5, "team_operation": 3,
"identity_and_gdpr": 4, "monday_peak": 4, "portability": 4},
"IaaS (own VMs)": {"batch_traceability": 5, "erp_integration": 5, "deadline_4_months": 2,
"first_year_cost": 3, "recurring_cost": 3, "team_operation": 1,
"identity_and_gdpr": 3, "monday_peak": 2, "portability": 4},
}
maximum = 5 * sum(weights.values())
print(f"{'Option':<30}{'Points':>8}{'Out of ' + str(maximum):>10}")
for name, marks in sorted(options.items(),
key=lambda pair: -sum(weights[c] * pair[1][c] for c in weights)):
total = sum(weights[c] * marks[c] for c in weights)
print(f"{name:<30}{total:>8}{total / maximum:>9.0%}")
# ---- 3-year cost: development/implementation + operations ----
YEARS = 3
costs = {
"SaaS B2B": {"implementation": 12000, "monthly": 1500 + 100},
"PaaS (extend hortalia-shop)": {"implementation": 14000, "monthly": 180},
"IaaS (own VMs)": {"implementation": 16000, "monthly": 350},
}
print(f"\n{'Option':<30}{'Year 1':>10}{'3 years':>10}{'€/month':>9}")
for name, c in costs.items():
year1 = c["implementation"] + 12 * c["monthly"]
three = c["implementation"] + YEARS * 12 * c["monthly"]
print(f"{name:<30}{year1:>10,.0f}{three:>10,.0f}{c['monthly']:>9,.0f}")
print("\nBudget: €25,000 in the first year and <= €400/month of operations")Explanation of the choices made in the script:
- The weight-3 items are the requirements that, if not met, make the project unviable: traceability, integration with the ERP and the timeline. The weight-2 items are important (up-front and recurring cost, operations, identity and GDPR) and the weight-1 items are desirable.
- The marks sum up the analysis of each option:
- SaaS B2B: excellent on operations and scaling, weak on traceability (you would have to force custom fields) and on integration (it needs an intermediary of your own anyway), and very expensive on a recurring basis for 150 customers.
- PaaS: it reuses the existing platform, the stock API and the private network; operations are not zero (Marc), but they are familiar.
- IaaS: the same control as PaaS, but you have to build and operate servers, load balancing and backups in four months, with a team that has no systems administrators.
sorted(..., key=lambda pair: -sum(...)):pairis each(name, marks)pair from the dictionary; the minus sign reverses the order so the highest is shown first.pair[1]is the marks.- The cost block is deliberately simple: implementation (development or setup) plus a monthly cost. It counts cash only; Marc's hours are treated separately, because they are internal time already allocated to the project.
- SaaS B2B: an illustrative enterprise plan at €1,500/month, plus €100/month of apps, plus €12,000 of integration with the ERP (which is still needed).
- PaaS: €14,000 of freelancer work over four months and around €180/month (extra instances on the existing plan, database, external identity and storage for the batch records).
- IaaS: €16,000 (there is more to build) and around €350/month of VMs, load balancer and backups.
Output:
Option Points Out of 95 PaaS (extend hortalia-shop) 82 86% IaaS (own VMs) 62 65% SaaS B2B 55 58% Option Year 1 3 years €/month SaaS B2B 31,200 69,600 1,600 PaaS (extend hortalia-shop) 16,160 20,480 180 IaaS (own VMs) 20,200 28,600 350 Budget: €25,000 in the first year and <= €400/month of operations
6.3 Reading the results
- Only PaaS and IaaS fit the recurring budget (≤ €400/month). SaaS B2B overshoots it by a factor of four, and on top of that it does not remove the development of the ERP integration: you pay for the platform and for the intermediary.
- PaaS also wins on the matrix (86%), on traceability, integration and recurring cost.
- IaaS is ruled out on timeline and operations: four months with two people is not enough to build and secure servers as well as writing the application.
- An honest warning: if Hortalia did not need batch traceability or real-time integration, the result could flip, just as it did with the store in 05-01. The weight-3 criteria are calling the shots.
6.4 ADR-0005 (summary)
# ADR-0005: Build the B2B order portal by extending the hortalia-shop PaaS platform
- **Status:** accepted · **Date:** 2027-03-18
- **Decision-makers:** senior management, Jordi, Marc, Sara, Laura
## Context
150 retail customers (≈300 users) want to order online with real stock and batch traceability
(origin and harvest date). Peaks of ~120 concurrent users on Monday and Tuesday from 6:00 to
9:00. Budget: €25,000 in the first year and ≤€400/month. Timeline: 4 months. Team: Marc (half
time) + 1 freelancer. The ERP cannot be exposed to the internet.
## Options considered
1. The B2B module of a SaaS e-commerce platform.
2. Extend the existing PaaS platform with a new application, `app-hortalia-b2b`.
3. Own VMs (IaaS).
## Decision
`app-hortalia-b2b` is built on Azure App Service, inside the existing plan (with one additional
instance and an autoscaling rule for the 6:00 to 9:00 slot on Mondays and Tuesdays), with its own
database on the existing managed PostgreSQL server, identity for the shop users through a managed
identity service for external customers, and stock, prices and batches consumed through
`app-hortalia-stock-api` over the private network. The ERP exposes a new read-only view for
batches; orders are created through the same API.
## Consequences
- **Positive:** it meets traceability and integration; €16,160 in the first year and ~€180/month,
within budget; it reuses the existing private network, secrets, monitoring and deployments.
- **Negative:** more surface for Marc to maintain (two applications); the portal depends on the ERP
being available for real-time stock; the knowledge is still concentrated.
- **Financial impact:** €14,000 of development (freelancer) + ~€2,160/year of operations.
## Risks and mitigations
| Risk | Mitigation | Owner |
|---|---|---|
| The 4-month timeline | A minimum scope for September (catalogue, order, traceability, history); the rest later | Marc |
| The ERP going down in the critical slot | A cache of the catalogue and stock with a timestamp and a "stock as of HH:MM" notice; the portal keeps taking orders | Marc |
| The 6:00 to 9:00 peak | A scheduled autoscaling rule and a load test in August | Marc |
| One shop improperly accessing another's data | A data model with the customer identifier in every query, specific tests and a third-party review | Marc and Laura |
| Dependency on the freelancer | Code in Hortalia's repository, code reviews with Marc, documentation as a condition of payment | Marc |
## Review conditions
Review 12 months after go-live: real usage, cost, incidents and requests from the shops.
If the ERP were replaced by a SaaS ERP (ADR-0001), the integration would have to be rebuilt: the
portal must isolate access to the ERP in a single module.6.5 Compliance checks before production
Applying 05-03:
- Record of processing activities: add the B2B portal (purpose, data subjects: the shops' contact people; business data; legal basis: performance of a contract; retention).
- Isolation between customers: explicit tests that a user cannot see another shop's orders (the most serious and most common flaw in B2B portals).
- Identity: MFA available for the shops' users, a password policy, account lockout and an offboarding procedure for when a shop stops being a customer.
- Access logs: who signs in, from where and what they download, with a defined retention period.
- Encryption: HTTPS enforced, a private database, secrets in Key Vault.
- Backups and recovery: backups of the new database and a restore test.
- The portal's contract and terms of use for the shops, reviewed by the legal advisers.
- No payment data: the portal does not take payments; shops are invoiced from the ERP as before. That keeps it out of the PCI DSS scope.
Common Mistakes and Tips: typical reasoning errors
| Error | How it sounds | How to spot it and fix it |
|---|---|---|
| The hammer bias | "Let's do it on a VM, which is what we know" | Force yourself to always evaluate a SaaS option and a PaaS one, even if only to rule them out in writing |
| Falling for the new thing | "Let's do this with Kubernetes and microservices" | Ask who will operate it next August; check it against the team criterion |
| Tuning the weights to fit the result | "If we lower the weight on cost, the one I like wins" | Fix and sign off the weights before scoring; document any later change and its reason |
| Comparing list price with total cost | "The SaaS product is €1,500 a month and that's it" | Add integration, training, migration, exit and internal hours |
| Ignoring sunk cost | "We have already invested a lot, we cannot change" | What has been spent does not come back; decide only on what is left to spend (the work done does reduce timeline and risk) |
| Confusing a requirement with a wish | "It has to be real time" | Ask what happens if it takes an hour; if the answer is "nothing serious", it is not a weight-3 item |
| Schedule optimism | "We'll do the whole thing in four months" | Define a minimum scope and what is left for later; plan load tests and training |
| Forgetting the exit | "We'll see if we ever change" | No system goes into production without a tested export and an identified alternative |
| Deciding with no review conditions | "That's settled, then" | Every decision carries a review date and explicit triggers |
Exercises
Exercise 1. Write ADR-0006 for a system we have not covered: Hortalia wants a time-and-attendance tool for its 120 employees (a legal requirement in Spain), with clocking in from a phone for the delivery drivers and from a shared terminal in the warehouse. Use the full template, apply the decision tree and justify the model.
Exercise 2. A member of the committee proposes: "If we build the B2B portal on the commerce SaaS product, we avoid the ERP integration, because we will upload the stock with a file every night". Analyse the proposal: which requirement does it break? what consequences would it have for the business? under what conditions would it be acceptable?
Exercise 3. Recalculate the B2B portal matrix assuming Marc leaves the company in May 2027 and Hortalia has only the freelancer (and could hire an external development company). Which weights and marks change? Does the decision change? Write the three lines you would add to ADR-0005.
Solutions
Solution 1 (outline of the expected answer). The tree: is there a mature SaaS product? Yes, there are many time-and-attendance and HR tools with mobile clocking, optional geolocation and statutory reports. Is it differentiating? No, it is pure commodity and, moreover, it has legal requirements the provider keeps up to date. → SaaS. Weight-3 criteria: legal compliance (recording working time, keeping the records for four years under Spanish employment rules, to be validated with the legal advisers), ease of use for the delivery drivers and data protection (geolocation is particularly sensitive: only if it is necessary and proportionate, informing the workers and consulting their legal representatives). Weight 2: integration with payroll and with Entra ID (SSO), cost per user (illustrative: €2-4/user/month → ~€4,300-5,800/year for 120 people). Negative consequences: one more provider to govern and staff data held by a third party (a DPA is essential). Review conditions: regulatory changes and annual renewal. Common mistake: proposing an in-house application on PaaS "because it is simple"; the cost is not in building it, but in keeping it up to date with employment law for years.
Solution 2. It breaks the real-stock requirement and affects the traceability one: with an overnight load, the portal would sell at 8:00 fruit that ran out the day before or that has already been committed that morning, and the batches shown might not match the goods delivered. Consequences: orders that have to be corrected by hand, calls from the shops, a loss of trust in precisely the portal's differentiating argument, and extra work for Nuria and the warehouse. Besides, it does not save the integration: someone has to generate, upload and validate that file every night (and handle its errors), which is a more fragile integration than an API. It would be acceptable if: the business confirmed that stock varies little between the load and the order (not the case with fresh fruit), the portal clearly showed the time of the last data, and each order were confirmed afterwards before being treated as firm. Tip: when someone proposes "we'll do it with an overnight file", ask what happens when the file fails on a Monday at 5:00.
Solution 3. Two things change, above all: the weight on operations and team goes from 2 to 3 (there is no longer anyone in-house to maintain the platform) and the PaaS mark on that criterion drops (from 3 to 2, because it would depend on third parties); its mark on the timeline drops too. The SaaS options gain points on operations. If the SaaS recurring cost still quadruples the budget, the reasonable decision is not necessarily to change model, but to change who does the work: contract the development and maintenance to an external company with a support contract, keeping the PaaS platform (which is still the one that meets the requirements), or reconsider the scope. Three lines for ADR-0005:
## Update (2027-05-xx)
Marc leaves the company. The platform decision stands (PaaS), but maintenance is contracted to an
external company with a support contract and response times, and the main risk added is the loss of
knowledge: documentation, IaC and a formal handover before he leaves.Common mistake: concluding "without Marc, everything goes SaaS". The traceability and integration requirement has not changed; what has changed is who does the work.
Conclusion
In this exercise you have turned analysis into written decisions. You have learned what an ADR is and why a decision without a document gets forgotten or argued over forever, you have used a professional template (context with numbers, real options, criteria with weights, the decision, positive and negative consequences, risks with mitigations, review conditions and references) and you have seen Hortalia's four decisions written out from start to finish: the ERP onto a VM in Azure without replacing it yet, the store on App Service with payment delegated, email and files on Microsoft 365 accepting a higher cost in exchange for security and functionality, and the CRM on HubSpot with an annual contract and a tested export. You then applied the complete method to a new project — the B2B order portal with batch traceability — walking the decision tree, building a weighted matrix in Python (PaaS 86%, IaaS 65%, SaaS 58%), estimating costs (€16,160 in the first year and around €180/month against the €31,200 and €1,600/month of the SaaS option), writing ADR-0005 with its risks and closing with the compliance checks needed before production. And you have gone through the reasoning errors that spoil good decisions: the hammer bias, tuning the weights to the desired result, comparing list prices with total costs, confusing requirements with wishes and deciding with no review date.
This lesson closes module 5. Hortalia has gone from three loose prototypes to an architecture that is decided, budgeted, compliant, planned in waves and documented decision by decision: the ERP on IaaS for as long as it remains the ERP it is, the store and the new B2B portal on PaaS because they are what differentiates the company, and email, files and the CRM on SaaS because nobody wins customers by patching a mail server. But notice that almost every decision carries a review date and a set of triggers, and that is no accident: the cloud's offering changes far faster than a company's systems. The models you have studied are still the map, but the borders between them keep moving — serverless, containers, artificial intelligence services consumed as SaaS, sovereignty demands, FinOps turned into a discipline — and what has to be built today may be bought tomorrow. In module 6 we will lift our eyes towards those trends and towards the future of IaaS, PaaS and SaaS, starting with Current Trends in IaaS, PaaS, and SaaS.
