In this chapter, we'll implement reactive microservices using Spring Boot, Spring Stream, Apache Kafka, and Apache Avro. We'll make use of the existing Booking microservice to implement the message producer, or in other words, generate the event. We'll also create a new microservice (Billing) for consuming the messages produced by the updated Booking microservice, or we can say, for consuming the event generated by the Booking microservice. We'll also discuss the tradeoffs between REST-based microservice and event-based microservice.
In this chapter, we will cover the following topics:
- An overview of the reactive microservice architecture
- Producing an event
- Consuming the event