Pattern distribution
Throughout the book, we have worked with various patterns of communication between microservices. We applied almost all the mentioned patterns, and in the course of the development process, we were remodeling our code, modifying and adding patterns in our application.
We are currently applying the following patterns in the application:
- Proxy microservice design pattern: This is applied using Nginx in the role of proxy. This pattern refers to the proxy for the
OrchestratorNewsService,UsersService, andRecommendationServiceAPIs. - Aggregator microservice design pattern:Â
OrchestratorNewsServiceperforms the role of aggregator for theFamousNewsService,SportsNewsService, andPoliticsNewsServicemicroservices. - Branch microservice design pattern: This is the pattern that we have used to establish communication between
UsersServiceandRecommendationService, becauseRecommendationServiceneeds information synchronously fromUsersServiceto finish the task it proposes. - Asynchronous...