Architecture & practice·Design, structure and tradeoffs
you kept the single deployable and made a module boundary something the build fails on when crossed.
Modular monolith
Also calledmodulith
A monolith with internal boundaries that are actually enforced — by module systems, build rules or tests — rather than merely intended. It gets you the ownership and reasoning benefits of separate services without the network, the deployment matrix or the distributed debugging. It is the usual right answer when someone proposes microservices for a fifteen-person company, because it makes the same boundary argument at a fraction of the operational cost.