Circuit Breaker for Laravel Queue Jobs
"Protect your queue workers from cascading failures when external services go down.
When Stripe goes down at 11 PM, your queue workers don't know. They keep trying to charge customers. Each job waits 30 seconds for a timeout. Then retries. Waits again. Your entire queue system freezes.
Without Fuse: 10,000 jobs × 30-second timeouts = 25+ hours to clear the queue.
With Fuse: Circuit opens after 5 failures. Queue clears in 10 seconds. Automatic recovery when the service returns."
Harris Raftopoulos
@harrisrafto
@harrisrafto.eu