Simple application template that provides a kafka producer using an Akka http server
- Clone the repository
- With the sbt shell, run assembly to compile and package the app
- Set your own parameters in the config.yml file
- launch the server with a jvm :
java -jar Akka-Kafka-producer-assembly-0.1.jar config.yml
- send a message to the server :
curl -H "Content-Type: application/json" -X POST -d 'test message' http://localhost:8080/sendMessage
- Open a kafka console consumer to check message reception