You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by XinYi Long <xi...@skspruce.net> on 2017/12/01 01:56:43 UTC

Does Kafka support topic level group.id?

Hi, guys,

    ?

    My consumers want to share the data of one topic, so they use the same group.id. And the meanwhile, they also want to read every single messages of another topic, so they use unique group.id.
    Does Kafka support this situation? Or I need to create different consumers for different group.id?

Appreciate your reply.





Re: Does Kafka support topic level group.id?

Posted by Joris Meijer <jo...@axual.io>.
Hi XinYi,

All consumer instances using the same group.id will share the data
(partitions) of a certain topic. The consumer group.id is not bound to a
topic.
If you want to share data on 1 topic, and parallel process data on another,
you have to change the group.id.

best regards,
Joris




On Fri, Dec 1, 2017 at 5:36 AM Avi Levi <av...@indeni.com> wrote:

> XinYi Long,
> If I understood you correctly than you have to create different groups
> Cheers
> Avi
>
>
> On Dec 1, 2017 4:09 AM, "XinYi Long" <xi...@skspruce.net> wrote:
>
> Hi, guys,
>
>     ?
>
>     My consumers want to share the data of one topic, so they use the same
> group.id. And the meanwhile, they also want to read every single messages
> of another topic, so they use unique group.id.
>     Does Kafka support this situation? Or I need to create different
> consumers for different group.id?
>
> Appreciate your reply.
>

Re: Does Kafka support topic level group.id?

Posted by Avi Levi <av...@indeni.com>.
XinYi Long,
If I understood you correctly than you have to create different groups
Cheers
Avi


On Dec 1, 2017 4:09 AM, "XinYi Long" <xi...@skspruce.net> wrote:

Hi, guys,

    ?

    My consumers want to share the data of one topic, so they use the same
group.id. And the meanwhile, they also want to read every single messages
of another topic, so they use unique group.id.
    Does Kafka support this situation? Or I need to create different
consumers for different group.id?

Appreciate your reply.