I'm getting into microservices architecture and there are some issues which are badgering me. The main advantage of microservices is scalability. Let's say that I have service and I'm running 1-n instances of there services.
In case of spring boot application, we have cool easy to implement cache mechanism, but our instances will be not aware of each other's data what is the common solutions, or simple alternative for such cache?
Some of the services can use the same database with the second-level cache. How can services communicate with each other in such case?
Please provide any good materials for "easy switch" from monolith app to microservices approach.