- start Kafka brokers and Zookeeper with
docker-compose up
- run project using mvn spring-boot:run
- use curl to send a message
curl --header "Content-Type: application/json" \
--request POST \
--data '{"type":"type1","message":"test"}' \
http://localhost:8080/send-payload
- 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