System Design: Foundations

Architecture drivers: business goals, constraints, risks

The forces that shape a design before any technology is chosen, and how to write them down so the design has reasons.

Updated 9 min read

Two people want to open a food business. One has a van, a gas hob and a weekend market. The other has a lease on a high-street unit, a health inspector’s checklist and a loan to repay.

Both “serve food”. Neither should build the same kitchen. The van needs to be small, cheap and movable. The unit needs fire exits, extraction and room for six staff. Nobody picked the equipment first and worked out the business afterwards. (Well, someone did, and they now own a very nice pizza oven that does not fit through the door.)

Software works the same way. The shape of a good design comes from the situation it has to live in.

Architecture drivers are the business goals, constraints and risks that force a design to look one way rather than another. If a decision cannot be traced back to a driver, it is a preference, and preferences are the first thing to drop when things get tight.

Why bother naming them

In lesson one I described architecture as the decisions that are expensive to change. Drivers are the other half of that sentence: they are the reasons those decisions were made.

Without written drivers, three things tend to happen:

  • A decision made for a good reason gets undone a year later by someone who never heard the reason.
  • Two people argue about “the best database” when they are actually optimising for different things.
  • The design drifts toward whatever is fashionable, because nothing pushes back.

With them, an argument becomes a question: which driver does this choice serve, and does it cost us another one?

The three kinds

I find it easiest to keep them apart, because each one pushes on a design differently.

Kind The question it answers Examples How it shapes the design
Business goal Why does this system exist, and what does “success” mean? Cut support tickets by half. Launch in a new country in one quarter. Keep AI spend predictable. Decides what is worth building well and what can be rough.
Constraint What is already fixed, whether we like it or not? Must run on the existing Kubernetes cluster. Team of three. Patient data must stay in one region. Launch date. Removes options. Good constraints save you time.
Risk What could go wrong, or what don’t we know yet? New technology nobody has run in production. A provider with a poor uptime record. A load estimate that is a guess. Tells you where to spend effort: prototype, add a fallback, or measure first.
Business goals Constraints Risks Design decisions Architecture each one traceable to a driver
Drivers go in, decisions come out. An arrow means "pushes on". A decision with no arrow pointing at it is a preference.

Business goals: what is the point?

A goal is the outcome the business wants, not a feature. “Add a dashboard” is a feature. “Let team leads see their spend without asking finance” is a goal, and it might be met by a dashboard, an email, or a weekly export.

Goals matter architecturally because they say where to be careful and where to be quick. If the goal is “prove the idea in six weeks”, a single deployable app is the sensible architecture, and splitting it into services would be the risky choice. If the goal is “survive a launch that marketing has already announced”, the load story becomes the priority.

It is worth asking what the goal is not. A system built to be cheap does not also get to be the fastest and the most available. You will meet that more formally in the next module on quality attributes, where goals get turned into measurable targets.

Constraints: what is already decided?

A constraint is something you cannot change within this project. They come in a few flavours:

  • Technical. The existing database, the language the team knows, the cluster that is already running.
  • Organisational. Team size, who owns what, who is on call, how many weeks you have.
  • Regulatory and contractual. Where data may live, how long logs must be kept, what a customer’s contract promises.
  • Budget. A hard monthly ceiling is a constraint. “We would like it cheap” is not.

Two things I try to remember:

  1. Check that a constraint is real. “We must use X” is sometimes a habit rather than a rule. Asking who decided it, and whether they would reconsider, costs a minute and occasionally removes a lot of work.
  2. Constraints are a gift. A small team on Kubernetes with PostgreSQL has already made a dozen decisions for you. That is fewer things to get wrong.

Risks: what might hurt us?

A risk is something uncertain that would cost us if it went badly. For each one, two things matter: how likely, and how bad. The ones that are both likely and bad get attention first.

There are four usual responses:

Response Meaning Example
Reduce Change the design so it hurts less Add a second provider so one outage is survivable
Learn Spend a little time to find out Prototype the risky part, load-test a guess
Transfer Let someone else carry it Use a managed database instead of running your own
Accept Decide to live with it, on purpose One region for now, written down, with a date to revisit

