[英]Disadvantages of having different consumers subscribed to different topics in same consumer group
What are the disadvantages of having different consumers subscribed to different topics in same consumer group with same group id?不同的消费者使用相同的组 id 订阅同一消费者组中的不同主题有什么缺点?
If a new consumer joins the above group, is there any effect to other consumers of the group subscribed to different topics?如果有新的消费者加入上述群组,对群组中订阅不同主题的其他消费者有影响吗?
If a new consumer joins the same group, then the group will rebalance, causing all consumers to stop (potentially mid-processing of records), then restart.如果一个新的消费者加入同一个组,那么该组将重新平衡,导致所有消费者停止(可能是记录的中间处理),然后重新启动。
Otherwise, there is no disadvantage as long as all consumer instance have very similar processing logic, or otherwise filter by the topic name by which they want to process.否则,只要所有消费者实例具有非常相似的处理逻辑,或者按他们想要处理的主题名称过滤,就没有缺点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.