are you setting the group.id property to be the same on both consumers? https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example
-hans /** * Hans Jespersen, Principal Systems Engineer, Confluent Inc. * h...@confluent.io (650)924-2670 */ On Wed, Dec 7, 2016 at 12:36 PM, Justin Smith <jsm...@clearsense.com> wrote: > I read this paragraph under Kafka as a Messaging System. > > > > “The consumer group concept in Kafka generalizes these two concepts. As > with a queue the consumer group allows you to divide up processing over a > collection of processes (the members of the consumer group). As with > publish-subscribe, Kafka allows you to broadcast messages to multiple > consumer groups.” > > > > But I cannot find where you are able to divide up processing over a > collection of processors. I have 2 consumers and no matter what I do they > always both get the same message. Is there a java reference you can point > me to where I can understand how to accomplish this? > > > > Thanks a lot, > > *Justin Smith* > *Software Developer* > > [image: Clearsense] <http://www.clearsense.com/> > > c: 904.497.3035 1300 Marsh Landing Pkwy., Ste. 105, Jacksonville > Beach, FL 32250 > clearsense.com <http://www.clearsense.com/> | *jsm...@clearsense.com > <jsm...@clearsense.com>* | Follow on Twitter > <https://twitter.com/ClearsenseCan> | Connect on LinkedIn > <https://www.linkedin.com/> > > >