Module circuit_breaker

Module circuit_breaker 

Source
Expand description

Per-provider circuit breaker for the Kroki-rs server.

Implements the Closed → Open → Half-Open state machine pattern. Each diagram provider type gets its own independent circuit breaker. When the circuit is open, requests fail immediately with 503 without invoking the actual provider.

Structs§

CircuitBreakerManager
Manages circuit breakers for all diagram providers.
ProviderCircuit 🔒
Internal state for a single provider’s circuit breaker.

Enums§

CircuitState
Circuit breaker states.