When Temporal task queue partitions need changing
Change task queue partitions only when your Temporal workers hit a throughput ceiling or when you need stronger ordering, and treat the setting as a tuning decision with ordering and cost trade-offs, not a default to accept or ignore. Partition count shapes how Temporal spreads tasks across a queue, so a change affects how work is delivered, how evenly load is shared, and how much operational complexity your team carries. Before touching it, confirm the symptom you are trying to fix.
Most teams should measure backlog and schedule-to-start latency first. A growing backlog with idle workers points to a different bottleneck than a growing backlog with saturated workers, and only the first case is a candidate for more partitions. Record schedule-to-start latency per task queue over a representative period, and compare it with worker slot usage and poller counts. The partition default is documented as four, but the reader should confirm that value, and any related read and write partition settings, against the current Temporal documentation for the server release in use, since defaults and behavior can change between minor lines.
Your deployment choice also shapes the work. Self-hosted Temporal can run through Docker Compose, Go binaries, Helm charts that place server services in separate Kubernetes pods, or a custom Go build, and each option affects how you roll out configuration and confirm that a change took effect. Check the Temporal GitHub releases for the server version you run, and plan a staged rollout in a non-production namespace before you change partition settings on a busy queue.
How a task moves from a client through partitions to a worker
The path starts when a client starts a workflow or a workflow schedules an activity. The Temporal frontend receives the request, and the matching service chooses one partition of the task queue, then stores the task in that partition. Workers poll the partitions they are assigned, so the read and write partition settings decide how many partitions carry the load. Check that your worker deployment polls enough partitions to drain the queue, since that part is the one your team controls.
Task flow from client to worker, with partition settings marked.
Partition options and when each one fits
This table compares the four partition choices a team faces on a Temporal task queue: keep the default, pin a single partition, raise the count for throughput, or split read and write settings. Read each row for the fit, the main trade-off and the setting to confirm in the docs for your server version before you change anything.
| Option | When it fits | Main trade-off | Confirm before changing |
|---|---|---|---|
| Keep the default of four partitions | Most queues where tasks do not need strict global ordering and throughput is within what the default handles | Ordering is not guaranteed across partitions, so work that must run in sequence needs to live in workflow logic instead | Current default partition setting for your server and SDK version in the Temporal docs |
| Single partition for strict ordering | A queue where tasks must be dispatched in the order they were enqueued, such as a serialized resource or a single-writer job | One partition limits dispatch throughput and creates a single point of contention for pollers | How the server version in use handles single-partition dispatch and whether your SDK exposes the partition setting |
| Raise partition count for throughput | A busy queue where the backlog grows faster than the current pollers can drain it, and tasks are independent of each other | Ordering across tasks is lost, and more partitions spread load across more matching hosts, which changes how load appears in metrics | Partition count limits and whether the setting can be changed on an existing task queue or only at creation |
| Separate read and write partition settings | Queues where the number of read partitions must differ from write partitions, for example while draining a queue after a partition change | Mismatched settings add operational steps and can leave tasks stranded in partitions that no poller reads if handled carelessly | Whether your server version supports separate read and write partition settings and the exact procedure for changing them |
| Partition change on a live queue | Teams that need more capacity without a new queue name | Changes to partition counts can reorder in-flight tasks and temporarily affect latency during the transition | Procedure and safety notes for live partition changes in the release notes for your server version |
Choosing partitions by workload type
Use this pattern when the order of tasks is part of correctness, such as a sequence of ledger postings for one account or state changes that must apply in arrival order. Partitions order tasks within a queue, so keeping the ordered work on few partitions gives the strongest ordering guarantee, but it also limits how fast that queue can dispatch. The usual signals are a backlog that grows while workers have free slots, schedule-to-start latency that climbs for one queue, and downstream records showing a later update applied before an earlier one.
- Signals to look for: schedule-to-start latency rising while workers sit idle, or downstream systems reporting updates applied out of sequence.
- Likely choice: keep the ordered work on a queue with few partitions, and move unordered work to its own queue.
- Ordering scope: ordering holds within a partition, so confirm the exact ordering rule your business logic needs before you depend on it.
- Throughput ceiling: the partition count caps dispatch for that queue, so plan worker capacity around that limit.
- Retries still happen: restarts and retries can redeliver activities, so downstream writes still need idempotency keys.
Afterward, confirm in a test run that no out-of-order side effects appear and that schedule-to-start latency stays flat as load increases.
For independent tasks, such as sending notifications, processing uploaded files or calling a stateless API for many workflows, order adds no value. More partitions let more tasks dispatch in parallel, which helps when dispatch is the limit. The usual signals are a backlog that grows during bursts and drains slowly afterward, schedule-to-start latency that rises across the whole queue, and workers that report waiting for tasks while tasks are queued.
- Backlog pattern: a backlog that builds during peaks and does not drain usually means dispatch or worker capacity is the limit, not the activity code.
- Likely choice: raise the partition count for this queue in steps, and measure latency after each step.
- Worker side: extra partitions only help when enough pollers and task slots exist to consume them, so review worker settings before and after the change.
- Downstream limits: the external services that tasks call may become the new bottleneck, so confirm their rate limits and error behavior.
- Change behavior: confirm in the current Temporal documentation how a partition change applies to a running queue and to tasks already queued.
Afterward, run a load test that matches your expected peak, confirm schedule-to-start latency stays within your target, and check that downstream error rates remain acceptable.
Many systems carry both a small set of tasks that must stay in order and a large volume of independent work, such as a per-customer sequence of updates alongside a bulk export. Tuning one queue to serve both usually leaves one of them poorly served, so splitting by task type is often the clearer design. The usual signals are ordered tasks that slow down whenever a batch job starts, and ordering problems that appear only at peak load.
- Signals to look for: ordered tasks whose latency worsens during bulk runs, or ordering defects that appear only under heavy load.
- Likely choice: split the work into an ordered queue with few partitions and a throughput queue with more, and use separate worker pools when their load patterns differ.
- Routing: confirm that workflow code sends each activity to the intended queue, and cover routing with tests so a change cannot silently move work.
- Shared pools: if the pools are shared, review slot and poller settings so bulk work cannot starve ordered work. Priority and fairness are covered on a separate page.
- Operational load: each extra queue adds pollers and metrics to watch, so ask any implementation partner how they will monitor each queue.
Afterward, run ordered and bulk work together at peak load in a test environment and confirm that both ordered-task latency and ordering checks pass.
How to change partitions safely in a running system
This sequence lets you change task queue partition settings on a running Temporal system with a measured baseline, a tested change and a clear check at each stage, so ordering-sensitive work is not disrupted in production.
Measure the current backlog and latency
The platform or Temporal operations owner records the current backlog, schedule-to-start latency and task throughput for each affected task queue over a representative period, using the metrics your Temporal deployment already exports. Capture the workflows that depend on strict ordering so you know which outcomes must be checked later. This step is done when you have a written baseline per task queue that the team agrees on, and a list of ordering-sensitive workflow types.
Confirm version support for the partition setting
The platform owner checks the Temporal Server release notes for the exact server version you run, and the SDK documentation for each language your workers use, to confirm that the partition setting you plan to change is supported together with your Helm chart and persistence versions. Do not assume a setting behaves the same across minor versions. Note any constraint, such as a required server or SDK upgrade first. This step is done when the target settings are confirmed against the release notes for every server and SDK version in use.
Apply the change in a non-production namespace
The platform engineer applies the planned partition configuration to a non-production namespace that mirrors production task queue names, worker counts and workflow types. Record the exact configuration keys and values changed, and keep the previous values so the change can be reverted. This step is done when the non-production namespace starts cleanly, workers poll the queues, and no errors appear in the server or worker logs.
Load test with representative tasks
The QA or performance engineer runs a load test in the non-production namespace using task shapes, payload sizes and concurrency that match production, and compares results with the baseline from the first step. Include workflows that require ordering, and inject worker restarts if your deployment restarts workers often. This step is done when throughput and schedule-to-start latency are measured against the baseline, and any regression is explained or fixed before production work begins.
Roll workers to the new configuration
The platform team rolls worker deployments to the new configuration one task queue at a time, using the deployment method your team already uses for workers. Keep the previous worker image and configuration available for rollback, and avoid changing server and worker settings in the same window where possible. This step is done when all workers report the new configuration and the old configuration has no active pollers on the affected queues.
Compare latency and throughput after the change
The operations owner watches the same latency and backlog metrics used in the baseline for a period agreed with the business owners, and compares them with the values recorded before the change. Look for uneven load across partitions and for latency that rises as load grows. This step is done when the production metrics are within the thresholds the team set in advance, or a rollback decision has been recorded.
Verify outcomes of ordering-sensitive workflows
The application owner checks that ordering-sensitive workflows still produce the expected results, comparing sampled executions before and after the change in the Temporal Web UI or your visibility tooling. Confirm that signals, updates and child workflow results arrive in the order the business logic expects. This step is done when the sampled outcomes match the expected results, and the owners sign off that ordering guarantees still hold for each listed workflow type.
What a single partition guarantees and what it costs
A single task queue partition is the simplest way to keep tasks in sequence. Tasks enqueued on one partition are dispatched in the order they arrived, so a team that needs a loose first-in, first-out order gets it without extra design. The cost is that one partition has one dispatch path. However many workers poll the queue, that path moves tasks at a finite rate, so the queue's throughput is capped by the single line rather than by worker capacity. Before you change anything, confirm the exact ordering guarantee and the partition defaults for your Temporal Server version in the current task queue documentation, and measure schedule-to-start latency on the queue under real load.
Adding partitions removes the single-line bottleneck, but it changes which worker receives which task. Tasks are spread across partitions, so two tasks enqueued in a particular order can run in either order, on different workers, at overlapping times. Any code that assumes the earlier task has finished, or that a side effect from one activity is visible to the next, must be reviewed before the change ships. Search activity code and runbooks for assumptions about queue order, then test the changed queue with several workers running at once and check that each step still produces the same result when tasks arrive out of sequence.
Many ordering requirements do not need queue-level ordering at all. If the steps belong to one business process, keep them as ordered calls inside one workflow. Workflow code runs its steps in sequence, and Temporal records each completed step in the workflow history, so the order is enforced by the workflow rather than by the queue. Activities that must not overlap can be called one after another, and independent work can be started in parallel where the design allows it. List each ordered requirement and ask whether it lives in workflow code. Only the requirements that remain, such as ordering across unrelated workflows, justify tuning the queue's partitions.
Security and operational risks of changing partitions
A partition change touches ordering, load, worker deployments, visibility and who is allowed to change queue settings. The cards below cover the risks that tend to surface during and after the change, so the plan can name an owner and a check for each one before the change starts.
Unintended reordering of side effects
Moving from one partition to several gives up any ordering guarantee that a single queue provided across tasks. Activities that used to run in a predictable sequence can now overlap or swap, which matters when they write to the same external system. Before changing partitions, list every activity that writes to a shared resource and confirm that its idempotency keys and retry behavior hold when order is no longer fixed.
Temporal deployment docsUneven load across partitions
Partitions spread tasks, but the spread depends on how task identifiers and workflow traffic map to them. A few hot workflow types can still concentrate work on one partition while others sit idle. Measure backlog and task rate per partition after the change, and compare them with the pre-change baseline, so an imbalance is caught before it becomes a latency problem for the whole queue.
Worker deployments that miss the new layout
A partition count is applied by the workers that poll the queue, and a rollout that mixes old and new worker images can leave some pollers on the previous layout. Confirm that every worker deployment reads the same task queue settings, and that old pods have drained before the change is treated as complete. Keep the rollback path to the previous partition count written down with its own owner.
Loss of backlog visibility per partition
A single backlog number can hide a partition that has stopped draining while the total looks healthy. Before the change, define dashboards and alerts for backlog and schedule-to-start latency per partition, and confirm that the metrics survive the rollout. Without them, operators will rely on symptoms from end users instead of the queue itself.
Who can change queue settings
Changing partitions alters how work flows through the whole Temporal Service, so the ability to make that change should be limited. Self-hosted Temporal ships with a noopAuthorizer when no Authorizer is configured, which allows every API request without access control. Confirm that a ClaimMapper and Authorizer map operator identities to namespace roles, that frontend and internode traffic run only on trusted networks, and that changes are logged and reviewed.
Self-hosted security docsLimits to confirm before you change partitions
Before you change task queue partition counts, confirm what your environment actually supports. Start with the Temporal Server version you run, because partition settings and their behavior are tied to the server release, and check the release notes for that exact version rather than assuming the newest one applies. The latest server release supplied for this page is v1.32.1, published on GitHub on October 8, 2026, but if you run an earlier minor line, read the notes for your line. Also confirm the SDK version and language runtime in each worker fleet, since the client-side behavior of partitioned task queues can differ between SDKs and versions. Mixed SDK versions across services that share a queue are a common source of surprises.
Next, check the persistence backend under higher dispatch. More partitions mean more parallel polling and task dispatch, which adds read and write load on the database that stores task queue state. Confirm that your persistence store (Cassandra, PostgreSQL or MySQL, each with the versions listed in the Temporal persistence documentation) has headroom for the increase, and load test the change in a non-production environment first. Also confirm that your alerting shows per-partition backlog and poll latency. If your dashboards only show queue-level totals, you will not see a single hot partition until workflows start to wait.
Finally, plan the change as part of your normal server lifecycle. Temporal documents that servers should be upgraded one minor version at a time, moving to the latest patch of the current minor first, and that schema upgrades must run before server upgrades when release notes call for them. The Temporal upgrade guidance describes that sequence. If your current version is behind the one you need for the partition behavior you want, schedule the upgrade first and then test partitions on the upgraded cluster. Record the settings you change, the version they were tested against, and the rollback path so the change can be reversed without guessing.
Questions teams ask before changing Temporal partitions
Is the default number of Temporal task queue partitions enough for my workload?
Often it is, and the first step is to measure before changing anything. Check schedule-to-start latency, backlog age and poller counts for each queue. If backlog grows while workers still have free slots and spare CPU, partitions may be the limit. If workers are saturated, adding partitions only spreads the same load across the same workers. Confirm the current default and the documented limits for partition settings in Temporal's documentation before you plan. A written assessment should name each queue, its measured load and the specific symptom that would justify a change.
What does changing Temporal task queue partitions cost in engineering effort?
The main cost is engineering time, because a partition change touches workflow and activity code review, worker and client configuration, load testing and post-change monitoring. Your team pays its own staff for that time. A partner under a fixed-scope engagement pays for the agreed deliverables, and the quote follows from the written scope. The one-time work is the first tuning pass. Recurring work is monitoring and periodic review as traffic grows. Ask the quote to list each queue in scope, the test environments required, the number of load-test rounds and the rollback steps for each change.
How long does a Temporal partition change take, and what drives the schedule?
The schedule depends on your environment, so no duration applies here until the scope is written. The main drivers are the number of task queues and worker fleets involved, how much workflow logic depends on ordering within a queue, and how many environments must be tested before production. Other factors include whether production-like traffic can be replayed for load tests, change windows and approval steps, and whether a Temporal Server or SDK upgrade shares the same window. Ask for a schedule that separates analysis, test rounds, production rollout and the observation period after each change.
Can our in-house platform team change Temporal partitions without an outside partner?
Yes, an experienced platform team can make the change if it understands Temporal workers, has access to the right metrics and has a safe environment for load tests. The gaps usually appear in ordering review, which needs workflow authors in the room, and in load testing, which takes time that teams often lack during normal operations. An outside partner can plan the change, run the tests and document the runbook for your team under a written scope. Decide early whether you want the work done for you, handed over with training, or split between both.
What do we need to provide before a Temporal partition change starts?
Your team needs to provide several inputs before work starts:
- Read access to the metrics your Temporal deployment exposes for each task queue, with at least a month of history where available
- A load-test environment that resembles production in worker count, SDK version and workflow mix
- Owners of workflow and activity code who can explain ordering assumptions and review the changes
- A change calendar, on-call contacts and an approved rollback plan
Confirm which metrics your deployment emits before the assessment begins, because missing metrics often delay the first decision.
Does splitting a Temporal task queue change workflow ordering guarantees?
Yes, it can. Ordering behavior differs between a single partition and several partitions, so logic that assumes tasks are served in a strict sequence may behave differently after the change. Review any workflow or activity code that depends on order, including signal handling, batch dispatch and rate-based limits. For each assumption, record the code location and the test that proves it still holds. Confirm the exact ordering behavior in Temporal's documentation for your SDK version. A single partition keeps simpler ordering but can limit throughput, so the trade-off should be decided per queue.
How do partition changes interact with Temporal Server and Helm upgrades?
Keep partition changes separate from server upgrades where possible, so any regression has one clear cause. Temporal Server should be upgraded one minor version at a time, moving to the latest patch of the current minor first, and schema upgrades must run before server upgrades when the release notes call for them. If you deploy with Helm, note that chart versions below 0.73.1 do not work with server images 1.30 and later. Follow the Temporal upgrade guide for the sequence, and ask your partner to schedule partition work after the upgrade has been observed in production.
How DeployOpen scopes Temporal partition and throughput work
DeployOpen treats task queue partitions as a design decision made from your workflow ordering needs and measured worker load, not from a default setting. Each engagement is fixed-scope, with the queues, workers and deliverables agreed in writing before any change to a running system.
How we scope
- Inventory every task queue, its workers, and which workflows need strict ordering
- Record current partition settings and the throughput the business needs from each queue
- Agree in writing which queues, language SDKs and environments the work covers
- Confirm your Temporal deployment model, whether self-hosted or Temporal Cloud, before design starts
- Define acceptance tests, such as load runs and replay checks, that close the engagement
How we build
- Set partition counts for each queue based on ordering requirements and measured load
- Configure read and write partition settings consistently across the workers that poll each queue
- Test changes in a non-production namespace with representative workflow volume first
- Check that workflows already running keep their ordering and that no tasks are stranded
- Document each change, its rollback step and the metrics that show whether it worked
How we hand over
- Deliver a queue design record covering partition counts, ordering assumptions and reasons
- Provide the load test results and the configuration files used in each environment
- Write a runbook for changing partitions safely, including the order of worker and server steps
- Walk your platform and SRE teams through the design and the alerts that signal trouble
- Store configuration in your version control so future changes are reviewed
How we support
- Ongoing support, upgrades and continuous testing are available as retainers
- Review partition settings again when workflow volume, SDK versions or server versions change
- Re-run load tests after major changes so throughput claims stay backed by evidence
- Agree response expectations and the support scope in writing before the retainer starts
- Ask any support provider for a quote based on the written scope of your queues and environments

