LEADCHAPTER 13

The principal and the business: build vs buy, vendors, the frontier

The company bets money and years on your technical judgement: test vendors on your own workload and failure modes, adopt new technology where the old one measurably stops, and say what each bet risks in the business's terms

45 MINSTAFF AND PRINCIPAL ENGINEERUPDATED 2026-11-07
PREDICT

Your team's evaluation spreadsheet scores Vendor A 4.2 and Vendor B 3.9 out of 5, across 40 weighted criteria. Which is most likely to be true?

At principal level you are judged, in the words of this track’s ladder, on bets the company made on your advice. Some of those bets are architecture inside the company. Many are not: they are decisions to buy rather than build, to sign a three-year contract with a supplier, or to move a system onto a technology that did not exist when the system was written. These decisions are made by executives with budgets. They are made well when someone who understands the technology tells them, in their terms, what each option risks.

This chapter is about that role: the technical due diligence behind build vs buy, the vendor evaluation, and how to say yes or no to the new thing everyone is excited about.

Your part in a business decision

A build vs buy or vendor decision has several owners, and the first mistake is to try to own all of it.

Part Usual owner Where it is taught
The decision, the budget, the build vs buy memo Head of engineering or CTO Architecture governance and platform investment
The spend line and the renewal calendar Head of engineering with finance Headcount, budget and cost
The vendor’s security posture and contract clauses Security, legal, procurement Pentests, bug bounties and vendor risk
Whether the thing does what it claims, under your load, when it fails, and how hard it is to leave You This chapter

The last row is the one nobody else can do. A head of engineering can cost a migration; a principal can tell them whether the migration estimate is fantasy. Procurement can negotiate a price cap; you can tell them the pricing metric that will hurt at next year’s volume. Security can read a SOC 2 report; you can tell them that the integration needs a token with write access to production. Your output is evidence, written so a non-specialist can decide on it.

You are counsel, not the decider. That cuts both ways. You do not get to block a purchase because you would have built it, and the CFO who asks why the vendor is cheaper than two engineers is not being naive; the question is fair and deserves numbers. But if the evidence says the vendor will lose messages under failover, you say so plainly and in writing, even when the CEO has already met their sales team.

Build vs buy: the technical half

The head of engineering track’s chapter on architecture governance and platform investment teaches the frame: is it core, what does each option really cost over three years, and how hard is it to leave. It leans on Joel Spolsky’s “In Defense of Not-Invented-Here Syndrome” for the first question and Gregor Hohpe for the third. Apply it; do not re-derive it. What the memo most often lacks are four technical inputs, and you supply them.

The requirements as numbers. “We need a queue” is not a requirement. Events per second at today’s peak and the plan’s peak, the size of a message, how long it must be kept, whether a duplicate is harmless, what a lost message costs. The databases course’s workload profile is the right shape for a datastore and works for most infrastructure.

The gaps. Your home-grown system grew features for your business: per-customer rate limits, a retry rule for one awkward partner, an audit field compliance asked for. The vendor solves the general problem. List every behaviour of the current system and mark which ones the vendor does, which you rebuild on top, and which you lose. This list is usually longer than the sponsor expects, and it is the line that turns “cost-neutral” into a real number.

The switching cost. Hohpe’s essay “Don’t get locked up into avoiding lock-in” says “Lock-in isn’t an all-or-nothing affair” and prices it as “the product of switching cost times the likelihood that it occurs”. You estimate the switching cost: in engineer-weeks, with the reasoning, for data, interfaces and the people who know the tool. Hohpe also warns that “Complexity can be the biggest price you pay for reducing lock-in.” An adapter so generic that it hides every feature you bought the vendor for is an option you paid for and will probably never exercise.

The operating reality. Who is paged when it breaks, what they can see, and what they can do about it. With a vendor, the answer to the third question is often “open a ticket”, and you need to know how fast that ticket moves before you sign.

There is a related case the memo does not cover. Marc Brooker’s essay “The Builder’s Guide to Better Mousetraps” is about building something new that resembles a thing that already exists, which he calls “related to, but distinct from, the classic build vs buy decision.” His questions are a good test for any proposal to build. Two matter most at your level. “Is the juice worth the squeeze?”: would the benefit outweigh the cost if the project went perfectly? And “Do I want to own this?”, because “Often, the majority of the cost of building something is in long-term operations and maintenance.” He is candid that he leans towards building, and argues that most advice “over-emphasizes the short-term risks of innovating too much, and under-emphasizes the long-term risks of innovating too little.” Hold both ideas. Your job is not to say no to building. It is to make sure the people saying yes have seen the full bill.

