Re:Code duplication is far cheaper than the wrong abstraction
by cryo32 on Sunday June 21, 2026 @12:35PM
(#48620302)
You can do both with microservices!
[ Parent
| on HN ]
Re:Code duplication is far cheaper than the wrong abstraction
by mystifyingpoi on Sunday June 21, 2026 @03:11PM
(#48621703)
I get the joke, but in ideal world, in microservices, there is no such thing as code duplication across services. As a maintainer of a service, I should not give a crap about code present in some other service - it's some other team's code, why would I care? I don't have to even know that the other team exists. In big systems, it happens that I can't even feasibly know the existence of all the applications.
Re:Code duplication is far cheaper than the wrong abstraction
by cryo32 on Sunday June 21, 2026 @03:20PM
(#48621764)
You mean you don’t have 300 versions of your badly developed rapidly evolving platform services rotting away underneath the bit you didn’t duplicate?
Re:Code duplication is far cheaper than the wrong abstraction
by mystifyingpoi on Sunday June 21, 2026 @03:27PM
(#48621814)
I don't. Other teams - maybe they do, maybe they don't. Who cares, not me. I have responsibility for services of my team, I think we are doing a good job.
Being selfish is the core principle of microservice architecture.
Re:Code duplication is far cheaper than the wrong abstraction
by cryo32 on Sunday June 21, 2026 @03:32PM
(#48621853)
Until half your company gets laid off and you have to adopt other people’s shit.
Re:Code duplication is far cheaper than the wrong abstraction
by throwaway2037 on Sunday June 21, 2026 @08:56PM
(#48624281)
In [an] ideal world, in monoliths, there is no such thing as code duplication across subsystems.
Re:Code duplication is far cheaper than the wrong abstraction
by zephen on Sunday June 21, 2026 @12:48PM
(#48620398)
But wait! There's more!
For $19.95, you can replace your single single point of failure with multiple single points of failure!
Re:Code duplication is far cheaper than the wrong abstraction
by flawn on Sunday June 21, 2026 @12:54PM
(#48620447)
Or for 100$, get a 5x increase on all failure points - maximum vibes, maximum excitement.
Re:Code duplication is far cheaper than the wrong abstraction
by mohamedkoubaa on Sunday June 21, 2026 @01:45PM
(#48620926)
Please, stop it
Re:Code duplication is far cheaper than the wrong abstraction
by DJBunnies on Sunday June 21, 2026 @12:49PM
(#48620405)
Except 9/10 times microservices end up wildly dependent on each other, yielding a distributed monolith. Better to use service oriented architecture and just ship the monolith, you can test easier and skip the extra layers of serialization / deserialization.
Re:Code duplication is far cheaper than the wrong abstraction
by mystifyingpoi on Sunday June 21, 2026 @03:13PM
(#48621714)
> end up
So it just happens, right? There is no remedy to this? You know the answer :)
BTW I'm all for monolith.