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:
[email protected]


Reply via email to