[英]Different kafka topic with different amount of partitions within the same consumer group
Can I have different kafka topic with different amount of partitions within the same consumer group?我可以在同一个消费者组中有不同数量的分区的不同 kafka 主题吗? If so, can I scale the consumers to the number of the topic with the most partitions?
如果是这样,我可以将消费者扩展到分区最多的主题的数量吗? Thanks
谢谢
Yes, each topic can independently have any number of partitions.是的,每个主题可以独立拥有任意数量的分区。 I'm assuming you are consuming multiple topics with the same consumer, in any case, what will happen is that the topics that have fewer partitions than consumers will be consumed by a subset of the consumers (some consumers will not get any messages from these topics since they won't have any partition assigned)
我假设您正在使用同一个消费者使用多个主题,无论如何,会发生的情况是分区少于消费者的主题将被一部分消费者消费(一些消费者不会从这些消费者那里获得任何消息)主题,因为它们不会分配任何分区)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.