Replies: 4 comments 2 replies
-
Usually such counters are used to |
Beta Was this translation helpful? Give feedback.
1 reply
-
Similar to this: #2569 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm sure I'm not alone, please do not hesitate to press 👍 if you need this functionality as well |
Beta Was this translation helpful? Give feedback.
1 reply
-
I plan to add this for the version after 3.13 (which should be 4.0). It will only work for CQv2. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Currently I am using simple queues to dispatch heavy jobs between worker instances of my java app. Sometimes, jobs processing results in unexpected errors causing instance to crash without any capability to reject source message before dying. In this case
message is simply redelivered to another instance which most probably will crash as well. As far as I see,
Envelop
already provides convenient methodisRedelivered()
to resolve whether it is not the first attempt already, but it would be great to get particular attempt counter as well. It will help an application to check the counter before processing and reject it to DLQ if it exceeds some kind of a threshold.Describe the solution you'd like
Just some additional header like
x-retry-count
passed from message broker to a consumer will be quite enough.Describe alternatives you've considered
I know that similar header is already added to a message when it is returned from DLQ back to processing, but as I said in the beginning, sometimes it is not possible to reject inbound message
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions