Synchronous Communication between Microservices
In the previous chapter, we learned about aggregator patterns and how they help us scope our storage considerations for our microservices. Now, we will focus on how our services communicate with each other during the application’s runtime.
We have already established that microservices should be autonomous and should handle all operations relating to tranches of the domain operations that are to be completed. Even though they are autonomous by design, the reality is that some operations require input from multiple services before an end result can be produced.
At that point, we need to consider facilitating communication, where one service will make a call to another, wait on a response, and then take some action based on that said response.
After reading this chapter, we will be able to do the following:
- Understand why microservices need to communicate
- Understand synchronous communication with HTTP and...