webrek/laravel-circuit-breaker
try-catch blocks with sleep()) with a standardized, maintainable pattern.Adopt if:
Look elsewhere if:
For Executives: *"This package prevents a single failing third-party service (like a payment gateway or partner API) from taking down our entire app. Right now, if their service slows down or crashes, our queues back up, timeouts pile up, and users see errors—even for unrelated features. The circuit breaker will:
For Engineering: *"This gives us a standardized way to handle external service failures without scattering retry logic across the codebase. Key benefits:
Http::post(), Bus::dispatch()) in a circuit breaker with minimal code.trip_after=5_failures, timeout=30s).ProcessPaymentJob to trip after 3 consecutive Stripe API failures, then retry every 5 minutes until the service recovers. No more manual sleep(10) hacks in retry loops.*For DevOps/SRE: *"This complements our existing monitoring by adding proactive failure isolation. Instead of alerting on timeouts after they’ve already impacted users, the circuit breaker:
How can I help you explore Laravel packages today?