java-tutorials/spring-kafka
Vivek Kumar dbc2c49fe2 BAEL-578: Add spring-kafka module (#1407) 2017-03-16 19:34:53 +01:00
..
src/main BAEL-578: Add spring-kafka module (#1407) 2017-03-16 19:34:53 +01:00
README.md BAEL-578: Add spring-kafka module (#1407) 2017-03-16 19:34:53 +01:00
pom.xml BAEL-578: Add spring-kafka module (#1407) 2017-03-16 19:34:53 +01:00

README.md

Spring Kakfa

This is a simple Spring Boot app to demonstrate sending and receiving of messages in Kafka using spring-kafka.

As Kafka topics are not created automatically by default, this application requires that a topic named 'baeldung' is created manually.

$ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic baeldung

Two listeners with group Ids foo and bar are configured. When run successfully, the Hello World! message will be received by both the listeners and logged on console.