Request and response with Temporal Updates instead of signal-then-poll
A common Temporal design has a calling service send a signal to a running workflow, then call a query on a timer until the state it needs changes. This works, but the caller has to guess a polling interval, handle the gap between sending the signal and seeing its effect, and treat every response as provisional. Temporal Updates address this case. An Update is a synchronous request to a running workflow that can carry input, be checked by a validator before it is accepted into the workflow's history, and return a result to the caller in the same call. Teams should first list each signal-then-poll flow in their codebase and mark which callers need an answer before they continue.
Updates fit when the caller needs to know, at the moment of the call, whether the workflow accepted a change and what the outcome was. Typical examples include reserving a slot, changing an order that is still open, or approving a limit change that the workflow must check against its current state. The validator matters here because it lets the workflow reject a request that is not valid in its current state, and the caller receives that rejection directly. Where the caller only needs to tell the workflow that something happened, a signal remains the simpler choice. Engineers should confirm in the documentation for their chosen SDK and Temporal Server version how validators, Update IDs and error handling are exposed before they design the API around them.
Updates are one design choice inside the workflow model, not a replacement for it. Signals still carry fire-and-forget notifications, queries still read state without changing it, and the workflow keeps its durable history and retries. An Update call does hold the caller while the workflow processes it, so the design needs a decision about timeouts, retries of the same request and what the caller does if the workflow is busy or has finished. Teams should test those paths against the SDK and server they plan to run, including worker restarts during an Update, before they replace polling loops in production.
Where Updates fit compared with signals and queries
A signal-then-poll design sends a signal to a running workflow, then has the caller check back until a result appears. Signals are one-way messages. Temporal records them in the workflow history, but the sender receives no return value, so the caller must infer the outcome from state the workflow writes later.
- Outcome discovery: The caller learns the result only by checking again later, through a query, a database row or a status field the workflow updates.
- Validation: The workflow cannot send a rejection back to the sender. Bad input is handled inside workflow code after the signal is recorded, so error handling lives in the workflow.
- Lost or repeated messages: The caller may time out, resend a signal or miss a state change between checks, so payloads need idempotency keys and the workflow must tolerate duplicates.
- Closed workflows: A signal sent to a workflow that has already closed fails on the caller side, and the polling loop must handle a result that never arrives.
- Load: Each check adds calls to the Temporal service and to any store involved, so the polling interval affects both latency and load.
Check how your SDK reports signal delivery failures and confirm that every poll loop has a bounded timeout.
Query-based polling asks a running workflow for its current state without changing it. The caller sends a query, gets an answer from the workflow's state, and repeats the query until the state it needs appears. Queries are read-only, so this pattern reports state but never applies new input to the workflow.
- Outcome discovery: The caller gets an immediate answer, but a query reports only what the workflow already holds. It cannot wait for a future change on its own, so the caller must loop.
- Validation: A query cannot modify workflow state, so input cannot be validated and applied through this path. Any change the caller needs must go through a signal or an Update.
- Read timing: The answer reflects the workflow at the moment of the query. A caller that needs a later change must query again, and the result can be stale by the time it is read.
- Worker dependency: Queries are answered by a worker that runs the workflow code, so an unavailable worker or slow replay appears to the caller as a timeout.
- Handler rules: Query handlers must be deterministic and free of side effects. A handler that breaks these rules causes failures that often appear only under replay, so tests should cover them.
Confirm which query methods your SDK exposes, how it reports query timeouts and whether your team has tests that replay workflows with query handlers.
An Update is a synchronous request to a running workflow. The caller sends an input, the workflow handler changes state, and the caller receives the handler's return value or error on the same call. An optional validator runs before the Update is accepted, so the caller can get a rejection without the workflow's state changing.
- Outcome discovery: The caller waits for the handler's result, so the answer comes back in the same call instead of through a later check.
- Validation: The validator runs before the Update is recorded in history. Invalid input is rejected to the caller and leaves the workflow unchanged, so validation logic belongs in the workflow definition.
- Retries: Each Update carries an update ID. Retries that reuse that ID let the caller look up the same Update rather than create a duplicate, so callers must generate IDs with care.
- Caller timeouts: The caller's wait can end while the Update keeps running inside the workflow. Callers should look up the outcome by update ID before they treat the operation as failed.
- Workflow constraints: The workflow must be running, its worker must process the Update, and a handler that waits on other work keeps the caller waiting. Keep handlers short and confirm the limits for your SDK and server version.
Test validator rejection, caller timeouts and a worker restart in the middle of an Update before you expose it to a user-facing call.
Which Update configuration fits which request pattern
This table compares the main Update configuration choices for a Temporal workflow: validators, Update IDs, wait stages and where the handler does its work. Read each row against the request pattern you are replacing, then confirm the exact names and defaults in the SDK version you run.
| Configuration choice | When it fits | Trade-off | Confirm in your SDK |
|---|---|---|---|
| Validator on the Update handler | Callers send input that can be wrong for the current workflow state, such as cancelling an order that already shipped | Rejected Updates never enter history, so the caller gets an error without a recorded event, but validators must stay fast and free of side effects | Validator signature, whether it can block, and how rejection surfaces to the client |
| No validator | Inputs are always valid for any state, or validation belongs in the activity that does the work | Invalid requests are accepted into history and fail later, which makes the workflow record noisier and the caller answer less precise | Whether the SDK runs validation before recording the Update |
| Client-supplied Update ID | The caller may retry after a timeout and must not trigger the change twice | Reusing an ID returns the existing outcome, but a poorly chosen ID (such as a random value per attempt) defeats deduplication | Scope of ID uniqueness and how the client reattaches to an existing Update |
| Server-assigned Update ID | The request is fire-and-check only and duplicate delivery does not change the result | Retries after a lost response can apply the change again, so the handler must be idempotent | Default ID generation in your client library |
| Wait for completion stage | The caller needs the handler's final result in the same call and can hold the connection while it runs | A longer handler keeps the caller waiting and ties up the call, so keep the synchronous part short | Accepted, completed and timeout options, and the default stage |
| Wait for accepted stage | The caller only needs confirmation that the Update was received, then polls or reads state later | Less immediate than a full answer, and the caller still needs a separate step to learn the outcome | Stage names and how the client retrieves the outcome afterward |
| Short handler in workflow code | The answer is computed from workflow state alone, with no external I/O | Fast and deterministic, but any change to handler logic must follow workflow versioning rules | Handler limits and how long a single Update may run |
| Handler delegates to activities or child workflows | The answer depends on external systems or long work that the caller can wait for only in part | Activities and child workflows add latency and retries, and the handler must still finish before the caller's timeout | Whether the SDK allows awaiting activities inside an Update handler and the required workflow version |
Updates give the caller one validated answer from the running workflow
The diagram starts at a caller outside the trust boundary, which sends an Update request through the Temporal frontend. The frontend hands it to the workflow worker, where the Update validator runs first and can reject the request before any history is written. Only accepted Updates reach the workflow handler, and the handler's return value travels back along the same path to the caller. Check that the validator contains no side effects and that the caller reaches the frontend only through the internal network.
Update path from an external caller through the frontend to the handler and back.
Setting up Updates on a self-hosted Temporal Service
This sequence takes a self-hosted Temporal Service from a compatible server and SDK baseline to a workflow that accepts validated Updates from a caller, with tests that prove accepted, rejected and timed-out cases behave as designed.
Confirm server and SDK versions
Your platform engineer records the Temporal Server version currently running and the version of the SDK your workflow team uses, then confirms that the SDK release supports Updates against that server. If the server needs to move, plan the change in the documented order: move to the latest patch of the current minor first, then one minor version at a time, running schema upgrades before server upgrades when the release notes call for them. Check that the Helm chart version matches the server image, since chart versions below 0.73.1 do not work with server images 1.30 and later. Done when the version matrix is written down and the target server runs on a supported path, with the upgrade plan approved.
Define the workflow update handler and validator
Your workflow developers add an Update handler to the workflow definition, along with a validator that runs before the handler is accepted into history. The validator checks the request against current workflow state and returns a rejection with a clear message when the request is invalid, so the handler only mutates state for requests that have passed. Keep the handler short and deterministic, and keep any external I/O in activities. Done when unit tests run the handler and validator against a workflow in several states and show that invalid input is rejected before any state change is recorded.
Deploy workers on the workflow task queue
Your platform team deploys workers that register the workflow and activities on the task queue the caller will target, and confirms the workers can reach the frontend service on the internal network. Confirm that the workers run the same code version that defines the Update handler, because a worker without the handler cannot process the Update. Check the worker logs and the Web UI or command line to confirm the workers are polling the task queue. Done when a test workflow starts, the workers pick up its tasks, and the worker version is recorded for the release.
Expose the caller path on internal networking
Your network team exposes the Temporal frontend only to the internal networks where the calling services run, and confirms that the Temporal services are not reachable from the public internet, as the deployment documentation expects. The calling service is given a client identity and a namespace role through the authorization configuration you have chosen, so Update calls are authenticated and scoped. Confirm that the caller can start a workflow, send an Update and receive a response over the internal path, and that an unauthenticated or out-of-scope caller is denied. Done when both the allowed call and the denied call are logged as expected.
Test accepted Updates end to end
Your QA or platform engineer runs the caller against a running workflow with a valid request and confirms the Update returns the synchronous result the handler produced. Verify that the workflow state changed once, that the history shows the accepted Update, and that repeated calls with the same Update ID behave as your design requires. Record the result and the history event sequence as the baseline for later regression runs. Done when the accepted path returns the expected value and the state change is visible in workflow history.
Test rejected Updates and validator behavior
Your engineer sends requests the validator should refuse, such as values outside the allowed range or requests against a workflow in the wrong state, and confirms the caller receives the rejection without any change to workflow state. Confirm that the rejected Update leaves no unintended events in the workflow history beyond what the design expects. Also test a workflow that has completed to see how the caller handles a closed workflow. Done when every rejection case returns the designed error to the caller and the workflow state is unchanged.
Test timed-out Updates and caller recovery
Your engineer configures the caller with a deadline, then tests what happens when the workflow is blocked, busy or its worker is stopped, so the Update does not complete in time. Confirm the caller handles the timeout as an error it can retry or report, and that a retry with the same Update ID does not apply the change twice when the Update is still in flight. Confirm that the worker restart resumes processing and that the Update result matches the design. Done when the timeout path is covered by a test, the caller behavior is documented, and no duplicate state change is observed.
Latency and limit trade-offs to design around
An Update is synchronous from the caller's side, so every limit inside the workflow becomes a limit on the caller. The cards below cover the trade-offs that connect caller latency, worker capacity, handler design, retries, long-running work and versioning.
Caller latency while the workflow is busy
An Update is only processed when the workflow task runs on a worker, so a caller waits for whatever the workflow is doing at that moment. A workflow blocked in a long activity, a timer or a slow backlog of other messages delays the answer. Measure end-to-end Update latency under realistic signal volume, and decide how the caller behaves when its wait exceeds its own timeout.
Self-hosted deployment docsWorker availability on the task queue
Update handling depends on workers polling the workflow's task queue. If no worker is running, or workers are saturated, the caller's request waits or fails. Confirm how many worker replicas serve each queue, how they scale, and what alerting fires when task queue backlog grows. The synchronous contract is only as reliable as this worker pool.
Handler duration and history growth
Update handlers should validate input and return a result quickly, while heavy work belongs in activities. Every accepted Update adds events to the workflow history, so high-frequency calls to a long-lived workflow grow history and push toward history limits. Plan Continue-As-New for workflows that receive many Updates, and set a ceiling on handler work.
Retry behavior for callers
When a caller times out or loses its connection, it may resend the same Update. Without an Update ID that the workflow can deduplicate, the same change can apply twice. Decide which Update IDs the caller generates, how the handler treats a repeated ID, and which failures are safe to retry. Confirm the SDK's retry and timeout options for your language before writing caller code.
Long-running work moved out of the handler
Operations such as external API calls, file processing or approvals that take minutes or hours do not belong inside an Update handler. Start them as activities or child workflows, and have the Update return an acknowledgment or status with a query or second Update to check progress. Keeping handlers short protects caller latency and keeps the workflow responsive to other messages.
Version compatibility of in-flight workflows
A deployment that changes an Update handler's logic can affect workflows that are already running. Callers may send requests the older code does not understand, and workflows replayed on new code must still produce the same history. Plan versioning with Temporal's patching or versioning features, test replay against recorded histories, and confirm how old and new Update names or argument shapes will coexist during rollout.
Questions teams ask before building Update-based flows
What does an Update-based implementation cost, and what drives the effort?
Cost has three parts: the design and build work, the Temporal platform, and the environment that runs it. Self-hosted Temporal Server is MIT licensed according to its GitHub repository, so the server itself carries no license fee, but you pay for infrastructure, the persistence database and the visibility store. Temporal Cloud is usage priced, and its pay-as-you-go plan starts at 50 US dollars per million actions according to Temporal's pricing page. Effort rises with the number of Update handlers, the complexity of validation logic, the number of signal-then-poll endpoints being replaced, and how many SDK languages your teams use. Ask for a quote that separates one-time design and build work from recurring platform and support costs.
How long does a first design and build take?
Duration depends on scope, and no fixed figure applies to every team. The main variables are how many Update handlers you need, how many existing polling paths must change, and whether your database, identity and hosting are ready when the build starts. DeployOpen agrees scope, deliverables and timelines in writing before work begins, so the timeline comes from that document rather than from a generic estimate. Illustrative example: replacing one status-polling endpoint is a much smaller project than replacing a dozen request-reply paths across several workflow types. Ask for the timeline broken into design, build, test and deployment phases, with the decisions each phase depends on.
What must our team provide before the engagement starts?
Your team needs to supply four things. First, named workflow owners who can define the business rules that Update validators enforce and decide which callers need a synchronous answer. Second, engineers who know the Temporal SDK in the language your services use. Third, an environment: either a self-hosted deployment on infrastructure you control or a Temporal Cloud account, with network access for your callers. Fourth, a persistence and visibility plan. Self-hosted Temporal services should run on hosts not reachable from the public internet, so confirm network placement with your security team early. The self-hosted deployment guide lists the supported setups your environment must match.
Can an in-house team build Update-based flows without outside help?
A team with production Temporal experience can build Update-based flows alone. Outside help is most useful when the team has not run Temporal in production, when the self-hosted deployment must pass a security review, or when a fixed delivery date is in play. Security is the item most often missed. If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Before any caller can send an Update, configure mTLS, a ClaimMapper and an Authorizer, as described in the self-hosted security documentation. Whoever builds the flows should own that configuration.
When should we pick Temporal Cloud instead of self-hosting?
Choose Temporal Cloud when your team does not want to operate the persistence database, server upgrades and visibility store, or when a contracted availability target matters more than control over hosting. Temporal's pricing page lists a 99.9% SLA, or 99.99% with high availability, plus SAML SSO. Active storage starts at 0.042 US dollars per GB-hour and retained storage at 0.00105 US dollars per GB-hour. Support add-ons start with Business at 500 US dollars per month, with a 2-hour P0 response during business hours. Enterprise and Mission Critical are quoted by sales, with 30-minute or 15-minute P0 response around the clock and SCIM. Choose self-hosting when data must stay in your infrastructure. Compare both on the Temporal pricing page.
How do Updates behave during a deployment or server upgrade?
Confirm the exact behavior for your SDK and Temporal version in the current Temporal documentation before you finalize the design, because this page does not set out that detail. Two rules apply across upgrades. Move the Temporal Server one minor version at a time, to the latest patch of the current minor first, and run schema upgrades before server upgrades when release notes call for them. Also, Helm chart versions below 0.73.1 do not work with server images 1.30 and later. For worker code, plan versioning so workflows that are running, including those with an Update in progress, still replay correctly. Test this in staging with an open Update during a worker rollout.
What does running self-hosted Temporal cost after launch?
The recurring costs are infrastructure, the persistence database, the visibility store, upgrades and on-call operations. The server carries no license fee under its MIT license, so ongoing spend is what you run and who runs it. Persistence is tested on Cassandra, PostgreSQL 13 to 16 and MySQL, and SQLite is meant only for development and testing. Elasticsearch or OpenSearch is recommended for visibility beyond a few workflow executions. Each upgrade repeats schema, server and chart checks. Ask any partner to separate the one-time build from a retainer for upgrades, monitoring and testing, and to state which of those tasks your team keeps.
When a plain signal or activity is the better choice
A Temporal Update is the right tool only when a caller needs a validated answer from a running workflow before it continues. In many designs that need does not exist, and an Update adds a synchronous round trip, a validator to write and a second message type to version and test without giving the system anything it did not already have. The first case is fire-and-forget messaging. If a caller sends a notification such as a cancellation request, a pause or a new piece of reference data and does not need to act on the result, a Signal is simpler. Signals are asynchronous, the sender does not wait for a reply and the workflow handles them in its event loop. Use an Update when the caller must know whether the change was accepted, what state resulted, or why it was rejected.
The second case is work that runs longer than a caller should wait. An Update holds the caller's connection open while the handler runs, so it suits short, bounded reads and quick state transitions. If the requested operation would call external services, wait on a person or run for minutes, the workflow should accept a Signal or Update that only records the request, then do the work in Activities and expose progress through a Query or a later Update. Confirm the handler duration your callers can tolerate with the team that owns them before you commit to a synchronous design, and check the Update timeouts and retry behavior in the Temporal documentation for the SDK you use.
The third case is a design where a child workflow or an Activity already returns the result. If the caller starts a workflow and waits for its completion, or the work fits in a single Activity whose return value is the answer, the existing result path carries the outcome and an Update duplicates it. The Patterns group covers these alternatives in detail: the child workflows and fan-out pattern and the polling pattern are the pages to read next. Before building an Update, write down who needs the answer, how long they can wait and whether a plain result would serve them.
Limits to confirm in your SDK and server version
Temporal Updates depend on three things that vary by release: the SDK you build workers and clients with, the Temporal Server version you run, and the limits that apply to workflow history and handler traffic. Confirm each one against the documentation for your exact versions before you design the caller contract, because an Update that works in one SDK line may not be exposed in another.
Update API support in your SDK
Confirm that your chosen SDK exposes the Update API for both defining handlers in workflow code and sending Updates from clients, including validator functions and the wait-for-result options your callers need. Support can differ by language and by SDK release, so check the SDK's own release notes and API reference rather than assuming parity with the Go or Java examples. Ask the SDK team which features are stable and which are still marked experimental for your language.
Deployment docsServer version compatibility
Match the SDK version to a Temporal Server version that supports Updates in the way you plan to use them. Read the upgrade guidance for your current minor line, since backward compatibility is guaranteed only between successive minor versions. If you run the Helm chart, confirm the chart version works with the server image you target, because chart and image compatibility is version-specific.
- Latest server release
- 1.32.1
Workflow history size constraints
Each accepted Update adds events to the workflow history, so a long-running entity workflow that takes frequent Updates grows toward history limits sooner. Confirm the history event and size limits for your server and SDK versions, and decide in advance when the workflow will Continue-As-New. Ask whether your namespace settings allow you to tune these thresholds and who in your team owns that configuration.
Handler size and payload limits
Update requests and responses carry payloads like any other Temporal message, and each payload is subject to size limits enforced by the server. Confirm the maximum payload and request sizes for your version, then keep Update arguments and return values small by storing large data in external systems and passing references. Test with the largest payload your callers will realistically send.
Concurrent Update limits per workflow
Confirm whether the server or SDK documents any limit on how many Updates a single workflow execution can have in flight or queued at once. If a limit exists, callers that fan out requests to one workflow will see rejections or waiting under load, so the caller design must handle them. Check the current documentation for this limit because it is a common source of change between releases.
Temporal releasesVisibility and authorization for callers
Updates are API calls, so they pass through the same frontend authorization as other requests. Confirm which namespace roles your callers need to send Updates, and whether your Authorizer and ClaimMapper settings permit that role without granting broader workflow control. Without a configured Authorizer, the default allows every request, so confirm this is changed before callers reach production.
Security docsRunning Update-based workflows in production
Running Update-based workflows in production starts with monitoring, because a synchronous Update is only as good as the latency and failure picture behind it. Track Update latency and failure rates per Update name and per workflow type, and alert on the caller-facing outcomes rather than only on worker health. Confirm with your Temporal SDK documentation and your metrics stack which Update metrics the server and SDK emit in your version, and test that a rejected Update (a validator failure) and an accepted Update that later fails are counted separately. Set a caller-side timeout that matches the business need, and test what happens to the caller when the timeout fires while the Update is still running inside the workflow.
Callers retry, so Update IDs must be stable. Generate the Update ID from the business operation (for example, a request ID the caller owns) rather than a random value per attempt, so that a retry after a network failure reaches the same Update instead of applying the change twice. Test this explicitly: send the same Update ID twice, once after the first has completed and once while it is still in flight, and confirm the handler's result and side effects are what your design expects. Handlers that change state should be idempotent with respect to their inputs regardless, since the Update ID is a guard you configure, not a substitute for correct handler design.
Changing an Update handler in a running workflow is a versioning event. Workflows already in progress replay their history against the new code, so a handler signature, validator or ordering change can cause non-determinism errors in executions that started earlier. Use the workflow versioning mechanism your SDK documents, such as patching, and test the change against recorded histories before deployment. Then upgrade the Temporal Server in the documented order: move one minor version at a time, go to the latest patch of the current minor first, run any schema upgrades the release notes call for before the server upgrade, and confirm the target versions in the Temporal server upgrade guide and the Temporal GitHub releases before each step.
How DeployOpen scopes and delivers Update-based workflows
DeployOpen plans and builds Temporal Updates into your workflows as a fixed-scope engagement, with the validation, timeouts and caller contract agreed in writing before any code changes. The work runs inside infrastructure you control, and the handover includes the documentation and tests your team needs to change the design later.
How we scope
- Inventory the signal-then-poll endpoints that callers currently use and decide which ones need a synchronous answer.
- Agree the Update names, input and result shapes, and the validator rules that reject bad requests before history is written.
- Set the caller timeout budget, the expected response latency and the fallback when a workflow is busy or closed, in writing.
How we build
- Implement update handlers and validators in your chosen SDK, keeping handler logic deterministic and free of direct I/O.
- Build caller code with explicit deadlines, retry behavior and handling for updates that are rejected or lost to a timeout.
- Test replay, validator rejection, concurrent updates and workflow completion while an update is in flight, against a self-hosted or Cloud test environment.
How we hand over
- Deliver a design record covering each Update, its validator, its timeout limits and the workflow states where it is accepted.
- Document the deployment and configuration of the Temporal Service and workers that the Update path depends on, in your infrastructure.
- Walk your engineers through the test suite and the runbook for updates that stall, time out or are rejected under load.
How we support
- Support is available as a retainer for Update changes, SDK and server upgrades that affect Update handling, and incident follow-up.
- Retesting after each change to an Update handler or caller is included in the retainer scope you agree in writing.
- Ask any quote to name the Temporal versions, SDKs and environments covered, and who is responsible for each upgrade step.

