Vigyata.AI
Is this your channel?

Episode 5 - Making Reminder Emails Faster - Queue Processing with Supervisor

279 views· 11 likes· 18:48· May 28, 2025

🛍️ Products Mentioned (6)

In the last episode, sending reminder emails was slow - but not anymore. In this video, we’ll speed things up using Laravel queue jobs and process them in the background using Supervisor on Cloudways. === OFFER === GET 15% DISCOUNT ON ALL PLANS OF CLOUDWAYS HOSTING FOR 3 MONTHS https://unified.cloudways.com/signup?id=1029148&coupon=LARATIPS&data1=LARA6&utm_content=LARA6&utm_source=YouTube === Important Links === Fonts, extensions I use, and Support Laratips links: https://bit.ly/m/laratips === Video Related Links === 👉 Project GitHub Link https://github.com/AshishDhamalaAD/todoapp 👉 Watch the full playlist: Not Just Another Todo App https://www.youtube.com/playlist?list=PL2DahmvUpeutVEyDcVzAMVH7NLSNy6lrS 👉 Laravel Documentation Links https://laravel.com/docs/12.x/queues https://laravel.com/docs/12.x/horizon 👉 Configuring Laravel Horizon with Cloudways Supervisor Jobs https://chaiwei.hashnode.dev/configuring-laravel-horizon-with-cloudways-supervisor-jobs #laravel #php #laraveltip #laratips

About This Video

In the last episode, sending reminder emails was slow, and I didn’t want the whole request/command to sit there waiting on mail. So in this episode I move that work to Laravel queues and make it very, very fast from the user’s/command’s perspective. I install Laravel Horizon so I can actually see what’s happening with a clean UI (pending, completed, failed), and then I switch my queue connection to Redis because Horizon only works with Redis. After that, I create jobs and dispatch them so the heavy work runs in the background while my command finishes instantly. I also show a super important real-world detail: rate limits. If you fire multiple email jobs at the same time, some providers will throw “too many emails per second” (Mailtrap free plan did for me). So I delay jobs (like adding 1 second or even 5 seconds) to control throughput, and I explain why chunking/limiting matters depending on your provider. Finally, I deploy everything to Cloudways, install Supervisor, and run Horizon as a Supervisor job so it stays alive in production. End result: emails are queued, processed reliably in the background, and you can monitor failures and retries properly.

Frequently Asked Questions

🎬 More from Laratips