Build, buy or compose: a framework that weighs differentiation, integration, exit and five-year cost, with an illustrative cost comparison that shows how the answer can flip.

"Should we build it or buy it?" often has a third answer. Many organisations end up composing: a bought product for the common parts, custom software where the business is different, and integration code holding the two together. The useful question is where each line falls, and what each choice will cost over the years you will live with it.
This framework has four tests: differentiation, fit, integration and exit. Cost comes after them, because a cost model is only as good as the assumptions those tests produce.
Martin Fowler's distinction between utility and strategic software is a good first cut. In his words, "it's all about whether the underlying business function is a differentiator or not" [1]. For a utility function, he suggests you "buy the package and adjust your business process to match the software"; for a strategic function, "you don't want the same software as your competitors" [1]. He also notes that the risks differ. Utility projects mostly need to avoid catastrophic error, while the biggest risk for strategic work is "not doing something before your competitors do" [1].
Payroll, email and expense claims are utility functions for nearly everyone. The pricing engine of a lender, the scheduling logic of a logistics firm or the claims rules of an insurer may be strategic. Be strict here. Teams often believe their process is more unusual than it is. The UK Government Digital Service makes the same point: "Your project's needs are more likely to be common than unique" [2].
The GOV.UK guidance on purchasing strategy tells teams to decide whether off-the-shelf products "provide the right level of functionality and use them as they were intended". It adds a warning worth putting on the wall: "Even small modifications to OTS software can remove most of the benefits of using it", and changes and workarounds can "restrict you from upgrading or removing them in future" [3]. The GDS technology blog says the same from another angle: "customisation is not only expensive, but can make the product or service harder to maintain or update", and encourages "configuration over customisation" [2].
So the real question for a SaaS option is whether your team will change its process to fit the product. If the answer is "only if the product changes first", you are planning a customisation project inside someone else's software, which tends to combine the costs of building with the constraints of buying.
Integration is where estimates often go wrong. A product that fits on its own may need connections to your identity provider, finance system, data warehouse and two older internal applications. Each connection needs mapping, error handling, monitoring and an owner when the vendor changes an API.
List every system the new capability must read from or write to, and for each one note the direction, the frequency and who owns the other end. If the list is long, that integration layer is a piece of custom software whichever option you choose, and it should appear in every column of the cost model. The GOV.UK guidance on integrating technology asks teams to show "how a new technology will work alongside your existing infrastructure, support model and governance" [4].
Every choice needs an exit plan written before signing, not after. GOV.UK asks teams to have "a plan for the technology if it fails or is discontinued" [4]. For purchases it recommends, where economic, contracts that "include a break clause at a maximum of 2 years which allows you to terminate the contract with minimal exit costs" [3]. That guidance is written for UK public bodies, and private organisations will set their own terms; contract terms are a matter for your legal and procurement advisers.
The practical exit questions are the same for any buyer:
| Factor | Lean towards buy | Lean towards build | Lean towards compose |
|---|---|---|---|
| Differentiation | Utility function, common across the sector | Core to how you compete | Common core with a few differentiating rules or screens |
| Process fit | You will adapt to the product | No product fits without heavy customisation | Product fits most of it; the gap is well defined |
| Integration | Few connections, standard connectors exist | Many connections to internal systems you own | Product has a usable API for the gap you will build |
| Change rate | Requirements stable | Requirements change monthly with the business | Stable core, changing edges |
| In-house capability | Little engineering capacity | A team that can own it for years | Enough capacity to own a small custom module |
| Data and regulation | Vendor meets your data-location needs | Data must stay on infrastructure you control | Sensitive part kept in the custom module |
| Exit | Clean export and short contract available | You control code and data from the start | Seam between bought and built parts is documented |
No single row decides. A function can be strategic and still be bought if the right product exists and you will use it as designed. The table is for making the argument explicit so that the people who disagree can see which row they disagree about.
The figures below are invented for illustration. They are not quotes, benchmarks or prices from any vendor, and they are not from a Daivota project. Change every number to match your situation. Amounts are in Indian rupees, mostly in lakh (one lakh is ₹1,00,000, or 100,000 rupees), over five years, for a hypothetical business application used by 200 staff.
Illustrative assumptions:
| Illustrative five-year cost (₹ lakh) | Buy | Build | Compose |
|---|---|---|---|
| One-off costs | 33 | 100 | 52 |
| Recurring costs per year | 44 | 50 | 44.6 |
| Total over 5 years, 200 users | 253 | 350 | 275 |
On these numbers, buying is cheapest. Now change the user assumption: the organisation grows and 600 staff need access from year three, and hosting for the built system rises by ₹4 lakh a year from the same point to carry the extra load. Every other line stays as above.
| Illustrative five-year cost (₹ lakh) | Buy | Build | Compose |
|---|---|---|---|
| Total, 200 users then 600 from year 3 | 469 | 362 | 404.6 |
The subscription line grows with users, and the custom software's costs mostly do not. On these invented numbers, the cheapest option becomes the most expensive: the extra 400 users add ₹216 lakh to buying over years three to five and ₹129.6 lakh to composing, while building adds only the ₹12 lakh of extra hosting. The point is the sensitivity. Before deciding, find the two or three assumptions that move the answer, and test them: user growth, price increases at renewal, the real size of the maintenance team, and how many integrations you will need.
Three cost lines are often left out of these models:
The GOV.UK guidance frames this as understanding "as much of the full cost of building or buying a product as possible", across a product's lifecycle "including building or buying, upgrading, continuous improvement planning and retirement" [3].
Composition works when the seam between bought and built parts is deliberate. A simple shape:
+----------------------+
users ---> | SaaS product (core) | configured, not customised
+----------+-----------+
| documented API / events
+----------v-----------+
| Integration layer | owned by you: mapping, retries, audit
+----------+-----------+
|
+----------v-----------+ +--------------------+
| Custom module | ---> | Your systems of |
| (differentiating | | record (finance, |
| rules and screens) | | warehouse, etc.) |
+----------------------+ +--------------------+
Keep the custom module small and clearly bounded. If the product vendor later ships what the module does, you can retire it. If you leave the vendor, the module and integration layer are the parts you keep. When the custom side grows into a product of its own, with many customers or business units, design questions such as tenant isolation in multi-tenant SaaS start to matter. Where the starting point is an old in-house system, the move is often gradual; see modernising a legacy application without a big-bang rewrite.
For organisations working through this choice for a specific system, our technology strategy and planning service and custom software and SaaS development service cover both sides of it.
Prepared with AI-assisted research and drafting.