Deploy n8n Production Queue-Mode Worker Stack (Postgres + Redis)
High-throughput n8n cluster with BullMQ worker, Postgres & Redis.
n8n-primary
Just deployed
/home/node/.n8n
Just deployed
/var/lib/postgresql/data
n8n-worker
Just deployed
Redis
Just deployed
/data
Deploy and Host n8n Production Queue-Mode Worker Stack (Postgres + Redis) on Railway
Transparency Notice: Maintained by TCO Audit. Provisioning links via
tcoaudit.com/go/*may earn a partner referral commission at zero extra cost to you.
Deploy a production-ready, horizontally scalable n8n cluster on Railway with dedicated BullMQ Redis workers, persistent PostgreSQL storage, shared N8N_ENCRYPTION_KEY, and /healthz probes—cutting 36-month automation TCO by 65%–82% vs. per-step SaaS billing.
About Hosting n8n Production Queue-Mode Worker Stack (Postgres + Redis)
Hosting n8n in production queue mode separates webhook ingestion and scheduling from heavy workflow execution. This template provisions four coordinated services out of the box:
n8n-primary— Web UI, webhook receiver, and scheduler (EXECUTIONS_MODE=queue,/home/node/.n8npersistent volume,/healthzprobe, port5678).n8n-worker— Dedicated BullMQ execution worker sharing the identicalN8N_ENCRYPTION_KEYvia${{n8n-primary.N8N_ENCRYPTION_KEY}}.- PostgreSQL — Durable workflow, credential, and execution history store.
- Redis — Low-latency BullMQ job broker for reliable background processing.
Common Use Cases
- High-volume webhook ingestion and asynchronous workflow execution without blocking the n8n editor UI.
- Self-hosted SaaS replacement for Zapier or Make to eliminate per-step automation surcharges—run your exact monthly task volume through the TCO Audit SaaS Tax Calculator.
- Automated transactional email pipelines, lead enrichment, and scheduled web extraction workflows using dedicated background workers.
Dependencies for n8n Production Queue-Mode Worker Stack (Postgres + Redis) Hosting
- PostgreSQL 16 — Persistent relational database for workflows, encrypted credentials, and execution logs.
- Redis — In-memory BullMQ queue broker coordinating jobs between
n8n-primaryandn8n-worker.
Recommended Post-Deploy API Connectors
- Free Transactional SMTP (
N8N_SMTP_*— 300 emails/day free): Provision Brevo SMTP Credentials - Web Scraping & Google Maps Extraction Nodes: Claim Apify Free Developer Credits
- Prefer Zero-Maintenance Managed n8n? Compare n8n Cloud vs. Self-Hosted TCO
Why Deploy n8n Production Queue-Mode Worker Stack (Postgres + Redis) on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale your n8n workers, PostgreSQL database, and Redis broker independently.
By deploying n8n Production Queue-Mode Worker Stack (Postgres + Redis) on Railway, you are one step closer to supporting a complete full-stack automation platform with minimal operational burden.
Template Content