zackaj/laravel-debounce
Debounce Laravel jobs, notifications, and (Laravel 11+) artisan commands to prevent spam and reduce queue load. Uses unique locks and caching to delay execution until activity stops. Tracks each request occurrence with reports including IP and authenticated user.
php artisan optimize during peak hours).Adopt if:
Look elsewhere if:
shouldBroadcast).For Executives: "This package lets us cut queue costs and improve user experience by consolidating repetitive jobs/notifications (e.g., alerts, syncs) into single delayed executions. For example, instead of spamming users with 10 ‘file uploaded’ notifications, we’ll send one after a 5-second delay. It’s like a ‘throttle’ for background tasks—automated, scalable, and built for Laravel. We can also track these events for analytics or audits."
For Engineers: *"Laravel-debounce provides a drop-in solution for debouncing jobs, notifications, and CLI commands using atomic locks and caching. Key benefits:
getReport() to log occurrences (IP, user, timestamps).before/after) for custom logic (e.g., logging, metrics).How can I help you explore Laravel packages today?