Build vs Buy API Gateway: True Cost Analysis for SaaS
Corrections & Updates (2026-04-16): An earlier version of this article included three-year TCO tables with specific Euro totals and a managed-SaaS per-call rate. Those figures were illustrative but presented with a precision the underlying inputs did not support. This version replaces the fabricated tables with a qualitative framework and points to primary sources (salary databases, vendor pricing pages) so readers can plug in their own inputs. The qualitative conclusion β "for most mid-stage SaaS, OSS self-hosted beats custom build and matches or beats managed SaaS beyond moderate scale" β is unchanged. See commit history for the diff.
"We can build that ourselves in a sprint." We have all said it. Sometimes it is true. For most infrastructure decisions, it is not β especially for API gateways, where the scope of what "that" means expands significantly once you are in production.
This is the final installment of the SaaS Playbook series. We have covered multi-tenancy, rate limiting, audit logging, scaling, and production readiness. Now we tackle the meta-question: should you have built all of this yourself?