wenfengwang edited a comment on issue #271: [native]start multiple consumer in 
one process, or subscribe multiple topic in one consumer couldn't work.
URL: 
https://github.com/apache/rocketmq-client-go/issues/271#issuecomment-558556566
 
 
   @wongxinjie In RocketMQ, it is not allowed that create multiple consumers 
have the same `consumerGroup` in one client Instance. If you want to create 
multiple consumers have the same `consumerGroup` in one process, you should 
make sure for unique 
[ClientID](https://github.com/apache/rocketmq-client-go/blob/native/internal/client.go#L330)
 by calling 
[WithInstance](https://github.com/apache/rocketmq-client-ACgo/blob/native/consumer/option.go#L176)
 when create consumer instance. 
   
   After fixing, it may work well that subscribe multiple topics in one 
consumer and create multiple consumers that have different `consumerGroup` in 
one client instance, welcome have a test :)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to