Advanced Circuit Breakers for Laravel
summary
Shows a concrete Laravel circuit-breaker implemented as the fuse package for queues, demonstrated with Stripe hitting 10k stuck payment jobs and reduced recovery time from hours to seconds. Uses a job middleware, tries = 0 plus max exceptions = 3, release(delay) instead of failing, cache-backed state (closed/open/half-open), 50% failure threshold and 60s half-open test allowing one probe request. Includes a dashboard and fuse with 88,000+ installs.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:15Why circuit breakers matter
- 3:54How circuit breakers work
- 8:25Implementing in Laravel
- 13:16Configuration and events
- 17:14Live demo setup
- 19:32Demo without breakers
- 20:25Demo with breakers
- 22:17When to use breakers
- 24:08Benefits of resilience
- 24:31Introducing Fuse package
- 26:34Q&A session
related talks
40mEngineering Complex Applications with Laravel 4
25mWriting resilient code
20mTune Your Service Mesh
09mLightning Talk: Where Has My Circuit Breaker Gone?
25mBuilding Rapid Web Applications with Laravel + Filament
30mTim Macdonald :: Thoughtful Performance
30mRefactoring to SOLID in Laravel
46mCuring the common loop
