PRACTITIONERCHAPTER 09

Architecture governance and platform investment

Decide what the company builds, buys and keeps: frame build vs buy as core, cost and exit, govern architecture with records and advice rather than a gate, and fund platforms like products

45 MINHEAD OF ENGINEERINGUPDATED 2026-11-05
PREDICT

Your home-grown queue takes most of two engineers' time. A vendor quotes an annual price roughly equal to what those two engineers cost. The proposal says buying is cost-neutral and frees two engineers. What is the comparison most likely to have left out?

Every engineering organisation is a portfolio of things it built, things it bought and things it inherited. Most of that portfolio was assembled one decision at a time by whoever was there, and some of the early decisions now sit on the critical path of a much bigger company. The head of engineering owns the portfolio. You do not design the systems, but you decide how architecture decisions get made, which ones come to you, what the company will pay to own versus rent, and where to put a platform team instead of a feature team.

This chapter covers the model for build vs buy, the true cost and the exit, how to govern architecture without becoming a bottleneck, and how to invest in platforms. The platform-as-product side, from the point of view of the PM who runs one, is in platform, API and technical PM. Setting the strategy these decisions serve is the subject of engineering strategy and planning; the budget line they land on is in headcount, budget and cost.

The model: core, cost and exit

Every build vs buy question reduces to three, asked in this order.

Is it core? Joel Spolsky’s 2001 essay “In Defense of Not-Invented-Here Syndrome” puts the rule bluntly: “If it’s a core business function — do it yourself, no matter what.” He means the thing that makes customers choose you. Everything else, he argues, you should get from someone else. The word that does the work is function. For a messaging company, delivering messages reliably to carriers is core. The durable log that holds messages between two services is not, even though it sits on the same path. Most bad build decisions come from confusing “on the critical path” with “core”. Most bad buy decisions come from the reverse: renting the thing that differentiates you and discovering that your competitors can rent it too.

What does it cost, all-in, over three years? Not the licence against a salary. The full lines are in the next section. Three years is a rule of thumb: long enough to include a contract renewal and a re-platform, short enough that the estimates mean something.

How hard is it to leave? Gregor Hohpe’s essay “Don’t get locked up into avoiding lock-in” makes the point that lock-in is not a yes-or-no property: “avoiding being locked into one aspect often locks you into another.” He separates vendor, product, version, architecture, platform, skills, legal and mental lock-in, and argues that lock-in matters when switching is both expensive and likely. A component you would rarely switch can carry high lock-in; a component you will outgrow next year cannot. Reducing switching cost is buying an option, and options have a price.

Ask core first because it changes how you read the other two. For a core capability, a higher cost to build is often worth paying. For a non-core one, a slightly higher vendor bill is usually cheaper than the attention it saves.

Total cost of ownership, honestly

The first version of a build vs buy proposal compares a vendor quote with the salaries of the people maintaining the home-grown thing. Both sides of that comparison are incomplete.

Cost line Build or keep Buy
Up-front design and build, in engineer-months integration, migration of every producer and consumer
Running engineers maintaining it, on-call, infrastructure licence or usage fees, the engineers who still own the integration
Transition none if you keep; a rewrite if you rebuild months of running both systems, two on-call rotas
Gaps none, you built what you need the features the vendor lacks, rebuilt on top and owned forever
Growth grows with your scale, often slowly grows with the vendor’s pricing metric, often linearly
Exit low; you own it data export, rewrite of the adapter, contract notice periods
Opportunity what those engineers would otherwise ship what the migrating engineers would otherwise ship

Two lines catch most teams. The gaps line: a vendor’s queue, identity service or search engine solves the general problem, and your home-grown version grew to solve yours. Whatever you built for your own business stays yours. The growth line: a vendor priced per message, per seat or per gigabyte can be cheaper today and dearer than building at three times the volume. Run the numbers at the volume in your plan, not the volume today.

Then add the cost that never appears in a spreadsheet. Dan McKinley’s “Choose Boring Technology” proposes that “every company gets about three innovation tokens”, a fixed budget of attention for new and unusual technology. Each home-grown system you keep spends one: someone has to understand it, monitor it and be paged for it. Each vendor you add spends a smaller amount, as another thing the team must learn to operate and debug. The honest version of the memo says which tokens it spends and which it frees.