The important word in the last row is on purpose. An accepted risk that is written down is a decision. One that nobody noticed is a surprise waiting for a bad night.

I am cautious about one thing: risks about unfamiliar technology are real, but they are also easy to overstate or to use as an excuse for boring choices forever. The honest version is: “we have not run this in production, so we will try it somewhere low-stakes first”.

A worked example: an AI gateway

Imagine a small service that sits between internal applications and a language-model provider. It speaks the OpenAI-compatible API, enforces rate limits, and tracks spend against budgets per team. Here is how the drivers might be written down before any component is drawn. (The specifics are illustrative; I am showing the method, not describing a real company’s requirements.)

Business goals

  • Teams stop sharing one provider key, so spend can be attributed.
  • Surprise bills stop. A team that hits its budget gets told, not charged.

Constraints

  • Existing client code uses the OpenAI-style API and must keep working with only a base-URL change.
  • Small team; the service runs on the Kubernetes cluster that already exists.
  • PostgreSQL is already operated and backed up. A new datastore would be a new thing to run.

Risks

  • The budget check sits on the request path. If it is slow, every call is slow.
  • Responses can be streamed, so the token count is not known until the end. A budget check done only at the start can be overshot.
  • The provider can be down or slow, and teams will blame the gateway either way.
  • Request volume is a guess. Nobody has measured it.

Now ask what each driver does to the design:

Driver What it pushes toward
Must stay OpenAI-compatible The gateway is a thin proxy with the same paths and shapes. No new client SDK.
Small team, Postgres exists Start with Postgres for budgets and usage. Skip a new store until measurements say otherwise.
Budget check on the hot path Keep the check cheap: read a counter, not a full query. Accept that it may overshoot slightly.
Streaming makes tokens unknown up front Count as the stream finishes and reconcile after. This is a trade: a small overshoot in exchange for not blocking the stream.
Provider outages Timeouts, clear errors, and possibly a fallback provider later. For now: fail fast and say whose fault it is.
Load is a guess Measure early. Design so the budget counter can move to a faster store (a cache or in-memory) if needed.

Run the three questions from lesson one over it:

  1. More load? The budget check is the first place to hurt, so it is the part to keep simple and replaceable.
  2. Something breaks? The provider is the likeliest failure, and it is outside our control, so we limit the blast radius with timeouts and honest errors.
  3. What do we give up? Exact budget enforcement in return for low latency on every request. That trade came straight from two drivers colliding, which is the next point.

When drivers collide

They will. “Never exceed the budget” and “never slow a request down” cannot both be perfect. “Ship in six weeks” and “no known risks” are rarely friends.

When two drivers disagree, do not quietly pick one. Write down which one wins and why, because that sentence is the most reusable part of the whole design. Architecture decision records, later in this module, are a format for exactly that.

Drivers also change. A constraint like “team of three” becomes “team of eight” and a decision that made sense stops making sense. It helps to keep the list somewhere people will actually see it, and to revisit it when something big shifts.

A small template

Nothing fancy. A short page with these headings is enough:

  • Why this exists (one or two goals, in plain words)
  • Fixed things (constraints, with who set them)
  • Worries (risks, each with likelihood, impact and what we are doing about it)
  • Open questions (what we do not know yet)

If it is longer than a page, it is probably a project plan.

Common mistakes I want to avoid

  • Starting from technology. “We’ll use Kafka” before anyone has said what must be true. Technology is an answer; drivers are the question.
  • Treating every wish as a driver. If everything is critical, nothing is. Rank them, and be honest about which are really preferences.
  • Writing goals as features. “Build a dashboard” hides the reason, so nobody can suggest a cheaper way to meet it.
  • Ignoring non-technical constraints. Team size, on-call load and deadlines shape architecture as much as any database does.
  • Listing risks and then doing nothing. A risk list with no response column is a worry diary.
  • Never revisiting. The drivers on day one are not the drivers in month eight.

Next up: abstraction and decomposition, the habit of splitting a system into parts so that each one can be understood, and changed, on its own.