Understand Spring Cloud Circuit Breaker implementations
mainSpring Cloud Circuit Breaker provides a common abstraction for circuit breaker patterns, allowing you to switch between different underlying fault tolerance libraries. The project currently supports three main implementations:
- Resilience4J: A comprehensive library supporting circuit breakers, rate limiters, bulkheads, and more. It is compatible with both blocking and reactive applications.
- Spring Retry: Provides declarative retry support with circuit breaker functionality. It is a mature implementation with extensive configuration options.
- Framework Retry: A lightweight implementation built on Spring Framework 7's native retry support. Note that this implementation does not support reactive applications.
To use these features, you interact with the APIs defined in Spring Cloud Commons.