Lock-in and the exit plan

Lock-in is not a reason to refuse a vendor. It is a cost to price and a risk to manage. The exit plan is the part of a buy decision you write before you sign, while you still have leverage.

An exit plan has four parts. Data: your records live in a store you control, or you have a tested export, and you know how long a full export takes. Interface: the rest of the codebase talks to the vendor through one adapter your team owns, so a switch rewrites one module rather than forty call sites. Contract: term length, notice period, a cap on renewal price increases, and what happens to your data on termination; your procurement and legal partners will help, but you must tell them what matters technically. Trigger: the conditions that would make you leave, written down, such as a price rise above a threshold or a reliability miss against the vendor’s SLA two quarters running.

Hohpe’s warning cuts the other way too. An adapter that hides every vendor-specific feature also hides the features you bought the vendor for. Wrapping a managed queue so thinly that it behaves like the lowest common denominator spends real engineering time to buy an option you may never exercise. The vendor-risk side of the same decision, what security inherits when you add a supplier, is covered in pentests, bug bounties and vendor risk.

Where practitioners disagree

Build bias against buy bias. One camp, often from companies that grew on open-source infrastructure, says buy or adopt everything that is not your product, because engineers are the scarcest resource you have. The other, often from companies that were burned by a vendor outage or a price rise, says own your critical path. Both are right about their own history. Spolsky’s essay is the best statement of the build side and is narrower than people remember: it defends building core functions, not everything.

Gate or advice. Some organisations run an architecture review board that approves designs before they ship. Others, following Andrew Harmel-Law’s description of the advice process, hold that “anyone can make an architectural decision”, provided they first seek advice from the people affected and the people with expertise, and record what they heard. A board gives consistency and a single place to see risk. It also creates a queue, and teams learn to present designs that pass the board rather than designs that solve the problem. The advice process gives speed and ownership, and depends on people seeking advice honestly. Most heads of engineering end up with the advice process for most decisions and a short list of decisions that need their sign-off.

Standardise or let teams choose. A tech radar that says “adopt one queue, one database, one language” saves on-call knowledge and hiring. A permissive one lets a team pick the right tool for an unusual problem. The cost of each extra technology is borne by the whole organisation, which is McKinley’s point; the cost of forcing the wrong tool is borne by one team, which is why teams argue for exceptions.

Governance that does not become a gate

The aim of architecture governance is that good decisions are made close to the work and the expensive ones get the scrutiny they deserve. Four mechanisms, each with a real name and a public description, cover most of it.

Architecture decision records. Michael Nygard’s 2011 post proposes a short document for each significant decision with five parts: title, context, decision, status and consequences. Status runs from proposed to accepted, and later to deprecated or superseded by a newer record. He is specific about size: “The whole document should be one or two pages long.” ADRs live in the repository beside the code. Their value arrives a year later, when someone asks why the system works this way and the answer is a file rather than a person who has left.

The advice process and an advisory forum. Harmel-Law pairs the advice process with an architecture advisory forum: a weekly, open, hour-long meeting where teams bring proposed decisions and spikes, and where the decision-maker keeps the decision while others advise. It is a place to see decisions, not to approve them. You attend some of them; the staff and principal engineers run it.

Principles and a radar. A handful of team-sourced principles, specific enough to rule options out, such as “we prefer managed services for anything that is not on our differentiating path”. And a technology radar in the format Neal Ford describes, with four rings: adopt, trial, assess and hold. Hold is the most useful ring for a head of engineering, because it is where you write down what new work should no longer start on.

Paved roads. The cheapest governance is a default that is easier than the alternative. A supported template that gives a new service its queue client, retries, idempotency keys and dashboards does more for consistency than any review. The security track’s chapter on champions and paved roads covers how to build one people choose.

Which decisions reach you? Jeff Bezos’s 2015 letter to Amazon shareholders splits decisions into Type 1, consequential and nearly irreversible, the one-way doors, and Type 2, which can be reversed cheaply. Most architecture decisions are Type 2 and belong with the teams. The ones you should see are Type 1: a new primary datastore, a vendor on the money or message path, a contract longer than a year, a home-grown system that someone proposes to replace. Write that list down and publish it. A head who reviews everything becomes the bottleneck; a head who reviews nothing finds out about the one-way door at the renewal.

