Temporal workflow execution limits: why they shape design before go-live
If your team is building long-running or high fan-out workflows on a self-hosted Temporal Service, you need to know where the ceilings sit before you write the first workflow function, because the limits shape how you split work, pass data and count operations. Temporal enforces several limit families: event history size and event count per workflow execution, payload and gRPC message sizes, and the number of pending operations a single workflow can hold, which is capped at 2,000. These exist to keep history replay, persistence and the frontend stable. They are enforced per workflow execution, not per cluster, so a cluster with ample capacity can still fail one workflow that grows too large. Confirm the exact values and the dynamic config keys that change them against the Temporal documentation for the server version you plan to run, since defaults and tunable settings can differ between releases.
The design decisions follow from those numbers. A workflow that fans out to thousands of child workflows, collects large results in memory, or loops indefinitely will reach a limit long before it reaches a compute bottleneck. The usual responses are to pass references to stored data instead of the data itself, to batch activities, to use continue-as-new to start a fresh history, and to split fan-out across child workflows. Each of these changes the workflow code, so a limit discovered in production often means a redesign under pressure. Ask your engineering leads to estimate event counts and payload sizes per business transaction at expected peak volume, and record the result in the design document.
DeployOpen plans these limits in the design phase, before go-live, so teams do not learn them from a failed execution in production. In practice this means reviewing workflow designs against the documented limits, setting payload and history budgets, adding monitoring for history size, and agreeing a test plan that drives workflows to realistic size before release. Because the dynamic config keys that change these limits are version-specific and carry operational risk, any change to them should be a reviewed decision with a documented owner, not a quick fix during an incident.
How workflow history grows toward its limits
The diagram starts with workflow code issuing commands, which the Temporal Service turns into events appended to the workflow's event history. Each append is checked against history size, event count, payload and message size, and pending operations. A breach fails the task or the execution, while continue-as-new and payload offloading slow the growth before those checks are reached. This is a conceptual flow to understand where limits apply, not a sizing tool, so confirm the exact thresholds for your server version in the Temporal documentation.
Conceptual flow of history growth and limit checks, not a sizing tool.
Which dynamic config keys change each limit and when to adjust them
This table lists the five limit families that bound a Temporal workflow, with the dynamic config area to check, what the documented behavior is, when a higher value is justified, and what it costs the cluster. Key names and defaults change between server versions, so confirm each one in the docs for your release before editing anything. Design changes, such as splitting long workflows with continue-as-new, should come first because a dynamic config change applies cluster-wide.
| Limit family | Key to confirm for your version | Documented behavior to verify | When raising fits and what it costs |
|---|---|---|---|
| Event history size | History size warn and error thresholds in the history limit settings | Warning is logged, then the error threshold blocks new events on the execution | Long-running workflows with legitimate fan-out. Costs database rows, memory on replay and slower recovery |
| Event count | History event count warn and error thresholds | Counts events in one execution's history, separate from byte size | Workflows with many small activities or signals. Costs longer history loads and slower replay after worker restarts |
| Payload size | Blob size warn and error thresholds for individual payloads | Limits the size of a single input, output or signal payload | Rarely justified. Large blobs inflate database storage, memory per cached workflow and network traffic |
| gRPC message size | Frontend and client message size settings; confirm the exact key and SDK setting | Caps a single request or response, including batched history pages | Only after batching is designed out. Raises memory use on frontend, history and worker hosts |
| Pending operations per workflow | Confirm whether a dynamic config key exists for this limit in your version; the documented limit is 2,000 pending operations | Caps pending activities, timers, child workflows and signals in one execution | Usually redesigned, not raised. Fan-out should be batched or split into child workflows to keep history bounded |
Four limit families to design around in every workflow
Temporal records every step of a workflow as events in its history, and each limit below grows with that record. The four families are linked: a workflow that accumulates events also accumulates payload data, pending work and state carried across restarts. Checking them together during design is cheaper than discovering them in production.
Event history size
Total bytes in one workflow's event history grow with every activity result, timer, signal and child workflow start. The symptom is a long-running workflow whose history keeps growing as it waits on signals or loops over many items. The common fix is to split the work into child workflows so each history stays bounded, or to move bulk results out of the history. Ask your platform owner which history size limit applies to your server version and whether dynamic config overrides it for your namespace.
Deployment docsEvent count per workflow
The number of events in a history matters separately from its byte size, because many small events can reach the count limit before the byte limit. The symptom is a loop that schedules one activity per item, such as a nightly job iterating over thousands of records in one workflow. The fix is batching: process items in chunks, run child workflows per chunk, or restart the run with periodic continue-as-new. Ask whether your team has a monitoring alert on history length and which dynamic config keys control the warning and failure thresholds.
Payload and gRPC message size
Large inputs, results and signal arguments are the most common cause of oversized messages. A workflow that passes a full document through activity arguments or accumulates results in a signal can exceed the size of one gRPC message before any history limit is reached. The fix is to pass references, such as an object storage key or database ID, instead of the payload itself. Ask which maximum blob sizes your frontend and worker settings enforce and whether your payload codec adds overhead to each message.
Pending operations per workflow
Activities, timers, signals and child workflows that are scheduled but not yet resolved count against a per-workflow ceiling of 2,000 pending operations. The symptom is a fan-out that launches thousands of activities in parallel from one parent, or a signal sender that outruns the workflow. The fix is to bound concurrency, fan out through child workflows, or batch signals into groups the workflow can drain. Confirm with your SDK version whether the limit is enforced as a hard failure or a warning in your environment.
Data carried across continue-as-new
Workflow state passed into a new run is the one limit that a periodic restart does not reset. Continue-as-new clears the history, but any input argument carried forward still grows with each cycle. The symptom is a long-lived entity workflow whose carried state keeps increasing even after restarts. The fix is to carry only identifiers and a compact checkpoint, and to store detail in an external database. Ask whether your team has a rule for what may be carried forward and who reviews changes to that state shape.
How to set up limit checks in a self-hosted cluster
This sequence turns Temporal's execution limits into a repeatable check for your cluster, so each workflow type is measured against the limits before it reaches production. The output is a documented list of workflow changes and, only where needed, reviewed dynamic config values applied and verified in a non-production namespace.
Confirm the server version and chart compatibility
Before any limit work, the platform owner confirms the Temporal Server version you run and checks it against the GitHub releases and release notes for that minor line. Then confirm the Helm chart version supports the server image, since chart versions below 0.73.1 do not work with server images 1.30 and later. Review the running server image tag and chart version in your deployment manifests. Done when you have a written record of both versions and the release notes you checked, so later tuning is tied to the server that will actually run it.
Inventory workflow types and expected history growth
Workflow owners list every workflow type and activity pattern that runs on the cluster, with the signals, timers, child workflows, updates and loops each one uses. For each type, estimate how many events a typical and a worst-case execution adds to its event history, and how long executions live. Record which workflows are long-running, use continue-as-new, or fan out to many child workflows. Done when every workflow type has a row in a shared inventory with its expected growth pattern and an owner.
Load test representative executions on the target version
The platform team runs representative executions of each high-growth workflow type against a test cluster built on the same server version and persistence backend as production. Use Omes or your own scenarios to drive realistic signal counts, activity counts, payload sizes and child workflow fan-out. Record event history size, event count, payload sizes and the number of pending operations observed. Done when you have measured figures per workflow type, not estimates, and you know which scenarios were run.
Record headroom against each limit
For each workflow type, compare the measured figures with the limits in the Temporal documentation for the server version you run, including event history size and count, payload and gRPC message sizes, and the 2,000 pending operations per workflow limit. Mark each workflow as comfortable, close, or over. Ask the platform team to confirm the exact limit values for your version rather than relying on memory or older blog posts. Done when a headroom table lists every workflow type against every limit, with the closest margin highlighted for review.
Change the design before changing configuration
Workflow owners and engineers review each workflow marked close or over and first look for design changes: splitting work into child workflows, using continue-as-new at safe points, reducing payload size by storing large data outside the workflow, batching signals, and limiting fan-out. Each change is recorded with the reason and re-tested in the load environment. Done when the reviewed workflows show lower measured growth, or a documented decision explains why the design cannot change.
Set dynamic config only where the design cannot change
For the workflows whose design cannot change, the platform owner identifies the dynamic config keys that govern the limit in question and reviews their documented defaults and effects for your server version. Each proposed value is written down with the workflow it serves, the measured figure that justifies it, and the risk it creates for other namespaces sharing the cluster. Ask the Temporal documentation or support to confirm any key you are unsure about. Done when every change has a named owner, a justification, and a rollback value.
Apply the change in a non-production namespace first
The platform team adds the approved values to the server dynamic config file and applies them in a non-production environment, scoped to a non-production namespace where the key supports namespace-level settings. Restart or reload according to the server's documented behavior, then rerun the load scenario for the affected workflow type. Confirm the configuration file is the one the running server reads, not a stale copy. Done when the test run shows the intended effect and no unintended change in other namespaces.
Verify with metrics, logs and a repeat run
Operators check server metrics and logs for limit-related errors, latency changes and rejected requests during and after the test run, and confirm the workflow-level figures match the headroom table. Compare the results with the pre-change baseline and sign off only when the margin improves without new errors. Then schedule the same checks before each server upgrade and each new workflow type. Done when a dated verification record exists that a reviewer can repeat.
How limits affect different workload types
Workflows that wait for approvals, billing cycles or customer lifecycles over months keep adding events to their history with every timer, signal and activity. The limit most likely to bind is the event count and history size of a single execution. Elapsed time is rarely the problem, because a workflow can sleep for a long time while adding few events. Frequent signals and polling loops are what fill the history.
- Continue-as-new at planned boundaries: Restart the execution with a compact input at a fixed point, such as each billing cycle, so history starts fresh. Trade-off: the run ID changes, so queries, visibility and external tooling must follow the chain of runs.
- Batched signals: Have callers group updates into fewer signals, or let the workflow drain queued signals in batches. Trade-off: extra latency and more logic in the caller.
- Durable timers over polling: Use a timer to wait between checks instead of an activity that polls in a loop. Trade-off: the workflow code must handle wake-ups for changed conditions.
- Externalized state: Keep large records in a database and pass only identifiers through the workflow. Trade-off: the workflow must cope with the store being slow or out of step with workflow state.
Before committing, confirm the expected number of signals per year, the longest expected run, which queries and visibility searches must work across continue-as-new, and the event count at which your team will alert and act.
Workflows that start many child workflows or activities at once, such as a nightly run across thousands of accounts, hit the pending operations limit before history size becomes a concern. Each child or activity that is scheduled but not yet resolved counts as pending on the parent. The limit that binds is the 2,000 pending operations per workflow ceiling, and the history grows with every start and completion event.
- Bounded waves: Start children in fixed-size groups and wait for each group to finish before starting the next. Trade-off: total throughput drops, and the wave size needs tuning against the workers that run it.
- Chunked items per child: Give each child a batch of items instead of one item. Trade-off: a single child failure affects more items, so retry and compensation logic must cover the whole batch.
- Activities that process chunks: Let one activity handle a chunk of items with heartbeats for progress. Trade-off: a retry repeats the whole chunk, so the activity must be idempotent.
- Separate namespace or task queue for bulk work: Keep fan-out traffic away from latency-sensitive workflows. Trade-off: more namespaces and workers to deploy, monitor and pay for.
Before committing, confirm the peak number of concurrent children and activities per execution, whether your Temporal Server version applies the pending operations limit as described, and which dynamic config keys your team is permitted to change.
Workflows that move documents, images, extracts or model outputs between steps can exceed payload and gRPC message size limits long before they reach event count limits. Every input, result and signal argument is serialized into the history, and large messages also travel through the frontend service. The limit most likely to bind is the payload size of a single event, and the message size of the gRPC call that carries it.
- References instead of payloads: Write the data to object storage or a database and pass a pointer through the workflow. Trade-off: extra reads and writes, plus access control and retention rules for the store.
- Codec-based compression or encryption: Apply a payload codec in the SDK so payloads are smaller or encrypted at rest in history. Trade-off: CPU cost on workers and key management that must be tested and documented.
- Chunked results: Split large outputs across several activities, each returning a bounded result. Trade-off: more activities, more history events and more coordination logic.
- Small workflow inputs: Keep start arguments to identifiers and configuration. Trade-off: the workflow makes more calls to fetch what it needs.
Before committing, confirm the largest payload expected at each step, the payload and message size settings in your Temporal Server version, the codec and key design with your security team, and whether the external store meets your data retention and deletion rules.
Why raising a limit is usually the last option
Raising a limit through dynamic config should be the last step in a Temporal design, because the increase does not stay with the one workflow that needed it. Dynamic config values apply cluster-wide or to every namespace that reads the setting, so a change made for one busy workflow type can alter the load profile of every other team on the same Temporal Service. The cost shows up in three places. Larger event histories take longer to load into worker memory and to replay after a worker restarts or a task is retried. More history data sits in the persistence store for each execution, which grows storage and slows the queries that run against it. And a higher ceiling means a single misbehaving workflow can consume more of the shared resources before any guardrail stops it.
On a self-hosted cluster, the cost is paid by your own team rather than by a vendor's usage meter. Your platform engineers carry the extra database growth, the heavier history loads on the history service, and the capacity planning that follows. The question to answer before any change is what the workload actually needs, whether that is a smaller payload, a child workflow that splits the history, a continue-as-new boundary, or a signal pattern that stops piling up pending operations. Ask your team to name the owner of each affected setting, the namespaces that read it, and the load test that shows the cluster still meets its targets with the new value. Confirm the exact keys and their current defaults in the Temporal documentation for your server version before you propose anything.
In regulated organizations, the reason for any limit change belongs in the design record, not only in a change ticket. Auditors, security reviewers and risk owners will want to see what the limit protects, what evidence showed the workflow could not be redesigned, who approved the change, and when it will be revisited. A record like this also helps during upgrades, because a value set years earlier for a workload that no longer exists is easy to forget and can quietly alter behavior. Treat each raised limit as a documented exception with an owner and a review date, and keep the rollback value next to it so the decision can be reversed if the cluster shows strain.
Limits to confirm in your environment
Temporal's execution limits are set by server version, configuration and the backends underneath, so none of the numbers in this page should be carried into a design unverified. The cards below list what to confirm, who can confirm it and why each check changes the design you ship.
Exact limit values for your version
Limit values and the dynamic config keys that change them can differ between server releases, so the figures in your design should come from the documentation for the exact version you run. Server v1.32.1 was published on October 8, 2026, and patch releases for earlier minor lines followed on October 12, 2026. Confirm each default value and key name against the docs for your version, then record them in your design document with the version number beside them.
Temporal releasesHelm chart and image compatibility
A Helm chart and a server image must be matched before a limit change can be tested, because mismatched versions can change which keys take effect. Temporal's deployment docs state that Helm chart versions below 0.73.1 do not work with server images 1.30 and later. Check the chart version against the image tag in your values file, and confirm the chart release notes for any defaults that moved.
Deployment docsPersistence and visibility backend effects
Event history and visibility queries are bounded by the database and search store you chose, so the same limit can behave differently on each backend. Temporal tests persistence on Cassandra, PostgreSQL and MySQL, and SQLite is for development only. Confirm which visibility store your version supports and how its query and document size behave. Ask your database team to measure history row growth on your chosen backend before relying on a limit.
Persistence docsSDK version and payload handling
Payload size is counted on the bytes your SDK sends, so the SDK version and its serialization settings decide how close a workflow comes to a gRPC or payload limit. Check how your SDK encodes inputs, results and signals, whether a custom codec or compression runs before the payload is sent, and whether the SDK records large values in history. Confirm these behaviors in your SDK's documentation and release notes, and test with your real payload shapes rather than sample data.
Restart or rolling update requirements
Some limit changes apply only after services restart, and a rolling update can leave mixed settings across hosts during the change window. Dynamic config is read at runtime, but the docs for each key say whether a restart is needed and whether all services must agree. Confirm this for every key you plan to change, and include a rollback step and a canary namespace in the change plan so a bad value can be reverted without guessing.
Upgrade server docsQuestions teams ask about Temporal workflow limits
How much effort does it take to design a new workflow within Temporal limits?
Effort depends mostly on the workflow's shape, not on its count alone. A workflow that runs briefly, takes a small input and makes few calls needs a short design check and a test run. Effort rises when a workflow runs for a long time, loops many times, starts many child workflows, or fans out through signals and activities that can build up pending operations, since the Temporal server caps pending operations per workflow at 2,000. Each of those patterns needs a design decision such as continue-as-new, batching or splitting work into child workflows, and each decision needs a test against realistic inputs. The first workflow takes the longest because the team works out the patterns. Later workflows of the same kind usually take less time. Ask for the expected history growth and the largest payload before estimating.
Do we need a consultant for Temporal limits, or can our team do it alone?
A team with Temporal experience can design within the limits alone, provided someone owns the review and the team tests the results under load. A consultant adds the most value when the team is new to Temporal, when many workflow types must be reviewed at once, or when limits must change in a production cluster that carries live traffic. Your own engineers keep the knowledge afterward, which matters because workflow code changes over time and new workflows will need the same checks. Whatever you choose, make one person accountable for the limit decisions, record each decision next to the workflow it affects, and repeat the review when a major new workflow type is added. An external review should leave your team with a checklist and a test plan they can reuse.
What does a limit review need from our team before it starts?
The review needs three inputs. The first is a workflow inventory: every workflow type and activity, its owner, how often it runs, how long it can stay open, and which child workflows, signals, timers and retries it uses. The second is representative test data, meaning realistic input sizes, typical and worst-case payloads, and the number of items a batch or fan-out can produce. The third is access to the cluster configuration, including the static settings, the dynamic config values in use, the persistence and visibility stores, the server version and the worker settings. Without these, the review can only reason about the design and cannot confirm the limits in practice. Ask your team to name the owners who can answer questions quickly during the review, because unanswered questions usually extend the work.
What drives the cost of a Temporal limit review up or down?
Cost follows the amount of workflow code to review and the number of decisions each workflow needs. The main drivers are the number of workflow types, how much each one's history grows, how many fan-out or long-running patterns appear, and whether any limit must be changed rather than only respected. A small set of simple workflows with stable inputs is the least costly case. Many long-running or high-fan-out workflows, multiple teams with separate code, and a live cluster that needs changes add review, testing and change-control work. Costs that recur include retesting after workflow code changes and rechecking limits after a server upgrade. Ask for the quote to list the workflow types covered, the test scenarios, the cluster changes included and the retest rules, so you can compare options on the same scope.
How long does a Temporal limit review take?
The length of a limit review depends on its scope: how many workflow types are reviewed, how complex their histories are, how much test data must be prepared, and whether a cluster change is included. DeployOpen does not publish a fixed duration for this work. The timeline is set in the written scope before work starts, with milestones for the inventory, the design findings, the test runs and any cluster changes. Ask for the timeline to show which steps depend on your team's answers, such as data access or sign-off from workflow owners, because those dependencies are the most common source of delay. A timeline that is tied to named inputs is easier to hold both sides to.
Can Temporal limits be changed without downtime?
Some limits can be changed without downtime and some cannot, so confirm each setting before planning a change. Dynamic configuration values can often be updated while the cluster runs, but only for the keys and server version that support it. Static settings, such as the number of history shards, are fixed when a cluster starts and cannot be changed later without a new cluster and a migration. Server upgrades follow a separate process: move one minor version at a time, run schema upgrades first where the release notes call for them, and check the Temporal upgrade guide before each step. Change control should include a test in a non-production cluster, a rollback plan and a check of metrics after the change.
How DeployOpen works on this
DeployOpen reviews how your Temporal workflows approach event history, payload size and pending operation limits before they reach production, then implements the design changes and dynamic config settings that the review supports. Each engagement is fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory the workflows, activities and signal patterns that could grow event history or payload size over time.
- Agree in writing which Temporal Server and SDK versions, namespaces and dynamic config keys the review covers.
- Confirm whether the review covers self-hosted Temporal or a planned Temporal Cloud deployment, and which teams own each workflow.
How we build
- Test long-running workflows against history count and size thresholds using representative payload sizes from your data.
- Redesign hot paths with continue-as-new, child workflows or batched signals where the review shows limits at risk.
- Adjust dynamic config keys only where the test results support the change, and record each original and new value.
How we hand over
- Deliver a written findings report covering each workflow, the limit it approaches and the fix applied or recommended.
- Document workflow design rules, payload handling guidance and the monitoring signals your team should watch.
- Walk your engineers through the retest results and the runbook steps for limit-related errors before the engagement closes.
How we support
- Retest workflows after Temporal Server upgrades, since limits and config defaults can change between releases.
- Offer ongoing support, upgrades and continuous testing as a retainer for teams whose workflows keep growing.
- Review new workflow designs against the documented limits as your teams add features and integrations.

