Skip to content

Commit

Permalink
Update 03fifomessage.md (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
totalo authored Jan 16, 2024
1 parent cb5340d commit 8a23da9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ sh mqadmin updateTopic -n <nameserver_address> -t <topic_name> -c <cluster_name>

**串行消费,避免批量消费导致乱序**

消息消费建议串行处理,避免一次消费多条消费,否则可能出现乱序情况。
消息消费建议串行处理,避免一次消费多条消息,否则可能出现乱序情况。

例如:发送顺序为1-\>2-\>3-\>4,消费时批量消费,消费顺序为1-\>23(批量处理,失败)-\>23(重试处理)-\>4,此时可能由于消息3的失败导致消息2被重复处理,最后导致消息消费乱序。

Expand Down

0 comments on commit 8a23da9

Please sign in to comment.