--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/c536d3e3-ee0a-471b-8551-4f623810d552%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Pubudu,You should poll for data, but each request will block waiting for data if enough isn't available yet when the request is made. The configuration option consumer.request.timeout.ms controls how long a REST proxy request will wait before returning. This works in conjunction with the consumer.request.max.bytes config option (and parameter to the GET requests) to determine exactly when the response will be triggered: a response will be sent either when enough bytes are available or the timeout is reached, whichever occurs first.There's also an issue filed for adding a consumer.request.min.bytes option, which would allow for something more like long-polling: https://github.com/confluentinc/kafka-rest/issues/88-Ewen
On Mon, Sep 7, 2015 at 3:21 AM, <pubu...@gmail.com> wrote:
Hi All,
I've been looking into the confluent Kafka REST proxy features. From what I understand the Kafka Java API for consumers is a blocking API that blocks until messages are available. But how to have that kind of behavior with the REST API? Or does the REST API consumers have to periodically poll the API for data?
Thanks,
Pubudu
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/c536d3e3-ee0a-471b-8551-4f623810d552%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks,
Ewen