Hi Josh, Yes. The comsumption distribution at Kafka is at the granularity of partitions, i.e. each partition will only be consumed by one consumer within the group.
Guozhang On Tue, Aug 19, 2014 at 2:01 AM, Josh J <joshjd...@gmail.com> wrote: > Hi, > > For the kafka high level consumer, if I create exactly the number of > threads as the number of partitions, is there a guarantee that each thread > will be the only thread that reads from a particular partition? I'm > following this example > < > https://github.com/bingoohuang/java-sandbox/blob/92318c6d3f2533bbadb253c59a201e4e70f72ad2/src/main/java/org/n3r/sandbox/kafka/ConsumerGroupExample.java > >. > Assuming that the number of threads and partitions is fixed. > > Thanks, > Josh > -- -- Guozhang