-
Notifications
You must be signed in to change notification settings - Fork 518
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
@Retryable for Reactive Streams #92
Comments
Reactor has its own retry framework, and we don’t know yet if it can be adapted to the declarative model in spring-retry. It’s far from obvious how it would work (to me anyway). If you have some code you can share that will be great. |
@dsyer The idea is to determine return type of method and if it is reactive, apply native retry operators to method invocation. Here's brief code of idea: |
That's a start. I see that you changed the contract of |
@dsyer We could achieve the same by adding additional classes, which will work when reactor is on classpath, without change of existing contracts. If you approve this idea, I could implement this approach. |
Sounds good. |
@dsyer So, Could spring-reply have supported the reactive streams? I have the same scenario. |
@dsyer Ok. Thanks. I have used the retry of reactor. I seems everything is ok. |
Any update? Reactor built in retry framework is a bit hard to use, you can reference Resilience4j implementation |
您好,我已经收到您的邮件,将尽快给您回复。
|
I want @retryable to work, out of the box, with Reactor & RxJava types.
Right now I am using custom annotation & aspect to achieve this.
It would be nice to have this in Spring.
The text was updated successfully, but these errors were encountered: