| We have a hybrid model: modular monolith + microservices. It has worked well so far. The core of the product is found in the monolith. We use bounded contexts ("modular monolith") with strictly separated concerns. There are no immediate plans to split the core into microservices (unless absolutely necessary) because the logic between modules is too intertwined and coupled. Splitting the core into microservices would overcomplicate everything for us, and the performance would suffer. As for microservices, we usually use them for: 1) critical infrastructure which needs to be fast and scalable (for example, the auth service) 2) isolated helper services, for example a service which allows to integrate with third-party platforms 3) isolated features/products which minimally interact with the rest of the system; for example, we have an optional feature which shares the UI with the rest of the application, and uses some of its data, but ultimately it's a product of its own, it's developed separately with its own codebase, and integrated into the monolith So I think it's a false dichotomy that you either have a monolith, or microservices. You can use both, they can complement each other. |
>because the logic between modules is too intertwined and coupled.
That doesn't sound very modular? If your bounded contexts are intertwined, I don't think they can be considered bounded contexts. A modular monolith would only communicate between contexts through well-defined and non-leaky APIs, and that's the opposite of intertwined.