Queues in Laravel
June 2021 / 1 h 31 min / Laravel 8
Notice: if you're interested in more courses than just this one, the best deal is to subscribe to the Yearly membership!
In this 1.5-hour course, you will learn what you need to run Laravel Jobs via Queues in the background, so your users wouldn't wait for some email to be sent or a report to be processed.
We will touch on these topics:
- How to write code for Laravel jobs and how to put them on queue
- How to run and monitor the queues
- How to deal with the failed jobs: restart, log errors, notify the developers
- What are the extra tools like Supervisor and Laravel Horizon
- ...and more.
Look at the curriculum listed below, and see you inside the course!
StartSimple Example of a Failed Job and Restarting the Queue (4:17)
StartHow to Retry the Failed Job Manually: Many Options (7:28)
StartMethod failed(): Inform Admin About Failure and Perform Cleanup (6:29)
StartLong-Running Jobs: Timeouts, Fatal Errors and a Better Way (11:14)
StartIdempotent Jobs: Double-Check Everything to Avoid Failure (7:42)
StartDelay Jobs if Some Condition Fails (4:21)
PreviewJobs into Groups: Batching and Chaining (8:08)
StartShowing Progress for Batch of Jobs (4:38)
StartMultiple Queues and Priority Jobs (2:25)
StartQueue:listen for Local Development (3:02)
StartOther Queue Drivers: Redis and Laravel Horizon (5:21)
StartSupervisor, Multiple Queue Workers and Horizon Again (6:45)
I consider myself a Laravel expert. Work with Laravel for around 7 years, sharing my thoughts on the YouTube channel "Laravel Daily": https://www.youtube.com/c/LaravelDaily
I also have written a Laravel Daily Blog for 5+ years.