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/21 02:54:51 UTC

[GitHub] [rocketmq] MountainOne commented on issue #1600: Message consumption takes more than 15 minutes, it is possible to generate two identical messages in the retry topic

MountainOne commented on issue #1600: Message consumption takes more than 15 minutes, it is possible to generate two identical messages in the retry topic
URL: https://github.com/apache/rocketmq/issues/1600#issuecomment-556881629
 
 
   RocketMQ guarantees that the message will be delivered without loss, but there is no guarantee that the message will not be duplicated. RocketMQ handed over the work of resolving the message to the user.
   There are two main ways to solve the message duplication: the first method is to ensure the idempotency of the consumption logic (multiple calls and the same call); the other method is to maintain a record of the message that has been consumed, and check the message whether have been consumed before the query.
   
   RocketMQ保证了消息一定投递且不丢失,但不保证消息不会重复。RocketMQ把解决消息重复的工作交给了用户。
   解决消息重复主要有两种方法:第一种方法是保证消费逻辑的幂等性(多次调用和一次调用相同);另一种方法是维护一个已经消费消息的记录,消费前查询这个消息是否被消费过。

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