-
Notifications
You must be signed in to change notification settings - Fork 49
Add automatic retry to fluent RestTemplate calls #13
Comments
Looks great! We may add a new retry method to the fluent api that could delegate to RetryOperations. We would have to check if aspects would new to be changed accordingly to place correlation ids. |
Btw, I have never used Spring Retry in my project, but AFAIK the waiting process in SR is blocking (see ThreadWaitSleeper which seems to be used in different BackOffPolicy implementations). That would mean that given thread is blocked for long seconds or minutes which does not scale well. |
That's right, at the time I wrote async-retry
Nope. See above.
It depends on whether this is an issue for you or not. If your fluent
Yes, I was maintaining |
@nurkiewicz so maybe we could count on you on making this branch up to date? :) and maybe also a PR for this one? :D |
Sorry, missed last comment. It should be fairly straightforward, Java 7 branch lacks one bug fix and is not in Maven Central. Please track progress in nurkiewicz/async-retry#4. |
async-retry was just backported to Java 7. If I manage to find some time, I can look at this issue, but probably next in this week. Leave a comment if you start working on this ticket first. Just keep in mind that Hystrix 1.4 RC1 brings very useful |
Ok let's do as you say - if any of us wants to pick it we will send a msg here about it. Otherwise it's yours. If you need any support just ping any of us. |
@nurkiewicz Is it possible to use AsyncRetry with Springs AsyncRestTemplate? I messed around abit with it yesterday, but didn't get it to work. Stumbled upon this thread and thought i would ask the expert :) |
Hystrix doesn't handle automatic retry by design (see this tweet). Maybe Spring Retry can be used instead? All suggestions are welcomed.
The text was updated successfully, but these errors were encountered: