You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/05/29 01:11:50 UTC

[GitHub] [rocketmq] lizhiboo commented on issue #2052: any good practice to deal with multi test environment in RocketMq

lizhiboo commented on issue #2052:
URL: https://github.com/apache/rocketmq/issues/2052#issuecomment-635699533


   > in our company,use rocketMq to process message,but sometimes we need message only consume in particular server。
   > 
   > we modify the consume rebalance policy to let one server to consume all messages。
   > but i want know any best practice in community?
   
   Try to use the following method, business layer make sure only the particular server start consume task by using a lock.
   `        consumer.setMessageModel(MessageModel.BROADCASTING);
   `


----------------------------------------------------------------
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:
users@infra.apache.org