design – How to create a monolithic application ready for microservice?

After reading the pros and cons of both sides, the consensus that emerged is: go first in monolith, then in microservice only if you really need it. But then those who pass by an already big monolith often struggle.

That said, if you start something from scratch, how can you design a monolithic application so that it is ready for microservice?