Skip to content

rishabhverma17/kafka-producer-consumer-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka producer-consumer example using springboot microservices

This is just a working template of producing and consuming message in Spring Boot using Kafka

Kafka Producer

How to produce messages?

Kafka topic

  • kafka-spring-producer

Kafka Consumer

How to produce messages?

  • Just run the application and start producing messages, It will show up in console.

Kafka topic

  • kafka-spring-producer

Requirements to run the template

  • Zookeeper
  • Kafka

TODO : This is just a template project to get up and running, So here we have hardcoded the topics and port in java class, You should use application config for injecting these values.