Why This Matters at Engineering Leadership Scale
Strong engineers enjoy building clean systems from scratch. When a product needs multi-tenant RBAC, SAML SSO, audit logging, or feature flags, the default pitch is often: "We can build v1 in three weeks and save $50,000 a year in SaaS fees."
That math ignores the true lifecycle cost. A three-week prototype turns into months of identity-provider edge cases, SOC2 fixes, dependency patches, 2:00 AM pages, and a full-time engineer permanently diverted from revenue features. Over three years, a "free" internal build routinely costs 3x to 5x more than a vendor.
Conversely, buying a vendor for your core business differentiator creates rigid pricing ceilings and painful lock-in. Engineering leaders replace gut-feel debates with a transparent Build vs. Buy Framework anchored in core differentiation and 3-Year Total Cost of Ownership (TCO).
Core Mental Model & Framework
Evaluate every capability on two axes: Strategic Differentiation (do customers pick you because of this subsystem?) and 3-Year TCO (loaded build + maintenance + on-call + infra vs. licenses + thin adapter + exit reserve).
| Dimension | Build Custom In-House | Buy Commercial SaaS (Wrapped) | Self-Host Open Source (OSS) |
|---|---|---|---|
| Strategic Fit | Core proprietary IP that wins deals | Commodity or compliance-heavy (SSO, billing, audit logs) | Standardized infra where data residency forbids SaaS |
| Time to Live | 3 to 9 months | 1 to 4 weeks | 4 to 10 weeks (HA, backups, ops) |
| Hidden Ongoing Tax | 0.5 to 2.0 FTE/yr permanently | Renewal price hikes; API limits | 0.3 to 1.0 FTE/yr upgrades & CVEs |
| Typical 3-Year TCO | $900K to $1.6M | $180K to $450K | $350K to $750K |
| Primary Mitigation | Build only if core IP | Wrap in thin internal adapter | Pin LTS; budget honest ops FTE |
Apply the Core Differentiation Rule: if customers buy your product specifically for this capability (proprietary pricing engine, core workflow AI), Build. If customers simply expect it to work securely (SSO/SCIM, transactional email, audit streaming), Buy unless regulatory constraints or extreme unit economics dictate otherwise.
Step-by-Step Implementation Tutorial
- Write a 1-Page Requirements & Compliance Bar First: Lock top 5 functional needs, SOC2/residency rules, 3-year volume forecasts, and SLA targets before talking to vendors.
- Calculate Loaded 3-Year TCO for All 3 Options: Never price salaried engineers at $0. Use fully loaded annual FTE cost (e.g., $220K/yr) and include a realistic 20% to 35% annual maintenance burden for custom builds.
- Name the Explicit Opportunity Cost: State which revenue roadmap bet slips if engineers spend two quarters building commodity plumbing.
- Enforce an Anti-Corruption Adapter Layer: Wrap bought vendor SDKs behind a thin internal interface (100 to 250 lines) so switching providers later remains a bounded 2 to 4 week project.
- Run a 1-Week Sandbox Spike & Publish the ADR: Validate latency, rate limits, and security posture live, then share the 3-Year TCO ADR for Finance and VP sign-off.
// build-vs-buy-tco.ts - Standard 3-Year TCO Calculator for ADRs
interface TcoInput {
option: string;
loadedEngAnnualUsd: number; // e.g., 220000
buildEngMonths: number;
annualMaintFte: number; // patching, edge cases, on-call
year1LicenseUsd: number; // assumes 15%/yr seat/usage growth
annualInfraUsd: number;
exitMigrationEngMonths: number;
}
function threeYearTco(i: TcoInput) {
const build = (i.buildEngMonths / 12) * i.loadedEngAnnualUsd;
const maint = 3 * i.annualMaintFte * i.loadedEngAnnualUsd;
const license = i.year1LicenseUsd * (1 + 1.15 + 1.32);
const infra = 3 * i.annualInfraUsd;
const exitReserve = (i.exitMigrationEngMonths / 12) * i.loadedEngAnnualUsd;
return {
option: i.option,
threeYearTcoUsd: Math.round(build + maint + license + infra),
exitReserveUsd: Math.round(exitReserve),
};
}
// Multi-Tenant SSO/SCIM + Audit Log Streaming Example:
// Build Custom (14 eng-mo, 1.25 FTE/yr maint, $32K infra) -> ~$1,178,000 TCO
// Buy + Adapter (1.5 eng-mo, 0.15 FTE maint, $52K license) -> ~$313,000 TCO (+$55K exit)Worked Production Scenario: Before vs. After
Context: A 35-engineer enterprise SaaS org needed SAML SSO, SCIM sync (Okta, Azure AD, OneLogin), and SOC2 audit streaming. Two senior engineers proposed building it in-house to avoid a $52K/yr vendor bill.
Before (Ad-Hoc Build Habit): Two years earlier, the org built a custom webhook retry service to save $24K/yr. The "3-week build" took 4 months, still dropped burst events, and consumed 0.8 FTE for two years (~$420K hidden engineering cost).
After (3-Year TCO Framework): The Head of Engineering required a 3-Year TCO ADR. Modeling 14 engineer-months of IdP edge cases plus 1.25 FTE/yr maintenance yielded $1.18M for Build vs. $313K for Buy behind a thin IdentityGateway adapter. Finance approved the $52K/yr vendor immediately after seeing the $865K net savings. Engineering integrated SSO/SCIM in 3 weeks and unblocked $1.4M in Q2 enterprise pipeline.
| Metric | Custom In-House Build (Projected) | Buy + Adapter (Actual) |
|---|---|---|
| Time to First Enterprise Live | 24 weeks | 3 weeks |
| 3-Year Fully Loaded TCO | $1,178,000 | $313,000 |
| Ongoing Maintenance Load | 1.25 FTE/yr | 0.15 FTE/yr |
| Q2 Pipeline Unblocked | Delayed to Q4 | $1.4M ARR closed in Q2 |
Common Failure Modes & Anti-Patterns
- Pricing Existing Engineers at $0: Treating vendor spend as new cash while ignoring engineer opportunity cost skews decisions toward expensive builds. Structural Fix: Always pair loaded FTE cost with the concrete revenue feature delayed.
- Skipping the Adapter Boundary: Importing vendor SDKs across 300 files hands the vendor total pricing leverage at renewal. Structural Fix: Route all calls through one thin internal adapter contract.
- Calling Self-Hosted OSS "Free": Ignoring clustering, upgrades, and security CVE patching hides 0.3 to 0.5 FTE/yr of ops work. Structural Fix: Include realistic ops FTEs in every OSS TCO row.
How to Handle Pushback in the Room
Pushback 1 (Principal Engineer): "Why pay $52K a year for SSO and audit logs when we can build a cleaner system without vendor lock-in?"
Calm Response: "I know we can build a clean system, but maintaining Okta, Azure AD, and OneLogin edge cases plus SOC2 controls costs $1.18M over three years and pulls two senior engineers off our core analytics engine. Wrapping the vendor behind our own thin internal interface protects exit optionality without owning commodity plumbing."
Pushback 2 (CFO / Procurement): "Software spend is tight this year. Can we avoid a new $50K SaaS contract and use existing engineers?"
Calm Response: "Using existing engineers delays our Q3 analytics release by two quarters, risking $1.4M in expansion ARR. Spending $52K in SaaS unlocks that revenue five months earlier and saves roughly $865K in loaded engineering capacity over three years."
Key Takeaways & This Week's Action Rep
- Build only core differentiation: Keep custom engineering focused on capabilities customers explicitly pay you for.
- Run a 3-Year TCO, never a 3-week build guess: Count loaded FTEs, annual maintenance drag, cloud infra, and license growth.
- Wrap every bought vendor in an adapter: Preserve a 2 to 4 week exit path and renewal leverage.
- Lead with revenue unlocked: Show Finance how smart buying accelerates commercial goals.
This Week's Action Rep: Take one open build-vs-buy debate on your roadmap, run real numbers through build-vs-buy-tco.ts, and circulate a 1-page 3-Year TCO comparison before your next architecture review.