Documentation Index
Fetch the complete documentation index at: https://cloud.laravel.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
The Laravel queue is one of the most popular features of the framework, and Laravel Cloud makes it simple to start queue workers to process jobs that are dispatched by your application for background processing.A new fully managed queues solution is currently available in early access. To request access, contact Laravel Cloud support.
Queue processing options
Laravel Cloud offers two approaches for processing queued jobs:- Worker Clusters (recommended) - Dedicated clusters for queue workers, scheduled tasks, and custom background processes
- App Cluster Background Processes - Best for development and low-volume processing
| Feature | Worker Clusters | App Cluster Background Processes |
|---|---|---|
| Queue Isolation | Separated from web traffic | Shared with web traffic |
| Auto-scaling | CPU/RAM based scaling | CPU/RAM based scaling |
Worker clusters (recommended)
Best for: Medium to high-volume processing separated from web traffic Worker clusters let you runphp artisan queue:work in a dedicated cluster that is isolated from the compute handling your application’s web traffic. Worker clusters can also manage additional scheduled tasks and custom background processes, and scale based on CPU/RAM usage.
Learn more about creating worker clusters
App cluster background processes
Best for: Development and low-volume processing Runphp artisan queue:work as a background process in your all-in-one App cluster alongside your web application. Cost-effective, but queues compete with web traffic for resources.
Creating queue workers on worker clusters
Running your application’s queue workers on a dedicated Worker cluster, rather than on the App cluster that handles incoming HTTP traffic, allows you to scale queue processing independently of your web traffic. To add queue workers to a dedicated Worker cluster, first create the Worker cluster. Then, click on the Worker compute cluster within the infrastructure canvas dashboard. Within the “Background processes” section of your cluster settings, click “New background process”. Next, configure your queue worker options based on your environment’s requirements and select the number ofqueue:work processes within the given configuration that you would like to create. Finally, save and deploy your environment changes to start your queue worker.
Creating queue workers on app clusters
The simplest way to begin processing queued jobs is to add a queue worker background process to your environment’s App compute cluster. When running queue workers on your App compute cluster, queued jobs will be processed on the same compute instances that handle your application’s incoming HTTP traffic. To get started, click on your environment’s App compute cluster within the infrastructure canvas dashboard. Then, within the “Background processes” section of your cluster settings, click “New background process”.
queue:work processes within the given configuration that you would like to create. Finally, save and deploy your environment changes to start your queue worker.

When running queue workers via Laravel Cloud, there is no need to run the
queue:restart Artisan command after each deployment.Queue clusters
Queue clusters runphp artisan queue:work in a fully isolated cluster whose sole purpose is running and intelligently scaling queue worker processes based on job latency and queue depth.
If you have an existing queue cluster, it will remain visible within your environment’s infrastructure canvas and continue processing jobs. New queue clusters cannot be created.
Custom background processes
In addition to configuringqueue:work processes, Laravel Cloud also allows you to configure arbitrary long-lived custom background processes, such as Laravel Horizon.
To get started, click on a compute cluster within your environment’s infrastructure canvas dashboard. Then, within the “Background processes” section of your cluster settings, click “New background process”.
Next, click the “Custom worker” tab and provide your custom worker command and the number of instances of the command that should be started. For instance, for Laravel Horizon, you should provide the php artisan horizon command and specify that Laravel Cloud should create 1 process.


