-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Configure if message goes to DLQ after retries conditionally, based on MessageHeaders and thrown Exception #3700
Comments
@santunioni The See these: https://docs.spring.io/spring-kafka/reference/retrytopic/dlt-strategies.html |
Yes. That is my case. I am using non-blocking retries. However, after retrying N times by consuming and producing to topic I don't know if the @DltHandler would work for me, when the system don't poll from DLT directly. |
Could I implement the behavior with |
I guess we need to understand the issue a bit further. Do you have a small sample where the issue can be reproduced? |
Well, sounds like you are over complicating. I don't think we would need some extra contract to introduce if that is really possible with existing API. Please, give it a chance and let us know! |
Expected Behavior
I should be able to decide if message goes to DLT based on MessageHeaders predicate. I want to provide classes that implement something like the interface
Current Behavior
I can only configure the DLT decisions as static:
Context
We do heavy testing on production here. In my case, I don't want messages with header
isTest=true
to go to DLT, because once in a while manual testing produce invalid messages, that we can't process.Note I want messages to be retryed, but be discarded after, not going to DLTs. I am not aware of any workaround.
The text was updated successfully, but these errors were encountered: