tsunghanjacktsai commented on code in PR #171: URL: https://github.com/apache/rocketmq-site/pull/171#discussion_r943046459
########## docs/09-英文/02-Producer/06message2.md: ########## @@ -0,0 +1,76 @@ +# Ordered Message Sending + +## Ordered Message Introduction +Ordered messages have strict requirements on the order in which they are sent and consumed. + +For a given topic, messages are published and consumed strictly on a first-in-first-out (FIFO) basis, messages published first are consumed first and messages published later are consumed later. Partitioned ordered messages are supported in Apache RocketMQ, as shown in the following figure. We can partition messages according to a certain criterion (e.g., the ShardingKey in the figure). Messages with the same ShardingKey are assigned to the same queue and consumed in order. + + + +Ordered messages are also used in a wide range of application scenarios, such as in the example of creating an order, where you need to ensure that the same order is generated, paid and shipped, and these three operations are executed sequentially. In the case of normal messages, the messages of order A may be polled and sent to different queues, and the messages of different queues will not be able to maintain the order while ordered messages are sent by routing the sequence of messages with the same ShardingKey (same order number) to a logical queue. Review Comment: Ahh yes, my mistake. "Ordered messages" is correct. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
