Build vs buy (and AI vendor selection)

In one sentence

Build only what differentiates you or what no vendor can do under your constraints; buy the rest. In AI that usually means buy the models, build the evals, data and integration.

Analogy: A restaurant buys its ovens and its flour but never outsources the recipes: the recipes are why people come.

Default to buy; build only differentiators you can staff for years, or when no vendor passes your evals and constraints.

How it works

  • The default is buy; building needs a reason, such as differentiation a customer would notice or pay for.
  • Compare total cost of ownership over ~3 years: on-call, upgrades and people who leave are the real bill.
  • Also weigh team skills over years, vendor lock-in, and data control: residency, retention, training on your data.
  • Run the POC on a few hundred of your real cases, identical for every option, not the vendor's benchmark.
  • Write the exit strategy before you sign, and keep models behind a gateway so they stay swappable.

Check yourself

Answer to mark it learned; your answers aren't scored.

Your build-vs-buy matrix for AI answers over the help center gives Vendor A the highest weighted score, mostly on time to market. Its POC also shows it can't keep data in the EU, one of your must-pass constraints. The PM wants to sign. What do you recommend?

Go deeper

Full explanation

Build vs buy is deciding whether your team builds a capability or adopts a vendor's (SaaS, API, or open source with support). The default is buy; building needs a reason.

Score each option on:

  • Differentiation — would a customer notice, or pay more, if yours were better than a competitor's? If not, it's utility: buy it.
  • Total cost of ownership — build + run + maintain. Year one is the cheap part; on-call, upgrades and the people who leave are the real bill.
  • Time to market and team skills — can you staff it for years, not just for the launch?
  • Vendor risk and lock-in — viability, pricing power, how hard it is to leave.
  • Data control and compliance — residency, retention, training on your data, audit rights.

AI specifics. Frontier models and inference APIs are almost always buy: you won't out-train a lab, and per-token prices keep falling. Your moat is what the vendor can't sell to your competitor: evals on your tasks, proprietary data and feedback loops, and integration into your workflows and permissions.

Vendor evaluation is a POC on your eval set (not their benchmark), a security and privacy review, and a written exit strategy before you sign. Record it in an Architecture Decision Records (ADRs) entry.

Code Decision matrix template with vetoes
yamlDecision matrix template with vetoes
# Build vs buy matrix: weights sum to 100, scores 1-5
decision: "AI answers over the help center"
options: [build_on_api, vendor_a, vendor_b]
must_pass:            # vetoes: fail one and the score is irrelevant
  - security_review
  - data_residency: EU
  - no_training_on_our_data
  - export_of_our_data
criteria:
  - {name: differentiation,      weight: 20, build_on_api: 4, vendor_a: 2, vendor_b: 2}
  - {name: quality_on_our_evals, weight: 20, build_on_api: 4, vendor_a: 4, vendor_b: 3}  # POC, not their benchmark
  - {name: tco_3_years,          weight: 20, build_on_api: 3, vendor_a: 4, vendor_b: 3}  # build + run + maintain + people
  - {name: time_to_market,       weight: 15, build_on_api: 2, vendor_a: 5, vendor_b: 4}
  - {name: data_control,         weight: 10, build_on_api: 5, vendor_a: 2, vendor_b: 3}
  - {name: lock_in_exit_cost,    weight: 10, build_on_api: 4, vendor_a: 2, vendor_b: 2}
  - {name: team_skills,          weight: 5,  build_on_api: 3, vendor_a: 5, vendor_b: 5}
exit_plan: "Behind our gateway interface; weekly export; migration estimate in weeks"
decision_owner: "Director, Support Engineering"
revisit_when: [price_change, deprecation_notice, eval_regression]
Real example

A support org wants AI answers over 40k help articles. Options: Vendor A (managed RAG), Vendor B, or building retrieval on a model API. A two-week POC runs the same 300 real tickets, with graded answers, through all three. Vendor A wins on time to market but fails a must-pass: no EU data residency. Vendor B scores below the in-house build. Decision: buy the model API, build retrieval and the eval harness — the parts tuned to our articles — behind a gateway so the model stays swappable. The ADR names the revisit trigger: a vendor with EU residency that beats us on the same 300 tickets.

Trade-offs +3 · −3

+ You gain

  • Forces an explicit TCO and exit plan instead of a gut call.
  • Concentrates scarce engineers on the few things that differentiate.
  • A POC on your own evals turns vendor marketing into comparable numbers.

− You pay

  • Weights can be tuned to justify a decision someone already made.
  • Buying still costs: integration, vendor management and a dependency you don't control.
  • A proper POC takes weeks of engineering before anything ships.

Use it when

Any capability that will take more than a few engineer-months to build or will run for years, and any AI vendor that will see customer data.

Avoid it when

Cheap, reversible experiments: a two-day spike with an API key needs no matrix. And it doesn't replace strategy — decide what differentiates you first.

Numbers to know 2
  • Rule of thumb: compare TCO over ~3 years, including the people who run it, not just the first build.
  • Rule of thumb: run the POC on a few hundred of your real cases, identical for every option.
Common pitfalls 4
  • Comparing the vendor's price with only the build cost of your version, forgetting run and maintain.
  • Choosing a vendor on its public benchmark instead of a POC on your own data.
  • No exit plan: vendor SDK calls scattered everywhere turn switching into a rewrite. Put vendors behind an LLM gateway or interface.
  • Not-invented-here: building a commodity (auth, vector DB, observability) because it's fun.
Interview questions 3

Answer out loud first, then reveal.

How do you decide whether to build or buy an LLM capability?Show answer

I start with differentiation: would a customer notice if ours were better? If not, I default to buy. Then I compare three-year TCO — build, run and maintain, including on-call and people — against vendor cost plus integration. For AI, I almost always buy the model and build what's specific to us: the eval set, the data pipeline and the integration. The trade-off I name explicitly is lock-in, so I put the vendor behind a gateway and write the exit plan before we sign.

Walk me through how you'd evaluate an AI vendor.Show answer

Three gates. First, must-pass constraints: data residency, no training on our data, retention terms, security certifications. Second, a time-boxed POC on our own eval set — real cases with expected outputs — run identically against every option, including a simple in-house baseline. Third, an exit review: how do we get our data out, and what does switching cost? I present a scored matrix, but the vetoes and eval results usually decide; the weights mainly make the trade-off visible to everyone.

Tell me about a time you argued against building something.Show answer

Our platform team wanted to self-host a vector database because the managed bill looked high. I asked for full TCO: the managed bill versus two engineers part-time on upgrades, backups and on-call. Building only looked cheaper if people were free. We bought, wrapped it behind our retrieval interface and set a revisit trigger on data volume. The trade-off I accepted was less control over index tuning; we kept the option to migrate because no service called the vendor SDK directly.