Member-only story
Spring-boot Event-Driven Micro-service with Kafka and MongoDB
INTRODUCTION
Most of the organizations are adopting micro-services architecture as it improves agility, scalability, availability, reliability of the applications. Event-Driven microservices has also gained lot of popularity with availability of great streaming engines like Kafka and NO-SQL databases like MongoDB. Event-driven micro-services provide great features like loosely coupled design and asynchronous processing which is also one of the core feature of micro-services architecture.
In one of my previous story, I created one .NET 5 based micro-service and integrated with Kafka to support event streaming and No-SQL MongoDB to store messages.
This is similar example (use-case), we will be created one spring-boot based micro-service and integrate with Kafka to support event streaming and No-SQL MongoDB to store information.
Prerequisite
- VSCODE/IntelliJ Idea or some Java code editor
- Java 1.8 or above
- Maven 3.8.1
- Kafka Cluster on Confluent Cloud or local setup
- MongoDB Cluster on Mongo Atlas or local setup