Skip to content

for demonstrating connecting with Kafka and some tests. also, experimenting TravisCI

Notifications You must be signed in to change notification settings

InsomniaCoder/spring-kafka

Repository files navigation

spring-kafka

instruction

  1. start Kafka brokers and Zookeeper with docker-compose up
  2. run project using mvn spring-boot:run
  3. use curl to send a message
curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"type":"type1","message":"test"}' \
  http://localhost:8080/send-payload
  1. use this to curl to send a message to multiple topics
curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"type":"type1,type2","message":"test2"}' \
  http://localhost:8080/send-payload

Build Status

About

for demonstrating connecting with Kafka and some tests. also, experimenting TravisCI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages