atomic-circuit-breaker
Zero-Dependency Lock-Free Atomic Sliding-Window Circuit Breaker
Overview
atomic-circuit-breaker implements a zero-dependency, lock-free atomic sliding-window circuit breaker with Closed/Open/HalfOpen transitions, CAS probe gating, monotonic clock support, and RAII permit guards.
Installation
Usage
use ;
let config = new
.with_consecutive_failure_threshold
.with_failure_rate_bps
.with_minimum_calls;
let breaker = new.unwrap;
if breaker.allow
Verification
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For inquiries, please contact the author at root@devhub.vip.