Skip to content

a Spring Boot project featuring a producer and a consumer application using Apache Kafka and ZooKeeper.

Notifications You must be signed in to change notification settings

amin-rm/kafkaproject

Repository files navigation

Kafka Producer/Consumer Demo

This project demonstrates a simple Apache Kafka producer/consumer implementation using Spring Boot.

Requirements

  • JDK 17
  • Docker

Installation

  1. Install JDK 17 if not already installed:

    sudo bash install_java17.sh

Usage

  1. Run the following command to start Kafka, Zookeeper, producer, and consumer servers:

    sudo bash start_servers.sh

Directory Structure

  • 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.

Verification

After starting the servers, navigate to the verify directory for further testing and verification.

Note

This guide assumes a Debian-based distribution like Ubuntu. Please adjust commands accordingly for other systems.

About

a Spring Boot project featuring a producer and a consumer application using Apache Kafka and ZooKeeper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published