A practical guide to building a modular monolith without losing the ability to scale back in a Spring Cloud powered stack

Here’s an irony for you: everyone talks about migrating from monolith to microservices. The entire industry narrative flows in one direction. In fact, when I was searching for images for this post, every single diagram showed monolith → microservices. Not a single arrow pointed the other way.
But sometimes the right move is consolidation. Building a modular monolith is a reality people are often hesitant to discuss publicly, thanks to years of microservices hype.
When we were running 15 microservices, it sounded like good architecture on paper. In practice, it was burning through our budget and adding complexity we didn’t need.
(more…)