Replies: 2 comments 1 reply
-
I like that idea. @ozangunalp WDYT? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this deserves to be integrated into the existing dead-letter-queue strategy. The only fallback strategy that makes sense is fail-stop, as ignore can be implemented with standard error handling. If we go down the composition path we can imagine a separate failure strategy that'll instantiate others and filter failure reasons according to it's configuration |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building a streaming platform and I have certain use cases where certain errors need to go to DLQ but others I want to fail on. For example, custom application exception is thrown, send it to DLQ otherwise fail. The current DLQ failure strategy is all or nothing which is not appropriate for this type of handling.
I implemented a new failure strategy to handle this and would like to add it back to the project as I think it can be useful for others to use. It's not complex - basically takes in a list of exceptions and if the reason is one of them, sends it to DLQ otherwise fails.
eg
Would be happy to contribute it back.
Beta Was this translation helpful? Give feedback.
All reactions