Skip to content

shaky2k15/kafka-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

kafka-sample

Simple REST API which can read a batch of messages from a topic related to a consumer group id.

Usage

Start server : (mac)
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties & kafka-server-start /usr/local/etc/kafka/server.properties

Post message to topic : 
kafka-console-producer --broker-list localhost:9092 --topic <topic name>

Read as a consumer
kafka-console-consumer --bootstrap-server localhost:9092 --topic <topic name> --from-beginning

Run the spring boot jar: (in dev)
mvn spring-boot:run -Dspring.profiles.active=dev

About

Trying out for first time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages