Yes queues would be the answer, also if heavy loads you may need to scale horizontally with load balancing.
https://laravel.com/docs/12.x/queues#redis
See also for example: https://forge.laravel.com/docs/servers/load-balancing
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone,
I’m working on a Laravel application, and I’ve noticed that when a large or heavy script runs (for example, fetching big data from the database), it causes the system to hang or become very slow for other users accessing the site at the same time.
Is there any way to create a multi-threaded environment or run such long processes in parallel so that they don’t block other requests?
Any suggestions or best practices (like queues, jobs, or async processing) would be really helpful.
Thank you in advance!
Please or to participate in this conversation.