Fully agree. It seems a lot of companies go straight from badly architected monoliths to microservices, without really thinking about alternatives and the cost of designing and maintaining microservice topology.

I completely agree that having one repository namespaced by domains and using ddd with a strategy for how you could shift a domain to a microservice without altering the interface usage is the way to go. Only go the microservice path when you absolutely have to, and for most companies, that’s never.