/kafka-consumer

Spring boot project example of Kafka Consumer

Primary LanguageJava

kafka-consumer

Spring boot project example of Kafka Consumer

This project implements two different topic listeners: one for string messages on topic "springboot-kafka" and one for User JSON objects on topic "springboot-kafka-json2"

Instruction

step 1: install kafka and start it --> Follow steps 1, 2 of this link
step 2: create the topics "springboot-kafka" and "springboot-kafka-json2" --> View step 3 of the previous link step 3: startup the springboot project. Use step 4 of the previous link to publish messages. Eventually, you can use the kafka-producer application too