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
, andRecommendationService
APIs. - Aggregator microservice design pattern:Â
OrchestratorNewsService
performs the role of aggregator for theFamousNewsService
,SportsNewsService
, andPoliticsNewsService
microservices. - Branch microservice design pattern: This is the pattern that we have used to establish communication between
UsersService
andRecommendationService
, becauseRecommendationService
needs information synchronously fromUsersService
to finish the task it proposes. - Asynchronous...