How can I trigger a retry if the consumption of some message fails for a retryable reason? #106
-
Hi all, thanks in advance for any help on this one. We have a reasonably likely race condition in our own application where
So I was wondering: is it possible to have the stream consumer's I tried this but the exception is just swallowed in
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry for the late answer, somehow I'm not notified of new discussion entries :-( I don't think retry is something the client library should handle. Retry can have complicated semantics, so I'd let this responsibility to the application, with its own utilities or retry frameworks [1] [2]. [1] https://github.com/spring-projects/spring-retry |
Beta Was this translation helpful? Give feedback.
Sorry for the late answer, somehow I'm not notified of new discussion entries :-(
I don't think retry is something the client library should handle. Retry can have complicated semantics, so I'd let this responsibility to the application, with its own utilities or retry frameworks [1] [2].
[1] https://github.com/spring-projects/spring-retry
[2] https://resilience4j.readme.io/docs/retry