Platform investment

A platform team builds internal products that other teams use: a deployment pipeline, a queue service, a developer portal. The decision to fund one is a build decision at organisational scale, and it follows the same model. Is the problem shared and undifferentiated? Several teams solving it badly in parallel is the signal. What does it cost? A team, typically four to six engineers as a rule of thumb, taken from product work for years. How hard is it to leave? Platforms are notoriously hard to retire, because something always depends on them.

Fund a platform as a product, not as a project. It has users, the other engineering teams; it has a roadmap shaped by their problems; and it is judged on whether they choose it. Voluntary adoption is the honest metric: if teams use the platform only because a policy forces them to, it is not saving them time. The platform, API and technical PM chapter covers how to measure a developer product and run deprecations. How platform teams sit beside stream-aligned teams in an organisation design is the subject of org design at 50, 150 and 500.

Two failure modes recur. The platform that eats the roadmap: a team funded to build a deployment pipeline that becomes a team of fifteen maintaining an internal cloud. Review each platform’s scope annually against the build vs buy model; what was core three years ago may be a commodity now. The platform nobody owns: a home-grown system built by a product team in the early days that now carries production traffic, has one expert, and appears on nobody’s roadmap. These are where the replace-or-keep decisions come from, and they usually arrive with an incident attached.

When the decision touches a mechanism

You do not need to design the replacement, but you need to ask the questions that expose a weak proposal. A queue is the usual example, because so many home-grown systems are queues.

Ask about delivery guarantees. Most managed brokers deliver at least once, so a consumer may see a message twice; is every consumer idempotent, and who checked? The idempotency lesson shows why at-least-once plus an idempotent handler is the best you can get. Ask about backpressure: what happens when consumers fall behind, where the backlog sits, and what the producer sees when it is full. The backpressure lesson explains why an unbounded queue is a slow crash, which is close to what happened to Slack. Ask about retries: who retries, with what backoff, and whether a vendor’s automatic redelivery will combine with your own retries into a storm, as in retries, backoff and jitter. For a datastore, the databases course’s choosing a database chapter has the decision framework.

The answers belong in the memo, written by the engineers. Your contribution is noticing when they are missing.

Day to day

Architecture governance is a small, steady part of the week, with a few large moments a year.

Weekly, about an hour. Read the new ADRs merged that week, thirty minutes, skimming for the Type 1 decisions and for teams solving the same problem twice. Attend the architecture advisory forum once or twice a month, mostly to listen; when you speak, ask about cost, exit and who will run it.

Monthly. Review the platform teams’ adoption and satisfaction numbers with their managers. Check the vendor renewal calendar at least 120 days ahead with finance and procurement, so no renewal arrives as a surprise with no time to negotiate or leave.

Quarterly. Refresh the technology radar with the staff engineers, moving at least one item to hold. Review the inventory of home-grown systems: owner, incidents in the quarter, engineers spending time on it. A system with rising incidents and falling ownership is next quarter’s build vs buy memo.

Two to four times a year. A build vs buy memo reaches you. Read it against the three questions, ask for the missing cost lines, send it back once if it needs it, then decide within a week. Record the decision as an ADR with a review date. Brief the CEO and CFO on any decision that changes spend materially or locks the company in for more than a year.

Annually. Re-examine each platform team’s scope as part of the plan, with the same honesty as a vendor renewal: what is it for, who uses it, and would you fund it today.

BY ORG SIZE
STARTUPunder 30 people

Buy or adopt almost everything that is not the product: managed databases, the cloud provider’s queue, hosted auth, hosted CI. The founding engineers’ innovation tokens belong on the thing customers pay for. Governance is a decisions file in the repository, a few lines per choice and why, kept because the people who made the choices will not all be there in two years. The trap is the clever home-grown system written in a weekend that becomes tomorrow’s critical path. If you build one, write down that you did and why.

SCALE-UP30 to 300

