-
Notifications
You must be signed in to change notification settings - Fork 344
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
[feature] Max Retry per msg feature added #939
Conversation
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
It looks like you want to use the Properties to override the MaxDeliveries of dlq. |
This is the simplest and best way I found for it.. because retry and dlq is managed at client side in all libs so we can use the same... |
I see. I suggest you make a discussion to mailing lists, see https://pulsar.apache.org/community/#section-discussions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ngoyal16 work for this. Sorry for request change.
Currently, we prefer users to use the nack backoff Policy to customize their own retry strategy. Currently NackBackoff is an interface that provides a default backoff retry strategy. If the strategy does not meet the needs, we can try to implement the NackBackoff interface to meet the current needs.
The current implementation of ReconsumeLater relies on the function of delaying messages, and the Go SDK still does not support the backoff retry function. Of course, it is not planned to continue to support it in the future. The following problems are found in actual production use:
- Too many delayed messages will increase the load on Broker
- NackBackoff can completely replace the usage logic of ReconsumeLater
If there is something unsatisfactory, we prefer to support more customized features in NackBackoff
Close this PR, this idea has not been approved by PMC. |
The discussion happened here: https://lists.apache.org/thread/b9rfv6t307z439xx3zt2ym4p140qzp06 |
(If this PR fixes a github issue, please add
Fixes #<xyz>
.)Fixes #890
Motivation
Add a feature to allow Max Retry per msg.
Modifications
Msg will have max reconsume times property. if not present use default property from consumer max deliveries
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation