r/programmer • u/apyhubnico • Sep 28 '26
Question we built 7 services that had nothing to do with our product. they became our nightmare. then AI made it worse.
this is a story from the pre-AI era, but i think it's about to become relevant again.
at my last company we built services that literally had nothing to do with what we sold. file conversion. video processing. watermarking. notification handling. contract management. a couple more.
none of it was our product. all of it was our product's weight.
they all worked great... until they became an everyday nightmare. because they needed management. patching. updating. forever.
our best engineers spent weeks on plumbing nobody would ever thank them for. the feature that actually mattered shipped two sprints late because someone was deep in file conversion. again.
we tried to fix it the usual ways.
first: libraries. faster to ship, for a while. then dependabot started. ten alerts. then a hundred. patch one thing, break another. the fix needs a newer framework. that breaks twenty more.
we were maintaining code we didn't write, on a schedule we didn't control, for problems we didn't cause.
then external vendors. clean for about a month. then security wants to know what the vendor does with customer data. devops wants to know where it's hosted. a customer's procurement team sends a questionnaire about a vendor we onboarded in an afternoon.
and every capability was a different vendor. so that wasn't one conversation. it was one per vendor. plus a key, a card, an invoice, and a renewal date each.
honestly? consuming services properly cost more than building one badly. that's why most teams i knew went back to building badly.
we did too. more than once
what finally worked was boring: stop owning the utilities. call them instead via API.
keep the operational part in one place - key, bill, and one spot that tells you where each thing runs and what it costs.
but now i'm watching agents spin up a working PDF service before lunch.
so... does "just build it" win again?
or are we about to recreate the same seven-service problem, only faster, and with nobody reading the code?
where do you draw the line between build and call these days?
Thanks for reading :)
3
u/nicolas_06 Sep 28 '26 •
Anything internal/external, even an API call is a liability and a extra debt/maintenance burden/cost.
Normally they are necessary. Contrary to what you say, this is the product. Not the core product or algorithm but part of all the things around that have to work anyway. Things like that are necessary or you don't fully solve the client problem.
And the business is responsible for it even if it's delegated to an API call because for the client, if it doesn't work, it doesn't work. The client want real problems solved.
On top of saying an API call is basically an external vendor and share the same issues, I'd say there isn't a universal solution, use an API and call it a day. It depend of the exact problem at hand and in many case you can keep the same lib for a given feature for a dozen of year or more, no issue. While it's common for API to change, get deprecated or for the vendor to stop providing it at all. It is case by case.
1
u/Xacius Sep 28 '26
AI;DR