Package io.github.suppie.spring.cache
Class MultiLevelCacheConfigurationProperties.CircuitBreakerProperties
java.lang.Object
io.github.suppie.spring.cache.MultiLevelCacheConfigurationProperties.CircuitBreakerProperties
- Enclosing class:
- MultiLevelCacheConfigurationProperties
Circuit breaker just records calls to Redis - it does not time out them.
To simplify defaults, we rely on four core properties:
failureRateThresholdslowCallRateThresholdslowCallDurationThresholdslidingWindowType
- Assuming that call is considered to be slow after 250ms
- Then in 1 second we should be able to process more than 4 calls
- If sliding window is count based then
permittedNumberOfCallsInHalfOpenStateshould be 4,minimumNumberOfCallsis 2 andslidingWindowSizeis 8 (calls == 2 seconds) - If sliding window is time based then
permittedNumberOfCallsInHalfOpenStateshould be 4,minimumNumberOfCallsis 2 andslidingWindowSizeis 2 (seconds == 8 seconds)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CircuitBreakerProperties
public CircuitBreakerProperties()
-