by algesten · 9y ago · 0 comments
On a tangent to this. I noticed that one benefit my company reaped from embracing a micro service architecture was that we get away with _a lot_ of shit code.
Suddenly a NodeJS process can have glaring memory leaks and work fine for weeks because whenever it crashes, it restarts in 0.5 second and no one even bothered to investigate.
Compare that with the good-ol-JBoss monolith with a 3-4 minute startup time.
On the one hand, crap code can go unnoticed for weeks, which feels wrong and probably will bite us somewhere in the end, on the other hand, we can focus on function not code quality.
With multiple processes listening to the same socket it's easy to create a continuously on service that under the covers respawns with no apparent loss of service.