This is where the early decisions come due. The weekend queue now carries production traffic, has one expert, and has caused two incidents. Introduce ADRs and an advisory forum now, while everyone still knows each other, and publish the short list of decisions that need your sign-off. Fund the first platform team for a named shared problem, not a vision. Build vs buy memos start reaching you; expect the first few to compare a quote with two salaries, and send them back for the full cost lines.

ENTERPRISE300 and up

An architecture review board, enterprise architects, procurement and vendor-risk processes already exist. The problem is that they are slow and teams route around them. Your job is to shrink what needs approval to the real one-way doors and make everything else an advice process with records. Vendor contracts run to years and lock-in is negotiated in legal terms, so involve procurement early. Platform organisations are large and politically entrenched; judge each by voluntary adoption, and be willing to retire one, which nobody else will propose.

ARTEFACT Write a build vs buy memo ~60 MIN
YOU PRODUCEBuild vs buy memo

Template

# Build vs buy: <capability>
Author · Date · Decision owner · Decide by: <date>
Status: draft | in review | decided (ADR-<n>)

## Decision
<One sentence: what we are choosing between, and why now.>

## Is it core?
<Does this capability make customers choose us? Yes / no / partly, and why.
If partly, which part is core and which is commodity.>

## What it must do
- MUST <requirement, including the ones the current system meets that nobody wrote down>
- SHOULD <requirement>
- Volume today: <n>. Volume in the plan, 3 years: <n>.

## Options
1. Keep and maintain what we have
2. Build or rebuild
3. Buy <vendor or class of vendor>
4. <Hybrid, if there is one>

## Cost over three years
| Line | Keep | Build | Buy |
|---|---|---|---|
| Up-front (eng-months, £) | | | |
| Running per year | | | |
| Transition (running both) | | | |
| Gaps rebuilt in-house | | | |
| At planned volume | | | |
| Three-year total | | | |
Loaded cost per engineer used: <figure and source>.

## Risk and lock-in
- Lock-in type(s) and switching cost for each option
- Exit plan for the recommendation: data, interface, contract, trigger
- Operational risk during the transition

## Recommendation
<Option, in two or three sentences. What it costs and what it frees.>
First reversible step: <what we do first, and the gate after it>
Sensitive to: <assumptions that would change the answer>
Review on: <date>

## Advice sought
| Who | Why them | What they said |
|---|---|---|
WORKED EXAMPLE

Oakmoss is a fictional UK payouts company that pays couriers and drivers their earnings on behalf of gig-economy marketplaces. It has 260 people, 90 engineers in 12 teams, 3.1 million active payees and 1.4 million payouts a day, and it is regulated as an e-money institution. The head of engineering asked the payments platform lead for this memo after an audit finding.

Decision. Keep, rebuild or buy our sanctions screening; the head of engineering decides by 30 June. Why now: last year a list update reached our matcher three days late and the auditor raised it; the matcher produces 2,300 alerts a week, almost all false, reviewed by four analysts.

Is it core? No. Marketplaces choose us for payout speed and coverage. Screening is a regulatory obligation every payments firm meets in much the same way.

Cost over three years (up-front work plus three full running years, so 3.1 to 3.5 years in all; loaded engineer cost £130k, Oakmoss finance figure; analyst time is excluded here and priced under the recommendation). Keep and patch: fix the list feed, one engineer for a month, £11k, then 0.5 engineers, £65k a year: £206k, but the 2,300 weekly alerts and the matcher the auditor criticised both remain. Rebuild: 4 engineers for 6 months, £260k, then 1.5 engineers, £195k a year, plus £20k infrastructure: £905k. Buy: integration by 2 engineers for 3 months, £65k; 0.5 engineers to own it, £65k a year; vendor at £0.06 per payee per year. At today’s 3.1m payees that is £186k a year and £818k in total. At the plan’s 30% annual growth, 3.1m, 4.03m then 5.24m payees, the fees are £186k, £242k and £314k, and the total is £1,002k, about £100k more than rebuilding.

