Where to host a Laravel app with a queue worker and a database in 2026: Laravel Cloud vs Forge vs Railway vs Fly.io vs Render vs Vercel
How Laravel Cloud, Forge, Railway, Fly.io, Render, Vercel and Gregale run a Laravel app with a queue worker, what each costs, and what idle apps do.
For a small Laravel side project with a queue and a database, Laravel
Cloud's Starter plan is the closest to deploy-and-forget: $5 a month plus
usage, an app that sleeps when nobody uses it and wakes in a median of 500 ms
by Laravel's own figure, and managed queues that wake on their own when jobs
arrive. The usual alternatives run php artisan queue:work as a process
that never stops: a Supervisor daemon on a server that Laravel Forge manages
($12 a month plus the server), a worker service on Railway, a worker
process group on Fly.io, or a background worker on Render. Vercel has no PHP
runtime of its own: the community vercel-php runtime was archived on
October 29, 2026, and Vercel now runs Laravel in a container. On Gregale, the
app parks when idle and a cron works the queue once a minute; our test app was
restored from a memory snapshot in 71 ms.
Gregale publishes this page. Every limit and price names its vendor and comes from that vendor's own docs or pricing page, checked on December 1, 2026. The Gregale numbers are from our own test, described below.
At a glance
| Host | How it runs Laravel | Queue worker | When the app is idle | Cost for a small app |
|---|---|---|---|---|
| Laravel Cloud (Starter) | From your Git repository; made for Laravel | A managed queue (one per environment on Starter), or queue:work | Sleeps after a sleep timeout you choose; wakes in a median of 500 ms (Laravel's figure) | $5 a month plus usage, with $5 of usage included; the first month is free |
| Laravel Forge with your own server | On a server Forge provisions at DigitalOcean, AWS, Hetzner or others | queue:work under Supervisor, restarted if it crashes | Always on | Forge Hobby $12 a month for one server, plus the server |
| Railway | Its Laravel guide: app, worker, cron and Postgres services | A separate queue:work service | Hobby and above run always on; Free services sleep after 5 to 10 minutes without outbound traffic | Hobby $5 a month with $5 of usage included; memory about $10 per GB a month |
| Fly.io | fly launch writes a Dockerfile and fly.toml | A worker process group running queue:listen, in its own Machine | Web Machines can stop or suspend; Fly's example sets that only for the web process | $2.19 a month for the smallest Machine (shared CPU, 256 MB) while it runs |
| Render | Docker | A background worker | Paid services are always on; Free web services spin down after 15 minutes and take about a minute to come back | $7 a month for the smallest paid instance (512 MB), per service |
| Vercel | A container on Fluid compute | None that runs all the time; Vercel Cron calls an endpoint instead | Scales to zero after idle periods | Billed by active CPU, provisioned memory and invocations |
| Gregale (Hobby) | Your Dockerfile, with FrankenPHP | A cron calls a route that runs queue:work --stop-when-empty | Paused between requests, then parked; our test app was restored in 71 ms | $10 a month for 5 apps, with 200 GB-RAM-hours and one PostgreSQL database included |
The queue worker decides the bill
php artisan queue:work is a loop: it asks the queue for a job, runs it, and
asks again. That shapes what each host charges you:
- Where a process is billed while it runs (Forge's server, Railway, Fly.io and Render), the worker is billed all month, whether it handles one job a day or a thousand, because it never stops.
- Where an idle app goes to sleep, a waiting worker either keeps the app awake or is stopped with it. Laravel Cloud's managed queues get around this: they wake on their own when jobs arrive. A worker on Laravel Cloud's App cluster runs until the sleep timeout, and a job still running then is interrupted.
- Vercel stops background workers when a container scales down. Its Laravel guide says long-running queue workers and the scheduler "assume the container stays active", and points to Vercel Cron and Vercel Queues instead.
- Gregale runs no process that waits for jobs. A cron calls a route on your app once a minute; the route runs the scheduler, works the queue until it is empty, and the app pauses again.
The database matters too. A database queue that a worker checks every few seconds, or a cron every minute, is a database that never sits idle. On hosts whose databases suspend when idle, such as Neon Serverless Postgres on Laravel Cloud or managed PostgreSQL on Gregale, that keeps it running.
Laravel Cloud
Laravel Cloud is Laravel's own platform, and it knows how a Laravel app is put together. Starter is $5 a month plus usage, Growth $20 and Business $200, and each includes $5 of usage a month; the first month on Starter is free. Compute is billed per second; the smallest size, Flex 512 MiB, costs at most $6 a month.
Every plan includes scale-to-zero. An environment sleeps when it receives no request within its sleep timeout, which you set; Laravel states no default. Laravel puts the median wake at 500 ms; legacy Flex sizes take 5 to 20 seconds. Only Flex sizes scale to zero.
- Queues. A managed queue costs $1 per million operations for standard queues, and Starter allows one per environment. Managed queues wake on their own when jobs arrive, so they fit an app that sleeps. Dedicated worker clusters, which can stay awake, start on Growth.
- Scheduler. A toggle runs
schedule:runevery minute, and a sleeping environment wakes to run scheduled tasks. Laravel's docs warn that this can keep the database awake, so it cannot scale to zero. - Databases. Laravel MySQL and Neon Serverless Postgres are available on every plan. Bandwidth past the included amount is $0.10 per GB.
Laravel Forge and your own server
Forge provisions and manages servers at DigitalOcean, AWS, Hetzner and other providers. You pay Forge, and you pay the provider for the server. Forge Hobby is $12 a month (or $120 a year) for one server; Growth ($19) and Business ($39) allow any number.
Forge keeps queue workers running under Supervisor and restarts them if they
crash. The scheduler is a cron entry that runs schedule:run. Everything
runs all the time, so for steady traffic a small server is often the
cheapest option per month. You also look after the server: operating system
updates, disk space, backups and the database on it.
Railway
Railway's Laravel guide splits the app into four services: the app (its
pre-deploy command runs migrations), a worker running php artisan queue:work, a cron service that loops schedule:run every 60 seconds, and
PostgreSQL, with QUEUE_CONNECTION=database. Each service is billed by the
second for what it uses: about $10 per GB of memory and $20 per vCPU a month.
Hobby is $5 a month with $5 of usage included; Pro is $20 a month per
workspace with $20 included. The Free plan gives $1 of usage a month after a
$5 trial credit.
Railway's pricing page says services on the Free plan sleep after 5 to 10 minutes without outbound traffic, and that Hobby and above run always on. Railway counts outbound packets, database connections included, as activity, so a worker that checks the queue and a cron loop keep their services running in any case. The first request to a sleeping service wakes it, and Railway warns that it may get a 502.
Fly.io
fly launch adds a Dockerfile and fly.toml to a Laravel project. Fly's
docs run the queue and the scheduler as process groups in fly.toml, each in
its own Machine:
[processes]
app = ""
cron = "cron -f"
worker = "php artisan queue:listen"
The cron process runs the cron daemon, already set up to run php artisan schedule:run. In Fly's example only the web process has an HTTP service, and
auto stop is set there; the worker and cron Machines keep running.
When a web Machine has been idle for several minutes, Fly can stop it, and the next request boots it in about 2 seconds or more, or suspend it, and the next request resumes it in a few hundred milliseconds. The smallest Machine (shared CPU, 256 MB) costs $2.19 a month while it runs, billed by the second; a stopped Machine costs $0.15 per GB of root filesystem a month. A personal organization can use the Free plan, with $5 of usage every month and up to 3 Machines.
Render
Render runs Laravel from a Dockerfile. The smallest paid instance (512 MB, less than one CPU) is $7 a month, and a background worker for the queue uses the same instance types, so an app plus a worker starts at $14 a month before the database. Render's cron jobs bill by the second, from $0.00016 a minute.
Render's Free web services spin down after 15 minutes without inbound traffic, and spinning back up takes about a minute. A workspace gets 750 Free instance hours a month, and a Free PostgreSQL database expires 30 days after it is created, so Free suits a demo, not a project you keep.
Vercel
Vercel's own runtimes are Node.js, Bun, Python, Rust, Go, Ruby, Wasm, Edge
and Container; PHP is not one of them. vercel-php, the runtime most
"Laravel on Vercel" tutorials use, is community-maintained and not supported
by Vercel, and its repository was archived on October 29, 2026. Its README
recommends a container for new projects.
Vercel's guide to Laravel with Docker runs the image as Vercel Functions on
Fluid compute. Instances handle concurrent requests and scale to zero after
idle periods, and billing counts active CPU, provisioned memory and
invocations. Functions on Hobby run for at most 300 seconds. The guide's
example sets QUEUE_CONNECTION=sync, which runs jobs inside the request, and
for real background work points to Vercel Cron calling an authenticated
endpoint and to Vercel Queues.
Gregale
Gregale has no PHP builder, so a Laravel app deploys from a Dockerfile. Our
Laravel guide uses FrankenPHP on Alpine, which serves
PHP and public/ from one process; the image unpacks to about 290 MB. An
idle app is paused in memory and later parked as a snapshot on disk, and the
next request resumes or restores it.
That image needs Hobby or above: Free's 256 MB app filesystem is too small for it, and Free has no crons or managed PostgreSQL. Hobby is $10 a month for 5 apps with 512 MB each and includes 200 GB-RAM-hours, plus one PostgreSQL database with 1 GiB of storage and 25 CU-hours of compute a month. The database suspends after 2 minutes without activity by default. Past the included hours, a paid plan bills $0.05 per GB-RAM-hour, up to its spend cap.
Run the queue from a cron
Keep Laravel's database queue, and let a Gregale cron work it. A route runs
the scheduler, then works the queue until it is empty:
// routes/api.php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Route;
Route::post('/cron/minute', function (Request $request) {
abort_unless($request->header('X-Faas-Invocation-Source') === 'cron', 403);
Artisan::call('schedule:run');
Artisan::call('queue:work', [
'--stop-when-empty' => true,
'--sleep' => 0,
'--max-time' => 20,
'--tries' => 3,
]);
return ['ok' => true];
});
--sleep 0 matters: without it, queue:work waits its default 3 seconds
after finding the queue empty before it stops, and each run lasts 3 seconds
longer than it needs to.
Gregale removes any X-Faas-* header a visitor sends, so only the cron gets
past the check. Routes in routes/api.php run without sessions, under the
/api prefix; on Laravel 11 and later, php artisan install:api creates
the file. Then declare the cron in gregale.yaml, and tell Gregale the
app only works when called, so it pauses about a second after each request:
lifecycle:
pause: between_requests
triggers:
- kind: cron
app: my-laravel-app
schedule: '* * * * *'
path: /api/cron/minute
skip_if_running: true
What to know about this setup:
- A job waits for the next run, up to a minute. If something must happen while the visitor waits, do it in the request.
- Each run has the request timeout: 30 seconds unless you raise the app's
own, up to 1 minute on Hobby.
--max-time 20stops the worker in time, andskip_if_runningskips a minute while the last run is still working. Work that runs for minutes belongs in a job. - A cron every minute keeps the database awake.
queue:workqueries the jobs table on every run, so the database never reaches its 2-minute suspend timeout and uses its compute allowance around the clock. If jobs can wait, run the cron every 15 minutes: then the database runs about 2 minutes in 15.
What we measured
On December 1, 2026, we deployed the app from our Laravel guide (Laravel
13.44, PHP 8.5 on FrankenPHP) on Gregale at 256 MB and timed its welcome page,
with sessions in cookies and the cache in files, so the page did not need the
database. Server-side times come from Gregale's wake timeline (gregale app wake-timeline).
| What we timed | Median | Range |
|---|---|---|
| Restore from a parked snapshot (10 wakes) | 71 ms | 60 to 75 ms |
| App running after a restore | 104 ms | 90 to 113 ms |
| First byte of the page after a restore | 231 ms | 204 to 263 ms |
| Boot without a snapshot, app running (3 boots) | 1,141 ms | 1,140 to 1,190 ms |
- Deploy: 66 seconds from
gregale deployto a verified release. - From our client, about 160 ms from the app's region, the page's first byte arrived 534 ms after the request when the app had been parked (504 to 758 ms), and 331 ms when it was already running.
- Without a snapshot, as after a configuration change, the app boots from scratch: Laravel and FrankenPHP were serving after about 1.1 seconds.
- The cron: with
pause: between_requests, the route above ran every minute. With nothing queued, a run took 61 to 129 ms (median 72 ms over 27 runs), and Gregale billed about 2 seconds per run at 264 MB (256 MB plus 8 MB): 6,336 MB-seconds for the 12 runs between 21:16 and 21:28 UTC. A month of runs every minute comes to about 6 GB-RAM-hours, 3% of Hobby's 200. Before we added--sleep 0, each run took 3.1 seconds. Our test used thesyncqueue, so the cron did not query a database.
This was one app on one day, measured with our own meter; treat the figures as a guide, not a benchmark. Laravel booted for each request in this setup; we did not test Octane.
Which one to pick
- You want Laravel's own tooling and an app that sleeps: Laravel Cloud.
- Steady traffic, and you are happy to run a server: Forge with a small server.
- The app, a worker, the scheduler and PostgreSQL side by side, always on: Railway or Render.
- Machines in several regions: Fly.io.
- Your frontend is already on Vercel and background work can be cron calls: Vercel's container runtime.
- A side project that is idle most of the day, with PostgreSQL and jobs that can wait a minute: Gregale Hobby.
Sources
Checked on December 1, 2026: Laravel Cloud pricing, Laravel Cloud compute and hibernation, Laravel Cloud queues, Laravel Cloud workers, Laravel Cloud scheduled tasks, Laravel Forge pricing, Forge queues, Forge scheduler, Railway Laravel guide, Railway Serverless, Railway pricing, Fly.io Laravel cron and queues, Fly.io autostop and autostart, Fly.io pricing, Render Laravel with Docker, Render free instances, Render pricing, Vercel runtimes, vercel-php, Vercel: Laravel with Docker, Vercel function duration, Gregale plans, Gregale managed PostgreSQL, Gregale crons and Deploy a Laravel app on Gregale.
Questions
- Where should I host a Laravel app with a queue worker and a database for a small side project?
Laravel Cloud's Starter plan ($5 a month plus usage) is the closest to deploy-and-forget: the app sleeps when idle, wakes in a median of 500 ms by Laravel's figure, and managed queues wake on their own when jobs arrive. Forge with a small server ($12 a month plus the server), Railway, Fly.io and Render run queue:work as a process that never stops. On Gregale Hobby ($10 a month, PostgreSQL included), the app parks when idle and a cron works the queue once a minute.
- Can I deploy a Laravel app for free?
For a demo, yes: Render's Free web services run Laravel from a Dockerfile, but spin down after 15 minutes and take about a minute to come back, and a Free PostgreSQL database expires after 30 days. Fly.io's Free plan gives a personal organization $5 of usage a month, and Laravel Cloud's first month on Starter is free. Gregale's Free plan is too small for a Laravel image and has no crons or database, so Laravel needs Hobby there.
- Does Vercel support Laravel?
Not with a PHP runtime of its own: Vercel's runtimes do not include PHP, and the community vercel-php runtime, which is not supported by Vercel, was archived on October 29, 2026. Vercel now runs Laravel as a container on Fluid compute. Long-running queue workers and the scheduler don't fit there; Vercel points to Vercel Cron calling an endpoint and to Vercel Queues instead.
- How do I run Laravel queues on a host that scales to zero?
Use a queue that wakes the app, such as Laravel Cloud's managed queues, or call a route on a schedule that runs schedule:run and then queue:work --stop-when-empty, as a Gregale cron does once a minute. A queue:work process that waits for jobs either keeps the app awake or is stopped with it. A database queue checked every minute also keeps a database that suspends when idle from suspending.