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

关于延迟重试的功能讨论 #16

Open
Flipped199 opened this issue Nov 15, 2024 · 1 comment
Open

关于延迟重试的功能讨论 #16

Flipped199 opened this issue Nov 15, 2024 · 1 comment

Comments

@Flipped199
Copy link

我查看了源代码,似乎消费者返回false之后会立即重试,那么,对于需要延迟重试的场景,我目前的做法是无脑返回true,然后手动重新投递消息,虽然这样也能解决问题,但是总感觉不够优雅,不知道各位有何看法呢

@HDT3213
Copy link
Owner

HDT3213 commented Jan 19, 2025

828cdbe 里面加了 WithNackRedeliveryDelay 可以设置 nack (callback 函数返回 false) 之后到重新投递的间隔。
由于数据结构的限制,如果消费超时消息还是会被立即重新投递。

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