I am running a test from job which makes a http POST submission to 3rd party REST endpoint and implemented retry using requestHandlerAdvice
with backoffpolicy
policy set as exponential
. I was thinking is there a way to implement circuitBreaker
with requestHandlerAdvice
. The reason for this is if after couple of retries message fails , then circuit shall remain open and after some threshold when I retry with post request and I get a response, I will resume Post submissions to 3rd party REST endpoint
Asked
Active
Viewed 756 times
0

Java techBuff
- 43
- 10
1 Answers
1
The framework provides both retry and circuit breaker advices.
Simply add both to the request handler advice chain.

Gary Russell
- 166,535
- 14
- 146
- 179
-
Meanwhile Gary is right, let me ask additional info or rephrase: do you want to open circuit breaker for all other requests to the endpoint meanwhile the current one is retrying? – Artem Bilan Nov 29 '17 at 03:34
-
You have led to even more questions :) . Currently I was trying to send each request synchronously. Let me ask another question to you: How could you make parallel sync calls . Being a newbie to this, I believe Routers would be used. Please enlighten me :) – Java techBuff Dec 08 '17 at 05:53
-
Thanks @garyRussel for the reply – Java techBuff Dec 08 '17 at 05:55