Asynchronous Communication
In the previous chapter, we illustrated how services can communicate with each other using a synchronous request-response model. Other communication models provide various benefits to application developers, such as asynchronous communication, something we are going to cover in this chapter.
Now you are going to learn the basics of asynchronous communication and some common techniques for using it, as well as some benefits and challenges it brings to microservice developers. We will cover a popular piece of asynchronous communication software, Apache Kafka, and illustrate how to use it to establish communication between our microservices.
In this chapter, we are going to cover the following topics:
- Asynchronous communication basics
- Using Apache Kafka for messaging
- Asynchronous communication best practices