Reputation: 597
I was looking for the difference between spring hystrix and retryable in spring boot microservices as both are used to implement circuit breaker pattern.Thanks.
Upvotes: 1
Views: 183
Reputation: 4055
AFAIK, a circuit breaker is a component does not retry an operation that it's going to fail anyway.
Spring boot's @Retryable was not designed to work as a circuit breaker, but as an exponential-backoff retry mechanism.
Hystrix is a circuit breaker library, but unfortunately it's not longer maintained. You can use Resilience4J. It's inspired from Hystrix, but much better.
Upvotes: 2