Quantcast
Channel: User Jonathan - Stack Overflow
Viewing all articles
Browse latest Browse all 40

Answer by Jonathan for Circuit breaker design pattern implementation

$
0
0

For a simple, straightforward circuit breaker implementation, check out Failsafe (which I authored). Ex:

CircuitBreaker breaker = new CircuitBreaker()  .withFailureThreshold(5)  .withSuccessThreshold(3)  .withDelay(1, TimeUnit.MINUTES);Failsafe.with(breaker).run(() -> connect());

Doesn't get much simpler.


Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>