默认情况下,多个Kafka使用者可以从同一主题的同一分区读取吗? [英] Can multiple Kafka consumers read from the same partition of same topic by default?

查看:96
本文介绍了默认情况下,多个Kafka使用者可以从同一主题的同一分区读取吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,多个Kafka使用者可以从同一主题的同一分区读取吗?默认情况下,我的意思是因为group.id不是强制性的,所以我想知道是否在不指定任何group.id的情况下生成多个kafka使用者,并赋予它们相同的主题和分区名称,以便他们可以从同一分区读取吗?我了解,如果为每个Kafka用户使用不同的组名,则所有用户都可以从同一分区读取.

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 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? I understand that If I give different group names for each Kafka consumer then all the consumers can read from the same partition.

推荐答案

多个Kafka使用者可以从同一分区的同一分区读取吗默认情况下是主题?

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

是的

默认情况下,我的意思是因为group.id不是必需的,所以我想知道是否在不指定任何group.id的情况下产生多个kafka使用者给他们相同的主题和分区名称,他们将能够阅读来自同一分区?

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?

是的

您可以查看 https://kafka.apache.org/documentation/#consumerconfigs为消费者属性的默认值.

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

这篇关于默认情况下,多个Kafka使用者可以从同一主题的同一分区读取吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