Microservices don't share the same code base and don't share data stores. They communicate
through APIs for data operations.
▪ Shopping Cart service requests information about a customer from the Customer service.
▪ Customer service retrieve data with using Repository classes and return Customer entity model
as a JSON object in an HTTP response.
https://kennethlange.com/7-tips-for-designing-a-better-rest-api/