user222
user222

Reputation: 597

to implement circuit breaker pattern, spring hystrix and retryable which one is better to use

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

Answers (1)

Cosmin Ioniță
Cosmin Ioniță

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

Related Questions