By the end of this chapter, we will have layers inside our microservices that look like the following:
The Protocol layer is very thin, only consisting of RestController annotations and the common GlobalControllerExceptionHandler. The main functionality of each microservice resides in the service layers. The product-composite service contains an integration layer to communicate with the three core microservices. The core microservices will all have a Persistence layer used for communicating with their databases.
We will be able to see data stored in MongoDB with a command like the following:
docker-compose exec mongodb mongo product-db --quiet --eval "db.products.find()"
The result of the command should look like the following:
Regarding data stored in MySQL, we will be able to see it...