Show HN: BreakerMachines – Modern Circuit Breaker for Rails with Async Support
BreakerMachines The circuit breaker that went where no Ruby has gone before! ⭐ A battle-tested Ruby implementation of the Circuit Breaker pattern, built on state_machines for reliable distributed systems protection. Quick Start gem ' breaker_machines ' class PaymentService include BreakerMachines :: DSL circuit :stripe do threshold failures : 3 , within : 1 . minute reset_after 30 . seconds fallback { { error : "Payment queued for later" } } end def charge ( amount ) circuit ( :stripe ) . w