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

ink25's avatar
Level 1

Job Queues on multiple servers problem

I'm trying to deploy a Laravel application on multiple servers with a shared job queue (using Redis). The servers are designed so git updates can be deployed with zero-downtime. This works by automatically creating a new, unique app directory containing the current date and time and then flipped with a symlink each time. This works great when running one server and is a common approach to zero-downtime from what I understand.

When I add multiple servers, the directory names created for new deployments can vary between servers because of slight differences in the deployment times. Thus, when running queues the jobs point to a directory correct on the server that created the job, but if another server picks up the job to process then it won't find the files.

Has anyone else run into this issue and have any possible solutions?

0 likes
0 replies

Please or to participate in this conversation.