-
Notifications
You must be signed in to change notification settings - Fork 407
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
Use Exponential Message Delivery Backoff in JetStream dispatcher #13697
Comments
Seems that the backoff functionality was already introduced in the v2.7.1: https://github.com/nats-io/nats-server/releases/tag/v2.7.1, see the comment in the original NATS issue |
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to the lack of activity. |
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
Now that JetStream supports both exponential Additionally, in case The maximum redelivery and timeout are not yet configurable. |
Pre-requisites
msg.NakWithDelay(time.Second * 10)
feature is released in https://github.com/nats-io/nats.goDescription
Currently, the JetStream dispatcher will not NAK the msg if it fails to deliver it to the sink, so that it timeouts after AckWait period and then redeliver. It will keep on trying for some time with a constant backoff.
Once Exponential Message Delivery Backoff is supported by JetStream, we should use the exponential backoff in our JetStream dispatcher instead of constant backoff.
Attachments
Related issue: #13625
The text was updated successfully, but these errors were encountered: