Skip to content

PierreKieffer/Akka-Kafka-producer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akka-Kafka-producer

Simple application template that provides a kafka producer using an Akka http server

Build the app

  • Clone the repository
  • With the sbt shell, run assembly to compile and package the app

Run

  • 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

Releases

No releases published

Packages

No packages published

Languages