3 ms·
The end goal is to get rid of servers completely. By keeping the services small you enforce a culture of small, loosely coupled, single purpose functionality. E
by scarface74 9y ago
The end goal is to get rid of servers completely. By keeping the services small you enforce a culture of small, loosely coupled, single purpose functionality. Especially helpful when you're either dealing with jr. Developers or developers who have been at one company for 10 years and never learned how to properly structure code.
- zdragnar 9y agoIn my (albeit limited) experience, projects which consist primarily of lambdas suffer one of two problems: - the code is awful, because lambdas were an excuse to keep bad developers in their own playpens (aka juniors and those who don't learn) - the code is just fine, and would be easier to maintain if most of the lambdas were combined back into one or more "monoliths"
- scarface74 9y agoI agree, if you don't have junior developers (or worse outsourced developers), it is easier to maintain a well constructed monolith that has separate, focused modules, and clear boundaries between the modules. Microservices help contain the damage of bad programmer skills.
- zdragnar 9y agoI guess my point wasn't that damage containment was a perk. I view it instead as a lack of support- either cultural or structural- from the more experienced developers. Microservice / faas may help mask it, but you're still stuck with a lot of bad code... Only now, there's less oversight and / or accountability.
- scarface74 9y agoYes but the biggest issue with maintaining "bad code" is it's brittle. You make a change one place and it breaks something else down stream. With a microservice, the invariants are well known and the boundaries are clear. It's easy to know whether you are introducing a breaking change and just create a new version at a different endpoint.
- zdragnar 9y agoYou're not wrong, but I think missing my point. This is how we end up with a hackathon golang microservice saving a company 50k a month when a simple correction to poorly written code would have done the same thing. Granted, I only skimmed bits of that article, so I'm not sure those were the exact details, but it makes for a nice analogy.
- barrkel 9y agoIrreducible complexity doesn't go away, and needs orchestration no matter how loosely coupled the parts are (which usually turns out to simply be a conversion from control flow to data flow, with little else added).
- scarface74 9y agoThere's a difference between irreducible complexity and 9000 line "Manager" classes. When you're stuck with either outsourced developers or a bunch of local contractors - neither of which are worth training since the time investment will be wasted when they leave - it limits the damage. Microservices also helps if you have a large project with a lot of developers.