Module 02 · Lesson 2.2
Choosing a System Shape
On this page
- What you will learn
- What a system shape is, and the three options
- Compare system options with weighted criteria
- Worked scenario: Tidewell chooses one web application
- Step-by-step workflow: choose a system shape
- Using an AI assistant to challenge a shape decision
- Conclusion and your next step
- Reusable prompt
- Expected output
- Common errors and fixes
- Validation checklist
- Hands-on exercise
- Knowledge check
- Frequently asked questions
- References
When you move house, you do not start with the sofa. You first decide whether to buy a flat, rent a house or build. That choice sets the limits for everything after it. A system's shape is the same kind of choice.
In this lesson you compare three shapes for Tidewell Physiotherapy's booking system. You score them against criteria taken from the drivers in the last lesson, and you see how a clear scoring table turns an argument into a decision. You also learn how to use an assistant to attack your choice before you commit to it.
What you will learn
- Describe three common system shapes in plain words: one application, a split frontend and API, and a bought service.
- Choose criteria from your architecture drivers and give each a weight.
- Score options in a table, use must-have criteria as gates, and explain the result honestly.
- Use an AI assistant to challenge a shape decision and write down what would make you revisit it.
Before you start
- Completed Architecture Drivers and Constraints, or have a traced list of drivers of your own.
- Access to any capable AI assistant.
- Optional: Node.js, if you want to run the scoring example.
What a system shape is, and the three options
A system shape answers one question: into how many separate programs do we divide the system, and who runs them? A deployable is one program you put on a server and start. Think of it as one shop. You can run one big shop, or several small ones that work together.
- Frontend
- The part people see and touch: the pages in the browser. It is like the shop window and counter.
- API
- A set of agreed requests that programs use to ask a system for data or actions. It is like the order slip that the counter hands to the stock room.
- REST API
- A common style of API over the web, where each address stands for a thing, such as a booking, and standard actions are used on it.
- System of record
- The one place that holds the true, current version of the data. It is like the master diary that everyone trusts.
| Option | What it is | Everyday comparison |
|---|---|---|
| A: one deployable web application | One program serves the pages and the REST API. In our stack this is a Next.js application. | One shop with the counter and stock room under one roof. |
| B: separate frontend and API service | A frontend program in the browser, and a second program for the API, each built and deployed on its own. | A counter in one building and a warehouse in another, with a delivery van between them. |
| C: configure an off-the-shelf booking service | You buy or rent a finished product and set it up. You write little or no code. | Renting a ready-made stall instead of building a shop. |
Each shape is right for some projects. B suits large teams where one group builds pages and another builds the API, or where a phone app and a website share one API. C suits needs that every business has in the same way. Neither is better in general. The drivers decide.
Compare system options with weighted criteria
Arguments about design often go in circles, because people use different yardsticks. A weighted criteria table gives everyone the same yardstick. You list what matters, give each item a weight for its importance, then give each option a score.
Pick criteria from your drivers
Do not invent criteria from taste. Take them from the driver table. For Tidewell, six drivers and requirements give six criteria. The weights add up to 100, so each weight reads as a percentage.
| Criterion | Comes from | Weight | Must-have? |
|---|---|---|---|
| Correct bookings under concurrency | D1, NFR-01 | 25 | No |
| Owner chooses where data is held | D5, CON-01 | 20 | Yes |
| Fits one developer and a small budget | D6 | 20 | No |
| One system of record | D3 | 15 | No |
| Waiting list on cancellation | FR-03 | 10 | No |
| Works on a phone | D2, NFR-02 | 10 | No |
A must-have is a gate, not a score. CON-01 is a Must requirement. An option that fails it is out, however well it does elsewhere. A weighted average can hide a failure like that, so check the gates separately.
Score each option from 1 to 5
A score of 5 means it meets the criterion very well, and 1 means very badly. These scores are judgements. Base each one on evidence you can name, such as a trial of the product or a test, and write the evidence beside the number.
| Criterion | A: one app | B: split | C: buy |
|---|---|---|---|
| Correct bookings under concurrency | 5 | 5 | 4 |
| Owner chooses where data is held | 5 | 5 | 2 |
| Fits one developer and a small budget | 4 | 2 | 5 |
| One system of record | 5 | 4 | 4 |
| Waiting list on cancellation | 5 | 5 | 2 |
| Works on a phone | 4 | 4 | 4 |
A small scoring function you can run
A spreadsheet is enough for this, and many teams use one. If you prefer code, this short TypeScript file does the same sums. It is a thinking aid, not part of the booking system. It was run twice and gave identical results both times.
type Criterion = { name: string; weight: number; mustHave?: boolean };
type Option = { name: string; scores: Record<string, number> };
const criteria: Criterion[] = [
{ name: "Correct bookings under concurrency", weight: 25 },
{ name: "Owner chooses where data is held", weight: 20, mustHave: true },
{ name: "Fits one developer and a small budget", weight: 20 },
{ name: "One system of record", weight: 15 },
{ name: "Waiting list on cancellation", weight: 10 },
{ name: "Works on a phone", weight: 10 },
];
const options: Option[] = [
{ name: "A: one web application", scores: { "Correct bookings under concurrency": 5, "Owner chooses where data is held": 5, "Fits one developer and a small budget": 4, "One system of record": 5, "Waiting list on cancellation": 5, "Works on a phone": 4 } },
{ name: "B: frontend + API service", scores: { "Correct bookings under concurrency": 5, "Owner chooses where data is held": 5, "Fits one developer and a small budget": 2, "One system of record": 4, "Waiting list on cancellation": 5, "Works on a phone": 4 } },
{ name: "C: off-the-shelf service", scores: { "Correct bookings under concurrency": 4, "Owner chooses where data is held": 2, "Fits one developer and a small budget": 5, "One system of record": 4, "Waiting list on cancellation": 2, "Works on a phone": 4 } },
];
/** Weighted average on a 1-5 scale. A must-have scored below 3 rules the option out. */
export function scoreOption(option: Option, list: Criterion[]) {
const totalWeight = list.reduce((sum, c) => sum + c.weight, 0);
const weighted = list.reduce((sum, c) => sum + c.weight * option.scores[c.name], 0);
const failed = list.filter((c) => c.mustHave && option.scores[c.name] < 3).map((c) => c.name);
return { name: option.name, score: Math.round((weighted / totalWeight) * 100) / 100, failed };
}
for (const r of options.map((o) => scoreOption(o, criteria))) {
const note = r.failed.length > 0 ? " RULED OUT: " + r.failed.join(", ") : "";
console.log(r.name.padEnd(28) + " " + r.score.toFixed(2) + note);
}Weighted scores with a must-have gate. Scratch file, not part of the product.
CriterionandOptiondescribe the shapes of the data: a criterion has a name and weight, and an option has a score per criterion name.criteriaholds the six criteria. OnlyOwner chooses where data is heldis markedmustHave: true.optionsholds the three shapes with their scores from the table above.scoreOptionmultiplies each score by its weight, adds them up and divides by the total weight. That gives an average between 1 and 5.- The same function lists any must-have criterion that scored below 3. Those are the gate failures.
- The last loop prints one line per option and adds
RULED OUTwhen a gate failed.
A: one web application 4.70
B: frontend + API service 4.15
C: off-the-shelf service 3.60 RULED OUT: Owner chooses where data is heldWorked scenario: Tidewell chooses one web application
Tidewell's choice is A, one deployable web application that serves both the pages and the REST API. In our stack that is Next.js, which can hold pages and API routes in one project. This is recorded later as ADR-001.
Option C was close. A ready-made service would have saved weeks, and the budget is small. The practice manager tried two products and found two problems:
- Neither product could offer a freed slot to the waiting list. That is FR-03.
- Neither let the owner choose where the data is held. That is CON-01, a Must.
The second problem is a gate failure, so C is out whatever its total. Option B was never likely to win. Two programs mean two things to deploy, watch and fix, and D6 says one developer and a later contractor. B would add work for no need yet.
Say what would change your mind
A choice is only honest if it says when it stops being right. For Tidewell the record says: revisit A if a native phone app, or a partner, needs the API at a scale the single application cannot serve. Until then, A stands.
Step-by-step workflow: choose a system shape
Step 1: Name two or three real options
Always include a 'buy' option and the simplest build option. Avoid comparing one real choice against two weak ones.
What you should see: A list of options, each with a one-line description.
Step 2: Choose criteria from your drivers
Take five to eight criteria from the driver table. Mark the Must ones as gates.
What you should see: A criteria table with sources.
Step 3: Weight the criteria
Give weights that add to 100. Ask the owner which two criteria matter most, and make sure they hold the largest weights.
What you should see: Weights the owner agrees with.
Step 4: Score with evidence
Score each option from 1 to 5. Write the evidence beside each score. For a bought product, try it before you score it.
What you should see: A score table where every number has a reason.
Step 5: Check the gates, then the totals
Remove any option that fails a must-have. Then compare the totals, and test whether a small change in weights flips the order.
What you should see: A shortlist and a note on how close it is.
Step 6: Record the decision and what would change it
Write the choice, the rejected options and the trigger for revisiting. The next lessons show how.
What you should see: A decision ready for an ADR.
- Options
Build, split, buy
- Criteria
From the drivers
- Weights
Agreed with the owner
- Scores
With evidence
- Gates and totals
Rule out, then rank
- Decision
And when to revisit
Gates come before totals, because a total can hide a failure.
Using an AI assistant to challenge a shape decision
An assistant is useful as a challenger. It can list weak points in your scoring, point to a missing option, or play the part of a sceptical reviewer. It is much less useful as the decider, because it does not know your budget, your team or your client.
| Task | Assistant's part | Your part |
|---|---|---|
| Suggest options | Proposes shapes you had not considered, with when each fits. | Keeps only those that are realistic for your team and budget. |
| Check the scoring | Points out scores with no evidence, and weights that look odd. | Gathers the evidence, such as trying a product, and fixes the scores. |
| Argue the other side | Writes the strongest case for the option you rejected. | Judges the case against the drivers, and updates the record if it holds. |
| Draft the wording | Turns your table into a short paragraph. | Checks it says what you decided, and nothing more. |
Conclusion and your next step
A system shape is a big choice, so compare real options against criteria taken from your drivers. Use must-haves as gates, score with evidence, and say what would make you change your mind. For Tidewell, one web application wins, and buying was close but failed on data location.
Your next step: score two or three shapes for your own capstone project, then continue to Choosing Technology with Trade-offs. There you choose the language, framework and database inside the shape you picked.
Read more in the blog post Writing Architecture Decision Records (ADRs) with AI, or practise on the Appointment Booking Portal project.
Reusable prompt
System shape challenger
Reviews your option comparison, points out missing options and weak scores, and argues the case for a rejected option.
You are a sceptical reviewer of an architecture choice. Do not make the decision for me and do not invent facts about products.
Fictional clinic: Tidewell Physiotherapy. Drivers: correct bookings when two people act at once; patients use phones; staff and patients share one diary; every change recorded; patient data held under the clinic's duties with the owner choosing the region; one developer with an assistant, a small budget, a local contractor to maintain it later.
Options: A) one deployable web application serving pages and a REST API; B) a separate frontend and a separate API service; C) configure an off-the-shelf booking service.
My scoring (1 to 5): A 4.70, B 4.15, C 3.60. C is ruled out because two products I tried could not offer freed slots to the waiting list or let the owner choose where data is held.
Tasks:
1. List any option I missed that is realistic for one developer and a small budget.
2. Point out scores or weights that look unsupported, and say what evidence would support them.
3. Write the strongest argument for option C, in five sentences or fewer. Mark every product fact "Needs checking".
4. List two events that would make me revisit my choice.Show the reusable template
Replace each {{placeholder}} with your own details.
You are a sceptical reviewer of an architecture choice. Do not make the decision for me and do not invent facts about products.
Context: {{organisation_and_scope}}
Drivers: {{architecture_drivers}}
Options: {{options_with_one_line_each}}
My scoring (1 to 5) and the reasons for any option ruled out: {{scores_and_gates}}
Tasks:
1. List any option I missed that is realistic for {{team_and_budget}}.
2. Point out scores or weights that look unsupported, and say what evidence would support them.
3. Write the strongest argument for the option I rejected, in five sentences or fewer. Mark every product fact "Needs checking".
4. List two events that would make me revisit my choice.Expected output and limitations
A short reply with four parts: any missed options, the scores or weights that lack evidence, a brief argument for the rejected option with product facts flagged, and two events that would trigger a revisit.
1. Missed option: a hosted form-and-calendar tool plus a small custom page for the waiting list. Realistic for one developer. Needs checking: whether its data can be held where the owner chooses.
2. Unsupported: "Fits one developer" gives A a 4 and B a 2. What evidence? Estimate the work for the deploy and monitoring of two programs.
3. Case for C: setup would take days, not weeks. The clinic keeps developer time for other work. Needs checking: whether any product offers freed slots to a waiting list through a setting or an add-on.
4. Revisit if: a native app is requested; the number of clinicians grows beyond what one developer can support.Limitations to keep in mind
- The assistant may state product facts as if they were certain. Treat each as a question until you test the product or read its current documentation.
- It may suggest an option that suits a large company, not one developer with a small budget. Check each suggestion against driver D6.
- It cannot know the owner's real priorities. A weight is only right when the owner has agreed it.
Common errors and how to fix them
Only one real option is compared.
Why it happens: The team has already decided and the other options are there for show.
Fix: Include a realistic buy option and the simplest build option, and score both honestly.
Must-have requirements are averaged with everything else.
Why it happens: A single total looks neat, and hides a failure.
Fix: Check gates first. An option that fails a Must is out, whatever its total.
Scores come from the assistant's confidence, not from evidence.
Why it happens: A fluent answer felt like a fact.
Fix: Write the evidence beside each score. Try the product, run a test or read its current documentation.
Validation checklist
Tick each item once you have confirmed it.
Hands-on exercise
A system shape for Ferngate Cycle Repairs
Compare three shapes for Ferngate's parts and stock tool: one web application, a split frontend and API, and an off-the-shelf stock tool. Write a weighted criteria table with scores and evidence, name the decision, and say what would change it.
You will need
- Your Ferngate drivers from the last lesson.
- Note: mechanics share one tablet, with greasy hands.
- Note: the internet connection in the workshop is unreliable.
- Note: the owner reorders every Friday by counting shelves, and the low-stock threshold is 'to be agreed'.
Acceptance criteria
Your work is done when every one of these is true.
Hints (2)
- Ask what the bought tool does when the connection is down.
- Try changing the largest weight by 10 points. Does the order of the options change?
Show a model answer
A strong answer weights unreliable connection and ease of use on a shared tablet highly, because those match the workshop's real limits. It scores the bought tool by what it actually does offline, with evidence from a trial, not from its advertising. It marks any gate, such as data staying with the owner, and applies it before the totals. It admits when two options are close, and writes a clear trigger, such as 'revisit if the workshop opens a second site or needs a customer app'. The answer does not pick a product brand.
Knowledge check
Choose an answer, then check it. Nothing is recorded — this is for you.
Show the answer and explanation
Answer: B. A must-have is a gate, and an option that fails it cannot deliver a Must. A high total is tempting because averages feel fair, but they let strong scores hide a failure. Changing the weight to rescue an option is a way of fixing the answer first.
Show the answer and explanation
Answer: B. A score needs evidence, and the assistant does not know your team. Accepting it is tempting because it comes with an explanation, but explanations can be fluent and wrong. Removing the criterion would hide a real driver, D6.
Show the answer and explanation
Answer: B. Drivers change, for example when a partner needs the API. A revisit note tells the team what to watch. It is not meant to freeze the choice, which is the tempting misreading, and not every option has an end date.
Frequently asked questions
What is the difference between a monolith and microservices?
A monolith is one program that holds everything. Microservices split the system into many small programs that talk to each other. For a small team and a small system, one well-organised program is usually simpler to build, test and run.
Should a small project use a separate frontend and backend?
Not by default. Split them when different teams build each part, or when other programs, such as a phone app, need the same API. If one developer builds everything, one deployable is often enough, and you can split later.
When is buying a ready-made product better than building?
When your needs are the same as most other businesses, and the product meets every must-have, including where your data is held. Try the product with your real workflows first. If it fails a must-have, it is out.
Can an AI assistant choose the system architecture for me?
It can suggest options and argue against your choice, which is useful. It cannot decide for you, because it does not know your team, budget or the owner's rules. Make the decision yourself, using criteria taken from your own drivers.
- Written by
- PromptFable Editorial
- Last updated 19 Nov 2026
- Review
- Reviewed by Waseem Nadir, Technical Reviewer
- Last reviewed 27 Nov 2026
References
Primary sources for the technical details in this lesson. Vendor platforms change — check the official page if anything here looks different from what you see.
- Route Handlers(opens in a new tab)
Next.js documentation · Official documentation · Shows how one Next.js project can serve an API as well as pages, which is option A.
- Architectural Decision Records (ADRs)(opens in a new tab)
adr.github.io · Where to record the decision you reach here.
- How the discovery phase works(opens in a new tab)
GOV.UK Service Manual · Official documentation · Explains how teams learn what already exists and what people need before choosing a solution.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.