Integration patterns
Until now, we have discussed inter-service communication and have gone through the practical implementation of ProductService
with the use of synchronous and asynchronous communication. We've also implemented microservices using different styles of collaboration. Our FlixOne bookstore (developed as per the microservice architectural style) required more interaction, therefore it required more patterns. In this section, we will discuss the implementation of various integration patterns required for our application.
Note
The complete application of the FlixOne bookstore is available in Chapter 10, Creating a Complete Microservice Solution.
The API gateway
In the Styles of collaboration section, we discussed two styles we can use to foster intercommunication between microservices. Our application is split into various microservices:
- Product service
- Order service
- Invoice service
- Customer service
In our FlixOne bookstore (user interface), we need to show a few details:
- Book title,...