3 ms·
I agree entirely. Microservices have advantages but they also bring along severe complexity. Many problems can be cleanly modeled as a monolith - and they shoul
by vorpalhex 8y ago
I agree entirely. Microservices have advantages but they also bring along severe complexity. Many problems can be cleanly modeled as a monolith - and they should be. No architecture pattern is immune to abuse.
- monkeydreams 8y ago> Microservices have advantages but they also bring along severe complexity. Worse, often the complexity they bring is undocumented because it lies in the relationships between applications, accounts, infrastructure, and so on, and does not lie within the boundary of a single application. Microservices are simpler to write because you can pretend a lot of the ecosystem does not exist.
- InclinedPlane 8y agoOn top of that, microservices often suffer from inadequate tooling. Companies like Amazon have been working on tooling for their services for literal decades, most companies have some half-assed attempts at tooling and don't understand why that's a problem. Consider deployment, for example, how do you know what's deployed at any given time? Well, the answer is usually something along the lines of "oh, that's just the head revision of all of the relevant repos/branches". And what about the staging and dev environments? And what about logging and history? How much work is it to figure out what code was running when certain bugs were filed?
- romed 8y agoThat sounds like a monitoring problem and nothing to do with microservices vs. monoliths. If you have 10000 replicas of your monolith, how do you know what version they are running? If you can answer that question then you can also answer it for 100 replicas of 100 difference services.
- gav 8y agoThe advantage of microservices is the ability to scale, both in terms of system performance and feature velocity. They are worse at basically everything else. Any system architecture needs to consider the specific case, there’s no best pattern for everything.
- the_arun 8y agoIf microservices are worse, may be we have not architected them well. For eg, if two micro-services are chatty, may be they need to be together to begin with. Micro Monoliths are good compromise :)
- jacob019 8y agoYes. Microservice is only micro by context.
- gav 8y agoEven if they aren’t chatty, microservices are worse because you’ve turned a local procedure call into a remote one and now will run into all the issues faced by distributed systems including unreliable communication and network overhead. Not to mention the added difficulties in debugging and so on.