class

Session::CircuitBreaker

Inherits Reference < Object

Circuit Breaker implementation for resilient service calls

Constructors

new(config : CircuitBreakerConfig = CircuitBreakerConfig.new)
Source

Instance methods

allow_request?

Check if circuit allows requests

Source
call

Execute a block with circuit breaker protection

Source
config
Source
failure_count
Source
last_failure_time
Source
reset!

Manually reset the circuit breaker

Source
state
Source
time_until_retry

Get time remaining until circuit retry

Source