Evaluating a vendor

Once the decision is to buy, the question becomes which vendor, and that is technical due diligence. A good evaluation runs in this order.

1. Requirements before vendors. Write the numbers, then split them into must-haves and should-haves before any sales call. A must-have is a gate: data residency in a market you serve, a delivery guarantee your consumers depend on, a protocol your clients speak. Fail one and the vendor is out, whatever else it does well. Should-haves can be weighed. The Predict above shows why: a 40-row weighted scorecard lets strong marks on dashboards outvote a failed guarantee.

2. Read the guarantees, not the brochure. Find the documentation of consistency, durability, ordering and delivery semantics, and write each down in one sentence with a link. “At-least-once delivery; duplicates possible after a broker failover” is a guarantee. “Enterprise-grade reliability” is not. Look for outside evidence too. Jepsen, which “aims to improve the safety of distributed databases, queues, consensus systems, etc.”, publishes free analyses of whether systems meet their documented claims; if your candidate has one, read it before the sales call, not after. The lessons on idempotency and consistency models cover what the guarantees mean.

3. A proof of concept on your workload. A vendor’s benchmark is a hypothesis. Brooker’s “Better Benchmarks Through Graphs” points out that standard database benchmarks “are known to be poorly representative of real-world workloads”, mostly because they are far easier to partition than real traffic. Record a real peak period and replay it at two to three times speed, a rule of thumb that covers a year of growth and a bad day. Measure the latency percentiles you care about, not the average.

4. Break it on purpose. Kill a node or a zone if the vendor lets you, throttle a consumer, exceed the quota, rotate a credential. Watch what the system does and what your code does. Overload is the test that most separates vendors. Brooker’s essay on DynamoDB’s predictability makes the case for systems that turn excess load away cleanly: “Rejections are a clear leading signal of excess load.” A system that slows down until it falls over gives you no such signal.

5. Test the support. During the trial, open a real ticket at the severity you would use in an incident and time the answer. Note whether it came from an engineer who understood the question. You will need this team at 3 a.m. one day; find out now who answers.

6. Price at the plan’s volume. Find the pricing metric, per request, per gigabyte, per seat, per throughput tier, and run it at today’s volume and at the plan’s volume in two years. A per-gigabyte vendor can be cheaper today and dearer next year than a flat-tier one. Include the tier you need for your real peaks, not your average.

7. Read the vendor’s business. Why is this offered at this price? Spolsky’s “Strategy Letter V” explains that “Smart companies try to commoditize their products’ complements”: a free tier, a free first year or an open-source core is a business strategy, and you should know which one you are inside. Ask how the vendor makes money from you in year three, how long it has been selling the product, and what happens to your data if it is acquired or shuts the product down.

8. Write the exit before you sign. Where your data lives, how long a full export takes, how many call sites talk to the vendor, and what would make you leave. Then hand the security and contract questions to their owners with your technical list attached: token scopes, data stored, breach-notification needs, renewal caps.

Where evaluations go wrong

The demo evaluation. A sales engineer shows the happy path on their data. Nobody asks about late callbacks, failover or quotas, because nothing in the demo prompts the question. Bergamot’s aggregator is this failure.

The champion’s evaluation. An engineer who already wants the product runs the evaluation and, without meaning to, tests what it does well. Pair the champion with a sceptic, or give the failure tests to someone who did not choose the shortlist.

The asymmetric evaluation. The incumbent is judged by its incident history and the challenger by its brochure. Every system looks better before you have run it. Compare the incumbent’s real record with the challenger’s tested behaviour, not its marketing.

The scorecard that hides a gate. Covered above. Gates first.

The frontier

Every year brings a new database, queue, runtime or model that some of your best engineers want to adopt. They are not wrong to be excited, and you should not be the person who reflexively says no. Nor should you be the person who says yes because the conference talk was good.

