avtonom/delay-exponential-backoff-bundle
Adopt When:
sleep() calls).Look Elsewhere If:
yriveiro/php-backoff).symfony/lock + custom logic or dedicated packages like spatie/backoff.exponential-backoff in npm).resilience4j."This package lets us automatically handle temporary failures in our external service calls—like payment processors or third-party APIs—without overloading their systems or ours. By using exponential backoff with jitter, we’ll retry failed requests smarter, reducing costs from unnecessary retries and improving uptime. It’s a lightweight, battle-tested solution that requires minimal dev effort, aligning with our goal to [reduce operational incidents by X%/quarter]."
Key Outcomes:
*"This Symfony bundle provides a drop-in exponential backoff solution with configurable jitter, built on top of yriveiro/php-backoff. It’s ideal for:
Why This Over Custom Code?
✅ Standardized: Avoids inconsistent sleep() calls across the codebase.
✅ Configurable: Set max retries, caps on delay duration, and jitter strategies.
✅ Lightweight: ~50 LOC, no external dependencies beyond Symfony.
✅ Symfony-native: Works seamlessly with DI, console commands, and bundles.
Proposal:
Alternatives Considered:
Next Steps:
How can I help you explore Laravel packages today?