4 ms·
Do not apply rules dogmatically would be a good rule... The willy-nilly breaking up of monoliths into microservices without a good reason to do so other than 'e
by jacquesm 7y ago
Do not apply rules dogmatically would be a good rule... The willy-nilly breaking up of monoliths into microservices without a good reason to do so other than 'everybody else is doing it too' or 'microservices are cool' are going to result in a lot of busywork and ultimately will not serve your business interests.
If and when the time is right to break out some part of a monolith into a service is probably going to give some kind of net benefit. But breaking up a monolith into > 10 services without having done a proper analysis of the downsides and the benefits of doing so will result in wasted effort.
Monoliths aren't bad per-se, neither are services or even microservices. Knowing when and why you choose each and what the drawbacks of these are for any given situation is something the reason why you have CTO's and architects. Way too often the decisions about this level of granularity are taken at the wrong level with all kinds of predictable results.
Asking these questions is a good start. An even better start would be to ask yourself whether you are the person best positioned to answer these questions, and if not what individual or group of people is.
Most companies (SME's, < 500 employees < 100 devs) do not need microservices but some of them might use them to their advantage. Some problems you won't solve without, some are going to become needlessly complicated if you use them. In most cases either a well architected monolith or a couple of services with a unified front end will work as well or better than either a monolith or microservices. Some environments lend themselves particularly well to microservices (Erlang, Elixer), others are next to impossible to put together without including half of a new operating system.
Use common sense and err on the side of caution. A very good indication that you are using microservices wrong is when they start to call each other horizontally, effectively re-creating RPC or function calls across process boundaries.