bennybauer / circuit-retry

Sample java implementation of a circuit breaker (Hystrix) together with a retry mechanism

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circuit-Retry

A sample java implementation of a circuit breaker (Hystrix) together with a retry mechanism (Failsafe). The retry is encapsulated in the http client (MyHttpClient). When a Hystrix command is using MyHttpClient it isn't aware of retries. In fact, timeout responsibility is handled to retry and is disabled on the command.

Setup

mvn install

Lessons Learned

Hystrix

  • Throwing a HystrixTimeoutException will be considered as FAILURE exuction exception and not TIMEOUT, unless execution.timeout.enabled is false

About

Sample java implementation of a circuit breaker (Hystrix) together with a retry mechanism


Languages

Language:Java 100.0%