Queue mode lets n8n run many workflows in parallel by sharing the work between several processes. Here is when you need it and how the pieces fit.
By default n8n runs in one process. It serves the editor, receives webhooks and runs every workflow itself. That is fine for most people. When you run many workflows at once, or a few heavy ones block the rest, queue mode spreads the work across several processes.
Signs that queue mode may help: executions wait a long time to start, the editor becomes slow while workflows run, or a heavy workflow stops others. If you only have a few light workflows, do not add this complexity. First try a bigger server and pruning, as described in our performance tuning guide.
# on main, workers and webhook processors
EXECUTIONS_MODE=queue
QUEUE_BULL_REDIS_HOST=redis
QUEUE_BULL_REDIS_PORT=6379
DB_TYPE=postgresdb
N8N_ENCRYPTION_KEY=the-same-key-everywhere
Start a worker with the worker command and a webhook processor with the webhook command, using the same image and environment. Variable names can vary by version, so check the official documentation for yours.
Each worker is a full n8n process, so plan RAM for each. A VPS with 4 vCPU and 8 to 16 GB RAM is a reasonable start for a main instance and two workers. See which VPS plan fits which n8n workload.
If you want queue-style scaling without running Redis and workers yourself, talk to us about managed n8n hosting and your expected workload.
Not sure if you need queue mode? Tell our team your workload and we will suggest a setup.
Contact PCRDP