A good microservice structure also enjoys good communication between microservices. In Chapter 1, Introduction to Microservices, we discussed that microservices should operate as independently as possible and therefore limit communication to each other as much as they can. In this section, we are going to look at cases where communication between microservices is actually appropriate.
We will explore the following topics:
- Asynchronous communication: What is asynchronous communication and how is it useful?
- What to avoid: Things not to do when communicating.
Let's start with asynchronous communication.