Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

咨询! #153

Open
letian-tang opened this issue Sep 23, 2021 · 1 comment
Open

咨询! #153

letian-tang opened this issue Sep 23, 2021 · 1 comment
Assignees

Comments

@letian-tang
Copy link

letian-tang commented Sep 23, 2021

问题描述
消息发送成功,删除本地消息前,补充任务正好执行扫描到数据库中这条消息(因为并发还没删除掉),重新投递了。
消费者做了幂等,也没有问题。我想问的是这样的概率在实际使用中,发生的概率多大!

@keliwang
Copy link
Contributor

补偿任务扫描消息时是会附带一个限定条件的:消息的更新时间和当前时间要有一定间隔,这样就保证了大多数情况下不会处理到正在发送的消息。所以实际发生的概率非常低。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants