Skip to content

Use Apache Kafka as a broker to exchange messages between Producer and Consumer in Spring Boot

Notifications You must be signed in to change notification settings

sdeshikan/sb-kafka-real-world-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot + Apache Kafka

Use Apache Kafka as a broker to exchange messages between Producer and Consumer in Spring Boot Application, using Wikimedia recent changes Event Stream Data.

Technical Implementation

  • Install and setup Apache Kafka
  • Create and setup multi-module Spring Boot project
    1. Module 1: kafka-consumer-database
    2. Module 2: kafka-producer-wikimedia
  • Create two Microservices

Producer

  • Configure Wikimedia Producer multi-level module and Create a Kafka Topic
  • Implement Event Handler in Producer module
  • Run and Test Wikimedia Producer Application

Consumer

  • Configure Kafka Consumer
  • Implement Kafka Listener for a topic with groupId
  • Run and Test Consumer Application

MySql Database

  • Configure DB in application properties of Consumer and Producer Applications
  • Create Entity and JPA Repository
  • Save Wikimedia Data into MySQL Database

About

Use Apache Kafka as a broker to exchange messages between Producer and Consumer in Spring Boot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages