by rglover · 5y ago · 0 comments
Both can be a great pattern applied properly (nasty scaling problems), but they became a religion or a replacement for entire stacks. I see so many devs these days who are clearly confused but have no idea what they're doing is overly complex—they just think it's normal.
AWS and the like are great, but the move to make everything cloud-based is going to lead to a lot of unmaintainable (or in extreme cases, unsalvageable) messes later. It will be a sad day when devs only understand how to build or deploy something if it's using a heavily-abstracted corpo stack, or even worse, "no code."
We say one or the other is overly complex, but I think both are knife throwing just with slightly different details. If you can grok system design, microservices are easier to reason about. If you maintain your monolith well, it's easier to reason about.
I too have seen this. The one benefit of monolith in this case is the three files are in the same repo so at least it's (theoretically) easier to standardise on just one.
If they're cross-repo duplicates, then it's a little trickier.
I'm not really familiar with micro-services.
Could you give me a concrete example of a system that people would built with a micro-services approach but would be simpler as a monolith?
It's not a binary decision. Micro-services are a tool/technique best applied piecemeal for specific things. For example, "we started out with our API in the monolith but it's got more traffic than we expected so we should split it off to its own service."
The point I was making is that people take this wholesale approach and add unnecessary complexity (i.e., split the API, the payments system, the DB/ORM layer, etc. off into services from day one).
If people really think that no code is acceptable, then I am going to cry. It won't be an improvement.
It does not work so well for interactive reading applications like a REST-api.
So no, I think only trained teammembers should be allowed to touch them. Even simple coding with workflows is difficult for non-programming oriented people.