Can multiple Kafka consumers read from the same partition of same topic by default?

前端 未结 1 1573
鱼传尺愫
鱼传尺愫 2021-01-24 11:41

Can multiple Kafka consumers read from the same partition of same topic by default? By default, I mean since group.id is not mandatory I am wondering if I spawn multiple kafka c

相关标签:
1条回答
  • 2021-01-24 12:14

    Can multiple Kafka consumers read from the same partition of same topic by default?

    Yes.

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

    Yes.

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

    0 讨论(0)
提交回复
热议问题