Code migration does not involve just pulling out a few layers of code from the existing monolithic application and then bundling it with our newly created Product service. In order to achieve this, you'll need to implement all that you have learned until now. In the existing monolithic application, we have a single repository, which is common across all modules. Whereas, for microservices, we will create repositories for each module separately and keep them isolated from each other as well.
In the preceding image, Product Service has a Product repository, which further interacts with its designated data store, named Product ...