Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

abdunnasir's avatar

Laravel best way to execute 100 jobs in parallel

Hello,

I am building an uptime monitoring application as a hobby project.

Suppose I want to monitor 1000 websites every minute. What is the best way to do this?

If I add all 1000 websites to a queue, it will take more than one minute to process all the checks. That means the next monitoring cycle may start after 3–4 minutes, so I cannot achieve a true 1-minute interval.

What is the best approach to handle this in Laravel?

0 likes
1 reply
JussiMannisto's avatar

Turn the check into a job and dispatch those as needed. Start as many queue worker processes as it takes to have the desired throughput.

https://laravel.com/docs/12.x/queues

https://laravel.com/docs/12.x/queues#configuring-supervisor

You can monitor the state of queues by installing Laravel Pulse.

Use Redis as the queue driver if you aren't already. You don't want to overload your database.

If you want to reduce queue processing overhead, you can handle a batch of URLs on each job.

Please or to participate in this conversation.