Recommendation: buy, and accept the premium. A two-week trial on a copy of our payee data cut alerts from 2,300 to about 600 a week, which would free two analysts for transaction monitoring, worth about £110k a year at finance’s loaded analyst cost. That alone outweighs the £100k premium over three years; a rebuild could match it only after its six-month build, and only if it reaches the vendor’s matching quality. The vendor updates lists within hours, which closes the audit finding this quarter rather than after a six-month build. The rebuild’s figure assumes we reach the vendor’s matching quality, which nobody here has done; it is the least certain number in this memo. And the four engineers a rebuild needs go to payout speed instead, which is what customers buy.

Lock-in and exit. Vendor and legal lock-in; switching would take two engineers about a quarter. Payee records and every screening decision stay in our database, and the vendor is called through one adapter. Twelve-month term, renewal increases capped at 7%. We leave if the vendor misses its list-update SLA two quarters running.

Sensitive to. Payee growth above 30% a year widens the premium; above 5m payees we renegotiate the per-payee price. A worse match rate on live data than in the trial removes the analyst saving.

First step. Run the vendor beside the old matcher for six weeks and compare every alert. Review on 31 March next year. Advice taken from the compliance lead, the payments-ops manager and security. Recorded as ADR-041.

Now you

You are VP Engineering at Pinecrest, a fictional business messaging company: 80 people, 26 engineers in 4 teams, sending 18 million SMS, WhatsApp and email messages a day for 2,600 business customers. Your observability vendor’s bill is $310,000 a year, up from $120,000 two years ago, mostly because log volume grew with message volume. The contract renews in four months, and the vendor offers 25% off for a three-year commitment. A senior engineer proposes self-hosting an open-source metrics, logs and tracing stack and estimates it would take 1.5 engineers to run; two of the platform team’s four engineers already spend most of their time on the in-house message queue. The CFO wants a recommendation before the renewal conversation. Write the build vs buy memo. It must cost at least three options over three years at the volume in your plan, say what a three-year commitment does to your exit, and deal with the option of reducing log volume before choosing either.

Self-check

DECIDE

You are VP Engineering at Pinecrest: 26 engineers, 18 million messages a day. Courier, the queue built in 2019 on Redis, holds per-customer rate limits and carrier retry logic. It caused five sev-2s this year, and in March a failover lost about 40,000 messages, including one-time passcodes. Two of the four platform engineers spend most of their time on it. A vendor quotes $140,000 a year for a managed queue; migration is estimated at three engineers for two quarters. The staff engineer who wrote Courier opposes the move; the CEO has met the vendor. What do you approve?

READING
  1. BOOK
    The Software Architect Elevator Gregor Hohpe, 2020

    How an architect, or an engineering executive, connects the business strategy with the engine room. The options chapter gives you the language for what an exit plan or an adapter buys and what it costs. Read: Part II, especially chapter 9, 'Architecture Is Selling Options'.

  2. POST
    In Defense of Not-Invented-Here Syndrome Joel Spolsky, 2001

    The case for building your core functions yourself, with the Excel team's own compiler as the example. Read it for the line between core and everything else, which is narrower than people quoting it remember.

  3. POST
    Documenting Architecture Decisions Michael Nygard, 2011

    The original proposal for architecture decision records: five sections, one or two pages, kept in the repository. Short enough to read before you set up the practice.

  4. POST
    Don't get locked up into avoiding lock-in Gregor Hohpe, 2019

    The types of lock-in, why switching cost matters only with the likelihood of switching, and why avoiding lock-in has a price. Read it before writing the exit plan section of a memo.

  5. POST
    Choose Boring Technology Dan McKinley, 2015

    The innovation-tokens argument: every new technology carries an operating cost the whole organisation pays. The best short case for a restrictive tech radar.

  6. POST
    Scaling the Practice of Architecture, Conversationally Andrew Harmel-Law, 2021

    The advice process, the architecture advisory forum, team-sourced principles and a local tech radar, described by someone who ran them. The working alternative to a review board.

  7. POST
    Build Your Own Technology Radar Neal Ford, 2016

    What the four rings mean and how to run a company radar once or twice a year. Use it to set up the quarterly refresh in the day-to-day section.

  8. POST
    Scaling Slack's Job Queue Slack Engineering, 2017

    A home-grown Redis queue that locked up in an outage, the options the team weighed, and why they put Kafka in front rather than replacing everything. A model of the staged migration the Decide recommends.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Owning reliability, security and compliance as a leader →