This project sets up a Dockerized Apache Kafka cluster with three Kafka servers monitored by a three-node Zookeeper ensemble, ensuring high availability and fault tolerance. It also includes three Spring Boot-based producer and consumer applications, demonstrating seamless integration and message processing within the Kafka ecosystem.
These instructions will get you a copy of the project up and running on your local machine for development purposes. See running for notes on how to run the project on a system.
-
Clone the project to your local environment:
git clone https://github.com/ankitrajput0096/Kafka_ZooKeeper_SpringBoot_Producers_Consumers
-
You need Docker to be installed:
https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe
To build and start the kafka cluster along with spring-boot producers and consumers, enter these two commands
docker-compose build
docker-compose up
- Install Postman (https://www.getpostman.com)
- Import Postman collection from the
SpringBoot_Kafka_ZooKeeper_Producer_Consumer.postman_collection.json
file - Enjoy !!
- Spring Boot - Spring Boot 2
- Maven - Dependency Management
- Docker - For containerization of application
- Kafka - For Kafka servers
- ZooKeeper - For ZooKeeper servers
If you have any improvement suggestions please create a pull request and I'll review it.
- Ankit Rajput - Initial work - Github
This project is licensed under the MIT License