cserwen commented on issue #4656: URL: https://github.com/apache/rocketmq/issues/4656#issuecomment-1192153343
> 想咨询一下 设计的想法,为什么 MQClientInstance 中的consumerTable 的key是group, 而不是 topic+group. 这样就能区分 不同的topic + 相同的group了,对应的是两个不同的consumer。 事实上,一个消费组的所有实例应该订阅相同的Topic,如果不同实例订阅的Topic不相同,服务端保存的订阅关系会被频繁修改,会导致消费实例消费到其他Topic的消息。正确的方法应该是使用不同的消费组去订阅不同的Topic。 In fact, all instances of a consumer group should subscribe to the same topic. If the topics subscribed by different instances are different, the subscription relationship saved by the server will be frequently modified, which will cause the consumer instance to consume messages from other topics. The correct way should be to use different consumer groups to subscribe to different topics. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
