This project demonstrates a simple Apache Kafka producer/consumer implementation using Spring Boot.
- JDK 17
- Docker
-
Install JDK 17 if not already installed:
sudo bash install_java17.sh
-
Run the following command to start Kafka, Zookeeper, producer, and consumer servers:
sudo bash start_servers.sh
producer
: Kafka producer Spring Boot project.consumer
: Kafka consumer Spring Boot project.kafkawithzookeeper/docker-compose.yml
: Docker Compose file to start Kafka and Zookeeper locally.install_java17.sh
: Bash script to install JDK 17.start_servers.sh
: Bash script to start Kafka, Zookeeper, producer, and consumer servers.
After starting the servers, navigate to the verify
directory for further testing and verification.
This guide assumes a Debian-based distribution like Ubuntu. Please adjust commands accordingly for other systems.