Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Courses/Architecture Leadership
Lesson 9 of 32

Build vs buy

Decide when to build in-house, buy a SaaS product or adopt open source, using total cost of ownership and strategic fit.

14 min read

Build what differentiates

The first question is strategic: does this capability make customers choose you? If your company wins on fraud detection, building the fraud models is core. Authentication, email delivery, feature flags, logging and payroll rarely are. Wardley mapping makes the same point visually: commodity capabilities should be bought or rented; genuinely novel ones are worth building. Every system you build is a system you staff, patch, secure and on-call for, indefinitely. Be honest about which category a capability really falls in; engineers often overrate how special their needs are.

Total cost of ownership

Engineers routinely compare a SaaS invoice against 'free' in-house code. Build has a cost too, and most of it arrives after launch. A simple rule: a fully loaded engineer costs roughly 150-250k per year in many markets, so a homegrown system needing half an engineer to maintain costs around 100k per year before infrastructure.

  • Build: initial engineering, infrastructure, on-call, security patching, upgrades, documentation, hiring and onboarding
  • Buy: licence or usage fees, integration work, vendor management, price increases at renewal, exit cost
  • Open source: no licence fee but full operational cost, plus upgrade and CVE response work
  • Compare over three to five years, not the first year

Evaluating a vendor

When buying, run a structured evaluation rather than a demo-driven one. Score two or three vendors against requirements you wrote before talking to sales. Run a proof of concept with your real data volumes and failure cases. Check the non-functional requirements that bite later: SLA and its credits, data residency, SOC 2 or ISO 27001 reports, export formats, rate limits, SSO and audit logs, and what happens to your data on termination. Ask for reference customers at your scale and talk to them without the vendor present.

Hedge with a seam

Whichever way you go, put a thin interface of your own between your code and the capability, for example a NotificationSender port with an adapter for the email provider. It keeps vendor SDK types out of your domain, makes testing easy, and turns a future switch from a rewrite into an adapter change. Do not over-abstract, though: a lowest-common-denominator wrapper over every vendor feature costs more than it saves. Wrap only the operations you actually use, in your own domain language.

Key takeaways

  • Build what differentiates you; buy or rent commodity capabilities.
  • Compare total cost of ownership over three to five years, including on-call and maintenance.
  • Evaluate vendors against pre-written requirements with a real proof of concept, including exit terms.
  • Put a thin seam between your domain and the capability so switching stays possible.

Sign in to track lessons and earn badges.

Estimating and scopingEvolutionary architecture and fitness functions

Coming up

Course: 0/32 lessons · 0/10 challenges0%

Build it on the canvas, pass the review (70+) and mark it complete to count it toward the course badge.

  1. 2/10Design a Link Preview ServiceThreat-model a service that fetches untrusted URLs and design its SSRF defences across the trust boundary.Easy
  2. 3/10Design a Login ServiceApply authentication fundamentals: hashed credentials, short-lived tokens, revocation and rate limits on login.
Easy
All 10 challenges →