Reputation: 73
We are trying to build a data-torrent application using kafka as a source that will consume messages from web UI using REST. Can someone provide a good documentation or some steps how to setup kafka produce using java REST API ?
Thanks
Upvotes: 6
Views: 26554
Reputation: 1137
Alternatively, if you don't want to use Confluent REST Proxy for Kafka, you can run a web application using a Web Framework which will call into a Kafka Client library during an HTTP request from the client.
Upvotes: 1
Reputation: 1308
Check out kafka-rest.
It will let you produce messages to a Kafka topic with a REST API in JSON or Avro. It is in Java and you may be able to use it out-of-the-box if you don't have special requirements.
Upvotes: 5