elodina / dropwizard-kafka-http

Apache Kafka HTTP Endpoint for producing and consuming messages from topics
http://www.elodina.net
Apache License 2.0
153 stars 45 forks source link

Implement the producer as an Akka producer #4

Closed joestein closed 10 years ago

joestein commented 10 years ago

The current producer is async however ultimately there is only one sync producer for that one async queue. If we use Akka http://doc.akka.io/docs/akka/2.2.3/java.html we can have multiple async (which are bound by a sync) producers. The dispatcher should be configurable but default to the round robin dispatcher. Something like how we do it in Scala https://github.com/stealthly/scala-kafka/blob/master/src/main/scala/AkkaKafka.scala with a better initialization.