Two well-known arguments pull in opposite directions. Dan McKinley’s “Choose Boring Technology” proposes that “every company gets about three innovation tokens”, and that “Adding technology to your company comes with a cost.” The value of boring technology, he writes, is that “their failure modes are well understood.” Spolsky’s “Don’t Let Architecture Astronauts Scare You” is the older warning against grand abstractions sold as revolutions that let nobody do anything new. Against both stands Brooker’s point about the long-term risk of innovating too little. A company that never adopts anything new pays later, in a rewrite it cannot avoid.

A workable policy has three rules.

New technology goes where the old one measurably stops. Not “Postgres will not scale” but “the field-ops dashboard query scans 9 TB and takes 40 seconds.” If the current system serves a workload with room to spare, a new one adds an operating cost and buys nothing. The databases course shows how to find where Postgres stops with numbers.

It moves in stages with exit criteria. The Thoughtworks Technology Radar sorts technologies into four rings: adopt, trial, assess and caution. Use the same stages inside your company. Assess is reading and a spike. Trial is a bounded pilot on a reversible workload, behind an adapter, with the criteria for stopping written before it starts. Adopt is the default for new work, with a named owning team and on-call. Each move is a decision with a date, recorded as an ADR.

It never goes first on the system of record for money. Payments, balances, ledgers and credits are where an unknown failure mode costs customers directly. A new technology earns that place by running something less critical for long enough that its failures are known to you, not to its vendor.

The AI frontier

Choosing an AI model is a vendor evaluation with a short half-life, and the same rules apply. The AI Engineering course’s choosing a model chapter makes the parallel points: a leaderboard rank is not evidence about your task, cost has to be measured per task on your own traffic, and data handling and residency are a gate. It also shows why the evaluation must be repeatable: providers retire models on their own schedule, and the chapter cites Anthropic’s commitment of at least 60 days’ notice, so re-evaluation has to be a script, not a project. Building an eval set and evals in CI cover how to build that script. Your part as principal is to insist the company has one before it bets a product line on a model, and to frame the hosted or open-weights choice as a lock-in and operations decision, not a price-per-token comparison.

Translating for the business

An executive cannot use “eventually consistent with at-least-once delivery.” They can use “after a failover, about three in a thousand tracking updates may reach a customer twice, and two of our services would double-count them unless we fix them first; the fix is two weeks.” Translate every technical risk into what a customer sees, how often, and what it costs.

Give each recommendation a confidence and a reversal. “I am confident on latency, we measured it; I am not confident on support, we have one ticket’s worth of evidence; if support misses its response time twice in the first quarter we switch, which costs about six engineer-weeks.” That sentence lets a CFO decide without trusting you blindly. Influence and executive communication covers the memo that carries it.

Then keep score. You are judged on bets the company made on your advice, so keep a log of them: the recommendation, the date, what you expected, and a review date. Read it once a year. It is the only honest way to calibrate, and it is the evidence for your own judgement when someone asks why they should trust it.

Where practitioners disagree

Boring by default, or innovation as a duty. McKinley’s camp says spend innovation tokens only on the product. Brooker’s camp says the larger long-term risk is innovating too little. Both describe real failures: the company running five half-understood databases, and the company that cannot hire because its stack is ten years stale. The staged radar is the compromise most companies land on.

Scorecards or narratives. Weighted scorecards look objective and are easy to game. Narrative evaluations, a written argument from evidence, are harder to compare across vendors. A common middle is gates, a short table of measured results, and a page of argument.

Should principals talk to vendors at all? Some companies keep engineers away from sales teams so procurement keeps leverage. Others want principals in the room so technical claims are challenged live. Take the technical meetings, ask for an engineer rather than a sales engineer, and let procurement own every conversation about price.

Day to day

Weekly. Some of your week goes on questions from the business: a product leader asking whether a partner’s API can carry a launch, a finance partner asking why a vendor bill grew, an engineer asking whether a new library is allowed. Most are thirty-minute answers. A few become evaluations; say which ones early, so nobody treats a hallway yes as a decision.

Per evaluation, two to six weeks. A week on requirements and guarantees, one to three weeks of proof of concept and failure tests, a week to write. You run it with one or two engineers from the team that will own the result, not alone; they will operate it and they should have seen it break. The decision meeting is short because the document went out three days earlier.

Quarterly. Review the technology radar with the other staff and principal engineers; move at least one item, in either direction. Read the vendor renewals due in the next two quarters with the head of engineering and flag any where usage, price or reliability has changed enough to re-evaluate.

