I released Fuse for Laravel at Laracon India 2026

I released Fuse for Laravel at Laracon India 2026

Hey everyone,

I just released a new open-source package called Fuse for Laravel on stage at Laracon India 2026. It implements the circuit breaker pattern for Laravel queue jobs.

The problem it solves is one I’ve run into before. When an external service like Stripe goes down, your queue workers don’t know. They keep making requests, each one waiting 30 seconds for a timeout, then retrying, then waiting again. If you have thousands of jobs queued, your entire queue system freezes for hours while every single job independently discovers the service is down.

Fuse stops this. After a configurable number of failures, it opens the circuit. The remaining jobs skip the API call entirely, fail in milliseconds, and get released back to the queue for later. No data loss, no permanent failures.

The part I’m happiest with is the automatic recovery. Once the circuit opens, Fuse periodically sends a single probe request to test whether the service is back. If it succeeds, the circuit closes and everything resumes on its own. You could be asleep when the outage happens and wake up to a fully recovered system.

A few other things worth mentioning:

The failure classification is intentional. A 429 rate limit or a 401 auth error doesn’t trip the circuit because those aren’t outages. Only server errors and connection failures count.

You can configure different thresholds for peak hours vs off-peak. During business hours you might want a higher tolerance to maximize transactions. Outside business hours you can be more aggressive with protection.

Laravel events fire on every state transition, so you can hook up Slack alerts, Sentry, or whatever monitoring you use.

It requires PHP 8.3+ and Laravel 11+, works with any cache driver (Redis recommended), and has no external dependencies. Adding it to a job takes a single middleware line.

Check it out on GitHub: harris21/laravel-fuse

Would love to hear your feedback if you try it.

Cheers!

Harris​​​​​​​​​​​​​​​​

Subscribe to Harris Raftopoulos

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe