Summary
In this chapter, we started things off with some fundamentals of event-driven architecture, discussing two different kinds of event publishing models, which are pub/sub and event streaming. We discussed the core components of each model, as well as the pros/cons of using each model.
Since event streaming was better suited for the pet-clinic application, we dived into event streaming using the Apache Kafka ecosystem. For hands-on exercises, we integrated the pet-clinic-reviews
and the pet-clinic
microservices using an Apache Kafka topic stream. We verified the integration by creating a new vet review and received the rating in the pet-clinic
microservice to update the average rating for a vet.
This chapter has provided you with a solid understanding of event-driven architecture and a practical skillset in implementing an event-streaming system in the Micronaut framework.
In the next chapter, we will explore how we can automate quality testing using built-in as well...