kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liquan Pei <liquan...@gmail.com>
Subject Re: poll method thread
Date Sun, 24 Apr 2016 18:54:30 GMT
Hi Spico,

Kafka Consumer is single threaded which means all operations such as
sending heart beat, fech records and maintain group membership are done in
the same thread as the caller.

Also, poll() is a blocking method with timeout and you can interrupt it
with the wakeup method in Kafka Consumer.


On Sun, Apr 24, 2016 at 11:43 AM, Spico Florin <spicoflorin@gmail.com>

> hi!
>  i would like to ask if the kafka consumer poll method is done in aseprated
> thread than the caller or in the same thread as the caller?
> it is syncriunous blocking method or asynch?
>  thank you
> florin

Liquan Pei
Software Engineer, Confluent Inc

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message