Annually. Read your decision log. For each bet a year old or more, write two lines: what happened against what you expected, and what you would do differently.

On demand. When a vendor has an incident that hurts you, read its postmortem as closely as one of your own, and check the trigger conditions in your exit plan. When a deprecation or price-change notice arrives, rerun the evaluation script before anyone schedules a meeting.

BY ORG SIZE
STARTUPunder 30 people

There is no principal. The CTO or a founding engineer makes these calls, often in an afternoon. Buy almost everything that is not the product, and keep a decisions file in the repository saying what you chose and why. The evaluation is a two-day spike against your real data, not a scorecard. The frontier is most tempting here, because the team is small and the new database looks fun; spend one innovation token at most, on the thing customers pay for. The real risk is the free tier that becomes the critical path with nobody having read its terms.

SCALE-UP30 to 300

The first staff engineers arrive, and so do the first contracts worth more than an engineer’s salary. Early home-grown systems now carry production and their authors are leaving. This is when to write the evaluation template, introduce the radar, and insist on failure tests before signing. You will often run the evaluation yourself with one engineer. Expect a build vs buy memo every quarter and a vendor renewal every month; agree with the head of engineering which ones you see.

ENTERPRISE300 and up

Procurement, vendor risk, legal and an enterprise architecture function already exist, and existing enterprise agreements make some vendors the path of least resistance. Vendors court principals directly. Your job is to keep evaluations honest and fast: technical gates that procurement respects, proofs of concept that are not run by the vendor, and an exit plan that survives a three-year term. Politics is real: a rejected vendor may have an executive sponsor. Write the evidence so it stands on its own.

ARTEFACT Write a vendor evaluation ~75 MIN
YOU PRODUCEVendor evaluation

Template

# Vendor evaluation: <capability>
Author · Date · Decider: <name> · Decision by: <date>
Build vs buy memo: <link> · Owning team: <team>

## Requirements
| # | Requirement (number or condition) | Must or should | Source |
|---|---|---|---|

## Shortlist
- <vendor>: why it is on the list
- Excluded: <vendor> — the gate it failed

## Guarantees, from the documentation
| Property | Vendor A | Vendor B | Link / outside evidence |
|---|---|---|---|
| Durability | | | |
| Ordering and delivery | | | |
| Behaviour under overload | | | |

## Proof of concept
Workload: <recorded traffic, period, replay speed>
| Measure | Vendor A | Vendor B | Requirement |
|---|---|---|---|

## Failure tests
| Test | What the vendor did | What our code did |
|---|---|---|

## Support test
<severity, time to first useful answer, who answered>

## Cost
| | Today's volume | Plan volume (<date>) |
|---|---|---|
| Vendor A | | |
| Vendor B | | |

## Vendor health and business model
<how they make money from us in year three; product age; what happens on acquisition>

## Exit
Data: <where it lives; export time> · Interface: <call sites, adapter>
Switching cost: <engineer-weeks> · Leave if: <triggers>

## Handed to security, legal, procurement
- <technical facts each needs>

## Recommendation
<choice> · Confidence: <high / medium / low, per area>
Conditions: <what must happen first>
What would change this: <evidence>
Review on: <date>
WORKED EXAMPLE

Dill is a fictional B2B shipment-tracking API for logistics firms: 70 people, 30 engineers in five teams, 340 customers. It ingests 45 million carrier events a day from 180 carriers, about 520 a second on average and 2,100 at the Monday-morning peak; when a carrier reconnects after an outage and sends its backlog, bursts have reached 5,800 a second, twice last year. The plan expects 72 million a day next year. The build vs buy memo already decided to replace the self-hosted Kafka, which costs the four-person platform team about 1.5 engineers. Wen, a staff engineer, wrote this evaluation; Halima, VP Engineering, decides.

Gates. Kafka protocol, including transactions, which the data team’s connector uses; region in Dill’s cloud region; 7-day retention; no data loss on a zone failure. Vendor B supports transactions only in preview, so it fails a gate today. Wen kept it in the tests because the vendor promises general availability this quarter, but the recommendation does not count on that.

Guarantees. Both document at-least-once delivery; Vendor B’s documentation states that duplicates are possible after a broker failover. Neither has a Jepsen analysis, so the failure test carries the weight.

