Yes this is possible in Kafka. While make a connection with Kafka consumer . We can have same consumer group id for the same topic
So while connecting topic T1 with 3 consumer c1,c2,c3 all will have the same group id so only one of the consumer will receive the message at time. Same we can do with other topic and rest of the consumer Thanks Gaurav On Mar 29, 2016 9:20 AM, "Vinod Kakad" <vinodka...@gmail.com> wrote: > Can we have multiple topics and multiple consumers but in a queue > implementation. > > for e.g. > There are 2 topics T1 and T2 and four consumers C1,C2,C3 and C4. > > can we have C1,C2,C3 subscribe to T1 and (C3,C4) subscribe to T2. and this > should work like a queue. i.e. T2 should send message to only C3 or C4. and > same in case of T1. > > is this possible by any means? > > Thanks & Regards, > Vinod Kakad. > > On Mon, Mar 28, 2016 at 8:16 PM, Gaurav Agarwal <gaurav130...@gmail.com> > wrote: > > > If you have consumer group id across multiple consumers then Kafka will > > work as queue only . > > On Mar 28, 2016 6:48 PM, "Sharninder" <sharnin...@gmail.com> wrote: > > > > > What kind of queue are you looking for? Kafka works as a nice FIFO > queue > > by > > > default anyway. > > > > > > > > > > > > On Mon, Mar 28, 2016 at 5:19 PM, Vinod Kakad <vinodka...@gmail.com> > > wrote: > > > > > > > Can anybody share any good example(code) for kafka as a queue > > > > implementation? > > > > > > > > Thanks & Regards, > > > > Vinod Kakad. > > > > > > > > > > > > > > > > -- > > > -- > > > Sharninder > > > > > >