2021
09-14
09-14
基于rocketmq的有序消费模式和并发消费模式的区别说明
rocketmq消费者注册监听有两种模式有序消费MessageListenerOrderly和并发消费MessageListenerConcurrently,这两种模式返回值不同。MessageListenerOrderly正确消费返回ConsumeOrderlyStatus.SUCCESS稍后消费返回ConsumeOrderlyStatus.SUSPEND_CURRENT_QUEUE_A_MOMENTMessageListenerConcurrently正确消费返回ConsumeConcurrentlyStatus.CONSUME_SUCCESS稍后消费返回ConsumeConcurrentlyStatus.RECONSUME_LATER顾名思义,有序消费...
继续阅读 >