Redis or Valkey for n8n queue mode: what the broker does and when you need it
In queue mode, Redis is the message broker that hands executions from the main instance to your workers, so it becomes a service you must run, patch, secure and monitor. The n8n queue mode documentation names Redis as that broker. The main instance receives triggers and webhooks, places execution jobs on the broker, and a pool of workers picks them up and runs them. The broker carries the handoff, not the workflow data itself. Workflow definitions, execution records and credentials stay in PostgreSQL, which both the main instance and the workers read and write. That split means a broker outage stops work from being dispatched, while the database remains the system of record you back up.
Most teams move from a single n8n instance to queue mode when one process can no longer absorb its load. Typical signals are long queues of waiting executions, webhook responses slowing under peak traffic, or a need to run heavy workflows without affecting the editor and triggers. Before you commit, confirm with your own measurements that the bottleneck is execution throughput and not a database or payload problem, since queue mode adds moving parts without fixing those. Queue mode also brings a shared encryption key requirement for every worker and webhook processor, so plan that key's custody alongside the broker decision.
The choice between Redis and Valkey is a licensing and support decision layered on top of the same architectural need. Redis 8 and later offer a choice of licenses, while Valkey is BSD-3-Clause licensed under the Linux Foundation. Confirm with n8n which broker versions its current documentation and your target release support, and check the license terms that apply to your Redis build with your legal team. Decide early, because switching brokers later means reconfiguring every n8n process and retesting failover.
Where Redis sits in n8n queue mode
The diagram starts with triggers and webhooks arriving at the main instance, which hands executions to Redis as the broker. Workers pick them up from Redis, and both workers and main read and write workflow data in PostgreSQL. The encryption key is shared with main, workers and webhook processors, so credentials can be decrypted wherever they run. Check that Redis sits inside the trust boundary you define, that every process reaches the same database and that the key is identical on each node.
Components, hand-offs and the shared encryption key in n8n queue mode.
Redis 7, Redis 8 or Valkey: which broker fits your license and version plan
Redis 7.2.x and earlier remain under the BSD-3-Clause license, which is the most permissive position of the three. This tab suits teams whose current deployment already runs an older Redis and whose license review has no objection to it. Staying on this line avoids a broker migration now, but the line is older and it will not receive the Redis 8 features.
- License: BSD-3-Clause for Redis 7.2.x and earlier, according to the Redis licenses page.
- Redis 7.4 to 7.8: These releases were then called Redis Community Edition and sit under the dual RSALv2 or SSPLv1 license, neither of which is OSI-approved. Do not assume the 7.2 position carries forward.
- Upgrade path: Moving from Redis 7.2 or earlier to a newer Redis line is a choice you make later, with its own license review.
- Platform support: Redis Open Source runs natively on Linux, macOS and the BSD systems. On Windows it runs only through Docker.
- Mixed versions: Confirm that every Redis instance in the queue, including staging and disaster recovery, is on the same approved line.
Before you choose this path, confirm with counsel that the 7.2 license terms cover your use, and confirm with n8n which broker version your release supports.
Redis Open Source 8.0 and later can be used under a license of your choice among RSALv2, SSPLv1 and the GNU AGPLv3, effective from the general availability release of Redis 8. This tab suits teams that want a current Redis line and can document which license option they rely on. The Redis 8.0.0 release was published on May 2, 2025, and the current line reached 8.10.0 on July 29, 2026.
- License choice: AGPLv3 is one of three options, so record which one your legal team approves and why.
- Included features: Redis Open Source 8 includes JSON, time series, probabilistic structures, vector sets in beta and the Redis Query Engine. Queue mode needs none of these, so the extra features add review scope without adding queue benefit.
- Restricted component: The Intel SVS-VAMANA optimizations (LeanVec and LVQ) are closed source and can be used only under RSALv2. Avoid them unless that license is acceptable to you.
- Network service rule: Under the Redis licenses FAQ, teams offering modified Redis code as a network service must make the modified source available to that service's users. Unmodified artifacts avoid this obligation.
- Security releases: Track the security releases on the Redis GitHub releases page and plan a patch window for each supported line.
Confirm your license position with counsel, and confirm the Redis version your n8n release supports before you deploy.
Valkey is a BSD-3-Clause fork of open-source Redis, created before Redis moved to source-available licenses. It is an open community project under LF Projects, LLC, and the Linux Foundation holds the Valkey trademarks. This tab suits teams that want a BSD-licensed broker governed by a foundation and that accept a second broker product in their stack. Valkey 9.0.0 was published on October 21, 2025, and the current stable line is 9.1.
- Compatibility: Valkey is compatible with Redis OSS 7.2 and all earlier open-source Redis versions. Existing Redis client libraries connect without code changes.
- Data files: Valkey reads and writes RDB and AOF files compatible with Redis OSS 7.2. It cannot read data files produced by Redis Community Edition 7.4 and later, so migrating from those versions requires a different method.
- Migration methods: The migration guide documents RDB snapshot copy, replication with REPLICAOF followed by promotion, key-level MIGRATE and, for clusters, adding nodes as replicas and promoting them.
- Maintained lines: Valkey ships several release lines at once, including 9.1.2, 9.0.6, 8.1.10, 8.0.11 and 7.2.14.
- Vendor support: Ask any managed-service provider which Valkey version and Sentinel or cluster options it offers.
Confirm with n8n that Valkey is a supported broker for your release, and test failover before you rely on it.
Broker options and when each fits
This table compares the broker options n8n queue mode can run on, covering license position, high availability path, migration effort and fit. Read each row against your own license review and your existing Redis footprint, and confirm the details marked with the vendor before you commit. The main takeaway is that the license question and the migration method depend on which Redis version you already run.
| Option | License position | High availability path | Migration effort and fit |
|---|---|---|---|
| Redis 7.2 and earlier | BSD-3-Clause, per the Redis licenses page | Redis Sentinel with at least three Sentinel instances for non-cluster setups | No change in license terms for unmodified artifacts. Fits teams already running this line that want to avoid change for now, but confirm support windows with Redis. |
| Redis 7.4 to 7.8 | Dual RSALv2 or SSPLv1, neither OSI-approved, per the Redis licenses page | Redis Sentinel with at least three Sentinel instances for non-cluster setups | Review the license with your legal team before adoption. Confirm whether your use triggers source-sharing duties for any modified code. |
| Redis 8 and later | You choose RSALv2, SSPLv1 or AGPLv3, per the Redis licenses page | Redis Sentinel with at least three Sentinel instances for non-cluster setups | Lowest license ambiguity if you select AGPLv3. Confirm the license option you will use and check that your n8n client library works with your chosen version. |
| Valkey 7.2 or later | BSD-3-Clause, per the Valkey project repository | Valkey Sentinel with at least three Sentinel instances recommended | Effectively an upgrade from Redis 7.2 and earlier. Migrating from Redis 7.4 and later needs a method the Valkey migration guide does not cover, so confirm the path with the Valkey project. |
| Redis Software or Redis Cloud | Not open source, per the Redis README. Confirm commercial terms with Redis Ltd. | Vendor-managed high availability. Confirm the failover model and any SLA with Redis Ltd. | Adds a commercial contract and vendor dependency. Confirm networking, TLS and data residency options for your environment. |
| Managed Redis from a cloud provider | Depends on the provider's service and the engine it runs. Confirm the engine and license with the provider. | Provider-managed replication and failover. Confirm failover behavior and recovery time with the provider. | Reduces operating work on the broker, but adds cloud dependency. Confirm the engine version, TLS support and whether the service fits your data-control requirements. |
Set up Redis or Valkey for n8n queue mode in order
This sequence takes you from choosing a broker and version line to a verified test execution running through n8n queue mode. Each step ends with a check, so problems surface before workers depend on the broker.
Choose the broker and version line
Decide between Redis and Valkey and pick a version line before anything is installed. Redis 8.0 and later are available under a choice of RSALv2, SSPLv1 or AGPLv3, while Redis 7.4.x to 7.8.x remain under the dual RSALv2 or SSPLv1 license, and Valkey is BSD-3-Clause. Confirm the license terms with your legal team and confirm that your n8n version supports your chosen broker and client library. Done when you have a written decision that names the broker, the exact version line and the license you accepted.
Provision a replica and a Sentinel quorum
Deploy one primary, at least one replica, and three or more Sentinel instances so the cluster can fail over without manual steps. Sentinel documentation for both Redis and Valkey recommends at least three Sentinel instances for a robust deployment. Place the Sentinels on separate hosts or failure domains where possible. Done when every node reports its role and the Sentinels agree on which node is the primary.
Enable authentication and TLS
Require a password or ACL credentials on every broker node and Sentinel, and encrypt client and replication traffic with TLS where your network policy requires it. Store the credentials in your secrets manager, not in workflow definitions or plain environment files shared widely. Confirm that n8n and your Sentinel setup can present the certificate chain your CA issues. Done when an unauthenticated connection is refused and an authenticated TLS connection succeeds from a worker host.
Set the n8n queue mode connection values
Configure the main instance, every worker and every webhook processor with the same queue mode settings: the broker host or Sentinel details, the credentials and the TLS options. Make sure every process points at the same database and uses the same broker. Confirm the exact configuration keys in the n8n queue mode documentation for your n8n version. Done when each process starts without connection errors in its logs and the main instance lists the workers as connected.
Share the encryption key with workers and webhook processors
Copy the main instance's encryption key to every worker and webhook processor so they can decrypt credentials stored in the database. A missing or different key causes credential failures that appear only when a workflow runs on a worker. Keep the key in your secrets store and restrict who can read it. Done when a workflow that uses a stored credential runs successfully on a worker rather than failing with a decryption error.
Run a test execution end to end
Create a simple test workflow with a manual or webhook trigger, one node that uses a stored credential, and a write to a file or a harmless endpoint. Trigger it so the execution passes through Redis to a worker, then open the execution record in n8n. Confirm the broker queue drains and no execution is stuck. Done when the test execution completes with status success and its output matches what you expect.
Test failover and record broker behavior
Stop the current primary in a non-production environment and confirm that Sentinel promotes a replica and that n8n reconnects. Run a test execution during and after the failover, and note whether any execution was lost, delayed or retried. Document the result as the expected behavior for your team, including what operators should check in the n8n logs. Done when you have a recorded failover result and a runbook entry describing the observed effect on executions.
What happens to executions when Redis fails
In queue mode, Redis carries the jobs between the main instance and the workers, so a broker failure affects execution flow before it affects stored data. The cards below cover what is in flight, how Sentinel failover works, the gap during promotion, and what to test and watch before you rely on the setup.
Executions in flight during an outage
Jobs that have been queued or picked up when Redis becomes unreachable are the first concern. Workers may stop receiving new jobs, and jobs already started may not report their final state cleanly. Confirm in your n8n version's queue mode documentation how queued jobs and interrupted executions are recovered, retried or marked, and whether any workflow needs an idempotency check so a repeated run does not duplicate a payment, ticket or email.
n8n queue mode docsFailover through Sentinel
When Redis runs without Redis Cluster, Redis Sentinel watches the master and promotes a replica to master if the master fails. Valkey Sentinel works the same way for Valkey. Your n8n instances must reconnect to the new master, which depends on the Sentinel-aware connection settings in your n8n version. Check that the main instance and every worker follow the promoted master, not the old address.
- Sentinel instances minimum
- 3
The gap during promotion
Between the master failing and a replica being promoted, writes to Redis can fail or be refused. Jobs enqueued in that window may be lost or delayed depending on the failure type and how the client handles errors. Measure how long your Sentinel configuration takes to fail over in your own environment, since the window depends on your timeout and down-after settings rather than a fixed figure.
Testing failover on purpose
A Sentinel setup that has never failed over is an assumption, not a control. Schedule planned failover tests in a non-production environment with representative queue load, then repeat them after each Redis, Valkey or n8n upgrade. Record what happened to running executions, what reached the database, and how long workers took to resume. Keep the test runbook with your change records.
Queue metrics to watch
Watch the queue length, the number of waiting jobs, failed job counts, worker connection status and Redis connection errors. Growth in waiting jobs during a healthy period points to too few workers or a slow database, while a sudden drop in active workers points to a connection problem. Set alerts on these signals and confirm which metrics your n8n version exposes through its metrics endpoint.
Workers and PostgreSQL fail separately
Redis failover does not protect the rest of the queue path. Workers and the main instance read and write workflow data in PostgreSQL, so a database outage stops execution even when Redis is healthy. Plan monitoring, restart behavior and backups for each component separately, and confirm which component owns recovery for each failure in your runbook.
Questions teams ask before running queue mode Redis
What drives the cost and effort of running a message broker for n8n queue mode?
The cost comes from design, build, verification and the work that continues after go-live, and the largest drivers are the number of hosts, whether you need Sentinel or a managed service, how many environments you run, and how much TLS and authentication work your security policies require. Setup covers the broker layout, credential and encryption key handling for workers, queue monitoring and failure testing. Recurring work includes version upgrades, security patches, certificate renewal and capacity review as execution volume grows. Ask any partner for a written scope that lists each component, who operates it after handover, and which items are one-time versus recurring. DeployOpen does not publish prices, and a quote follows from that written scope.
Does managed Redis remove the work of running queue mode?
A managed service removes much of the host operation, including patching the server software, failover tooling and some backup handling, but it does not remove the design decisions n8n depends on. You still have to confirm the managed offering supports the Redis or Valkey version and the authentication and TLS settings your n8n workers need, and you still own the network path from the main instance and workers to the broker. Redis Cloud is a managed service on AWS, Google Cloud and Azure, according to the Redis README, so check which provider and region fit your data residency rules. Ask the vendor for its documented failover behavior and whether it is available in your region.
How long does a migration from Redis 7.4 or later to Valkey take?
The duration depends on data volume, the number of Redis deployments involved, the migration method you choose and how much testing your change process requires. Valkey's migration guide says that moving from Redis OSS 7.2 or earlier to Valkey 7.2 or later is effectively an upgrade, but it warns that Redis Community Edition 7.4 and later produce data files that are not compatible with Valkey, so those versions need a different method that the guide does not cover. Before you commit to a timeline, confirm the exact source version, whether queue data is persistent or transient, and whether a maintenance window allows a controlled cutover. Ask any partner to state the migration method and the test steps in the written scope.
What must our team supply for a broker deployment?
Your team typically supplies the hosts or cloud accounts, network paths between n8n main, webhook processors and workers and the broker, TLS certificates from your certificate authority, secret storage for the broker password and the n8n encryption key, and access to monitoring and logging systems. A database administrator is needed for the PostgreSQL side of queue mode, and network staff are needed for firewall rules, DNS and load balancer changes. For Sentinel, plan for at least three Sentinel instances, as the Redis Sentinel docs recommend, which means three separate failure domains if you want the design to survive a host loss. List each of these items in the written scope so you know which ones are yours before work starts.
Can our own team run a Redis or Valkey broker for n8n without outside help?
Yes, a team with Linux, networking and database operations skills can run a broker, and many do. The harder parts are correct TLS and authentication configuration across every n8n process, testing failover so workers reconnect cleanly, and knowing how executions behave when the broker stops. Start by checking whether your team has someone who can own upgrades and security patches on a fixed schedule, and whether it can review queue metrics during incidents. Ask the vendor or partner to show which tasks are done during setup and which are handed over as runbooks. DeployOpen can plan, implement, harden, document and support these systems in infrastructure you control, through a fixed-scope engagement or a retainer.
Which Redis version or license should we choose for n8n?
Choose on license terms, support window and compatibility, not on the version number alone. Redis 8.0 and later can be used under a license of your choice among RSALv2, SSPLv1 and AGPLv3, according to the Redis licenses page, while Redis 7.4.x to 7.8.x remain under the dual RSALv2 or SSPLv1 license, which are not OSI-approved. Valkey is licensed under BSD-3-Clause and was forked from the open-source Redis project before the source-available change. Have legal and procurement review the license text for your use, because the Redis licenses FAQ notes that obligations differ when modified code is offered as a network service. Ask your partner to confirm the version and license decision in the written scope.
What happens to running n8n executions if Redis fails?
Executions that are queued or running depend on how Redis is deployed and how n8n is configured, so the answer must be tested in your environment rather than assumed. A single Redis node is a single point of failure for queue dispatch, while Sentinel can promote a replica to master automatically when the primary fails, which shortens the outage but does not by itself guarantee that every in-flight job completes. Plan the failure test as part of the build: stop the primary, observe worker reconnection, check which executions are retried or marked failed, and confirm the result in your execution data. Record the expected behavior in your runbook so operators know what to check after an incident.
Limits to confirm in your environment before you commit
Several parts of a Redis or Valkey queue backend depend on the exact n8n release, the broker version, the license you operate under and the edition you buy. Each card below names one of those dependencies and the check to run before you commit to a design. Treat the answers as inputs to the build plan, not as assumptions carried over from documentation.
Supported Redis and Valkey versions
Confirm which Redis or Valkey versions your specific n8n release is tested against before you pick a broker line. Redis 8 and later fall under a different license set than Redis 7.4 through 7.8, and Valkey runs several release lines in parallel, so the version you pin affects both licensing and patch cadence. Ask n8n support or check the release notes for the broker versions it names, and record the answer in your change log for each upgrade.
n8n release notesSentinel behavior with n8n's client
Sentinel gives automatic failover for a Redis or Valkey primary without Cluster, but failover only helps if the n8n client re-discovers the new primary cleanly. Test a forced failover during a live queue run and watch whether workers reconnect, whether jobs stall, and whether duplicate processing appears. Confirm with n8n which client options your release accepts for Sentinel, since configuration keys differ between versions.
Windows hosting constraints
Redis Open Source does not run natively on Windows. Its supported path there is Docker, so a Windows-hosted n8n estate will need a Linux container or a Linux host for the broker. Confirm that your security team accepts a containerized broker, that your patching process covers the container image, and that the Valkey packaging you choose has a supported Windows path before you assume parity with Linux.
Redis install guideLicense terms for modified or hosted use
Redis 8 and later can be used under AGPLv3, which carries source disclosure duties for modified code offered as a network service. Redis 7.4 through 7.8 use RSALv2 or SSPLv1, which are not OSI-approved. Valkey is BSD-3-Clause. If you modify the broker, run it for a service you sell, or embed it in a product, have counsel confirm which license applies to the exact artifact you deploy.
Redis license termsMulti-main availability is Enterprise only
Running several n8n main instances for high availability is limited to Enterprise self-hosted deployments. A Redis or Valkey Sentinel setup protects the broker, but it does not make the n8n main process redundant on Community or Business plans. Confirm your plan and edition before designing the main tier, and document which component failure stops triggers and webhooks even when the queue survives.
n8n queue mode docsQueue metrics in your n8n version
Confirm whether your n8n release exposes queue metrics, and which ones, before you build dashboards or alerts around them. Metric names, endpoints and enablement flags can change between releases, and some signals you want, such as backlog depth or job age, may come from the broker itself rather than from n8n. Verify each metric in a test environment and record its source so alerting does not break silently after an upgrade.
How DeployOpen scopes and delivers the n8n queue broker
DeployOpen treats the Redis or Valkey broker as part of the n8n queue mode design, not as an afterthought. We scope the broker choice, authentication, TLS, failover and monitoring together, then build and document them inside your infrastructure.
How we scope
- The written scope names the broker product and version line, chosen against your license and support requirements.
- Scope lists authentication, TLS, Sentinel or managed Redis, and the network paths between main, workers and webhook processors.
- Scope states which queue metrics, alerts and failure tests are included, and which are left to your own team.
How we build
- We deploy the broker in your environment and connect n8n main, worker and webhook processor instances to it.
- We confirm the shared encryption key and Redis credentials reach every queue mode process through your secrets handling.
- We test failover and a broker restart against sample executions, then record what happened to queued and running work.
How we hand over
- You receive configuration, network diagrams, runbooks for failover and credential rotation, and the list of queue metrics to watch.
- Documentation records the chosen version line and the upgrade path, so your team knows how the broker will be patched.
- Handover includes a walkthrough with your operators covering what to check first when executions stop arriving.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, broker upgrades and recurring failover testing are available as a retainer.
- Ask us to confirm in the quote which broker versions, managed services and environments your scope covers.

