Can multiple default Kafka consumers read the same section of the same topic?

Can multiple default Kafka users read the same section of the same topic? By default I mean as group.id is optional. I'm wondering if sometimes I have multiple kafka consumers without specifying any group.id and give them the same topic and section name, can they read from the same section? I understand that if I give different group names for each Kafka consumer, then all consumers can read from the same section.

+1


source to share


1 answer


Can multiple Kafka consumers be read from the same section of the same default?

Yes.

By default I mean as group.id is optional. I am wondering if I spawn multiple kafka consumers without specifying any group.id and give them the same topic and section name, will they be able to read from the same section?



Yes.

You can look at https://kafka.apache.org/documentation/#consumerconfigs for the default value for consumer properties.

+1


source







All Articles