Proof of concept. A recorded peak day replayed at three times peak, about 6,300 events a second. Vendor A: p99 produce latency 38 ms, no throttling. Vendor B: throttled at 5,000 a second on the quoted tier, p99 210 ms near the limit.

Failure test. Zone failure: Vendor A consumers resumed in 40 seconds, no loss, no duplicates seen. Vendor B lost nothing but redelivered 0.3% of events, and two Dill consumers, the usage counter behind billing and the ETA notifier, are not idempotent. They get fixed either way.

Support. A sev-2 ticket: Vendor A answered in 25 minutes with an engineer; Vendor B in 9 hours, with a templated reply.

Cost. Vendor A charges per gigabyte: $114k a year today, $182k at 72 million events a day. Vendor B needs the next tier for backlog bursts: $120k a year at both volumes. Over two years A costs $56k more.

Exit. Both speak Kafka; the system of record is Postgres plus an object-storage archive, so data lock-in is low. Switching is about two engineers for three weeks.

Recommendation. Vendor A, the only vendor through every gate, with high confidence on latency and failover and medium on support (one ticket). The $56k buys a passed gate, headroom for backlog bursts and an engineer on the phone. Condition: fix the two consumers before cut-over. Would change: Vendor B shipping transactions and passing the same tests. Review on renewal, in 12 months.

Now you

You are a principal engineer at Bergamot: 800 people, 150 engineers, 1.2 million solar home systems in four countries, 2 million planned in two years. Each device reports every 15 minutes over GSM, about 115 million messages a day, and receives unlock codes when its owner pays. The in-house device gateway, written in 2019, has one remaining expert. The CTO, Ursula, has approved buying a managed IoT connectivity platform and wants your evaluation of the two shortlisted vendors in six weeks. Complications: one of the four countries requires customer data to stay in-country, and Vendor B has no region there yet. About 360,000 devices, 30%, run old firmware with Bergamot’s own binary protocol, and over-the-air updates are slow and sometimes brick a device. Vikram, the firmware lead, prefers Vendor A, which he used at a previous job. Write the vendor evaluation. It must treat residency and the old firmware as gates or explain why not, include a failure test of an unlock code during a vendor outage, and cost both vendors at 2 million devices.

Self-check

DECIDE

You are a principal engineer at Bergamot: 800 people, 150 engineers, 1.2 million devices, about 900,000 mobile-money payments and 115 million telemetry readings a day, all on a Postgres cluster. The telemetry tables hold 9 TB and the field-ops dashboard query takes 40 seconds. Tariq, the data platform tech lead, proposes moving telemetry, payments and the credit ledger to a distributed SQL database that reached 1.0 eight months ago. Three of his engineers came back excited from its conference, and the vendor offers the first year of its managed service free. Ursula, the CTO, asks for your recommendation.

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

    Lock-in as switching cost times likelihood, the many kinds of lock-in, and why avoiding it has a price, often paid in complexity. Read it before writing the exit section of an evaluation.

  2. POST
    The Builder's Guide to Better Mousetraps Marc Brooker, 2024

    A written set of questions for deciding whether to build something that resembles what already exists, from an engineer who admits a bias towards building. The best counterweight to reflexive no.

  3. POST
    DynamoDB's Best Feature: Predictability Marc Brooker, 2022

    Why behaviour under overload matters more than peak speed when you choose a system. It explains what to look for in the failure tests of a proof of concept.

  4. POST
    Choose Boring Technology Dan McKinley, 2015

    Innovation tokens and the company-wide cost of each new technology. Read it as the case for a high bar, then read Brooker as the case against setting it too high.

  5. POST
    Don't Let Architecture Astronauts Scare You Joel Spolsky, 2001

    The classic warning against grand abstractions sold as revolutions. The test it offers, whether the thing lets anyone do something new, still works on conference talks.

  6. DOC
    Jepsen analyses Jepsen

    Independent tests of whether databases, queues and consensus systems meet their documented safety claims. Check here for your candidate before you trust its guarantees page.

  7. DOC
    Technology Radar Thoughtworks

    A twice-yearly public radar with four rings, adopt, trial, assess and caution. Useful for its entries, and more useful as a model for staging new technology inside your own company.

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: AI in technical strategy: agents in the codebase and what to standardise →