Integrating microservices using event streaming
To learn and perform hands-on exercises, we will implement a simple scenario of event streaming in the pet clinic application. Consider the following diagram:
In the aforementioned diagram, whenever there is a new vet review, the pet-clinic-reviews microservice will send the review to Apache Kafka Streaming. Apache Kafka appends the review to the vet-reviews topic stream. And, as the pet-clinic microservice is continuously monitoring the vet-reviews topic stream, it will fetch any new reviews appended to the topic and update the average rating accordingly. This is a simpleton diagram but will help to focus on the key learning objectives.
In the next section, we will begin by setting up the Apache Kafka ecosystem locally inside Docker to learn more about Apache Kafka streaming.
Setting up the Apache Kafka ecosystem locally
To set up the...