You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/12/01 08:38:36 UTC

[GitHub] [rocketmq] linux-lpx opened a new issue, #5630: 一个消费服务,两个节点,消息总是被其中一个节点获取到,这些消息是存放在同一个队列上的

linux-lpx opened a new issue, #5630:
URL: https://github.com/apache/rocketmq/issues/5630

   ![image](https://user-images.githubusercontent.com/15316382/205004541-69148668-0c7f-40e2-a5a3-d8f3a50e236d.png)
   
   消费模式是这样的
   ```
   @RocketMQMessageListener(topic = MyProducer.TOPIC_NAME,
           consumerGroup = MyProducer.CONSUMER_GROUP_IN_ORDER,
           messageModel = MessageModel.CLUSTERING,
           consumeMode = ConsumeMode.ORDERLY,
           maxReconsumeTimes = 3, // 重试三次
           selectorExpression = "tag_order")
   ```
   


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] linux-lpx closed issue #5630: 一个消费服务,两个节点,消息总是被其中一个节点获取到,这些消息是存放在同一个队列上的

Posted by GitBox <gi...@apache.org>.
linux-lpx closed issue #5630: 一个消费服务,两个节点,消息总是被其中一个节点获取到,这些消息是存放在同一个队列上的
URL: https://github.com/apache/rocketmq/issues/5630


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] linux-lpx commented on issue #5630: 一个消费服务,两个节点,消息总是被其中一个节点获取到,这些消息是存放在同一个队列上的

Posted by GitBox <gi...@apache.org>.
linux-lpx commented on issue #5630:
URL: https://github.com/apache/rocketmq/issues/5630#issuecomment-1334650175

   谢谢,懂了


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] RongtongJin commented on issue #5630: 一个消费服务,两个节点,消息总是被其中一个节点获取到,这些消息是存放在同一个队列上的

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #5630:
URL: https://github.com/apache/rocketmq/issues/5630#issuecomment-1333554540

   @linux-lpx 队列数是多少,如果是1的话那只有一个消费者被消费到。否则队列会负载均衡到对应consumer上,参考https://github.com/apache/rocketmq/blob/develop/docs/cn/design.md#42-consumer%E7%9A%84%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org