Updated on 2022-06-01 GMT+08:00

Suggestions

It is recommended that the number of consumers in the same group be the same as the number of partitions in the topic to be consumed.

If the number of consumers in a group is greater than the number of partitions in a topic, redundant consumers cannot consume messages in this topic. If the number of consumers is less than the number of partitions in a topic, the concurrent consumption cannot be fully reflected. Therefore, it is recommended that the number of consumers be the same as the number of partitions in a topic.