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 2019/11/28 14:09:00 UTC

[GitHub] [rocketmq] liyiwen3 commented on issue #1610: Is it neccessary that use lock per message queue where orderly comsuming?

liyiwen3 commented on issue #1610: Is it neccessary that use lock per message queue where orderly comsuming?
URL: https://github.com/apache/rocketmq/issues/1610#issuecomment-559508000
 
 
   > 有必要。队列锁能保证同一个队列的ConsumeRequest在线程池被消费不会是乱序的,ProcessQueue的consuming状态位无法代替锁的作用。
   
   由于对消息的拉取是串行的,所以用ProcessQueue的consuming状态可以保证,同一个时间不会有两个ConsumeRequest,对同一个队列进行顺序消费。所以我觉得队列锁还是没有必要的。您的回答不能解决我的疑惑,如果可以的话进一步解答我的疑惑,万分感谢。

----------------------------------------------------------------
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


With regards,
Apache Git Services