Reducing Temporal Cloud costs

Lower a Temporal Cloud bill without weakening reliability by understanding what drives action and storage charges, designing workflows that use fewer actions, and choosing retention deliberately. Self-hosting is covered as a trade-off, not a default.

On this page

What drives a Temporal Cloud bill and where to start cutting

Your Temporal Cloud bill grows with workflow volume because pay-as-you-go pricing is built from two meters: actions and storage. Reducing the bill starts with knowing which meter dominates, not with changing code. The published pay-as-you-go rates start at 50 US dollars per million actions, with active storage at 0.042 US dollars per GB-hour and retained storage at 0.00105 US dollars per GB-hour (per the Temporal Cloud pricing page). Confirm the current rates and any volume tiers in your order form, because a negotiated contract can differ from the list rates. Pull the usage breakdown for the billing period and compare action charges with active and retained storage charges before you touch a workflow.

Work through the drivers in order. Actions accumulate for each operation a workflow performs, so a workflow that polls, signals or retries often costs more than one that waits on a single durable timer. Active storage reflects how much workflow state is open at any moment, so long-running executions and large payloads raise it. Retained storage reflects how long closed histories stay in the namespace according to its retention period, so a retention period longer than your audit or support needs keeps paying for data nobody reads. Ask your account team to explain each line item on the invoice and to confirm how the retention setting for each namespace maps to retained storage charges.

Two other decisions move the total but are separate from usage. Support add-ons are priced by plan, with Business starting at 500 US dollars per month according to the pricing page, and they buy response times rather than reduce consumption. High availability namespaces change the SLA and the cost of replication, so judge them on the reliability requirement, not on the bill. Keep these three questions apart when you present the bill to finance: what the usage is, what the plan costs, and what resilience you are buying.

How actions and storage build the monthly bill

The diagram starts with a workflow start from a client and follows the work it creates: activity and timer executions and signals each count as actions, while the workflow's event history sits in active storage and then retained storage. The two charges are summed into the bill. The three levers are marked where they act: workflow design reduces the number of actions, retention choices shorten how long history is kept, and capacity mode changes how action throughput is paid for. Check each lever against your own workload before changing anything.

Actions and stored workflow history are billed separately and summed into one bill.

Why action charges grow faster than most teams expect

Action charges grow faster than most teams expect because an action is counted for each step a workflow takes on the Temporal service, not for each business transaction. A single order process might start one workflow, but it can record many actions as it starts activities, receives their results, retries failed attempts, arms timers, sends signals and starts child workflows. Before you model any cost, confirm on the Temporal pricing page exactly which events are billable, how retries and heartbeats are counted, and whether timers and child workflow starts follow the same rule as activity tasks. Those definitions decide the whole estimate, so do not rely on a rule of thumb from another team's bill.

Retries and heartbeats are the most common surprise. Each retry of an activity adds work for the service, so an activity with an aggressive retry policy against a dependency that is failing can multiply its action count during an incident, exactly when the bill is hardest to explain. Long-running activities that send heartbeats at a short interval add recurring events for as long as they run. Review the retry policy and heartbeat timeout for every activity that calls a flaky external system, and set them against the failure behavior the business actually needs rather than library defaults. Timers work the same way: a loop that wakes every few seconds to poll a status creates a steady stream of actions even when nothing changes.

Chatty workflows multiply cost. A design that signals a workflow for every small state change, or that fans out one child workflow per line item, turns a modest business volume into a large action count. Ask engineering to produce a per-workflow action count for the three most common paths, including the failure path, and compare it with the number of business events those paths represent. A large gap between the two is the clearest signal that the design, not the platform rate, drives the bill.

Workflow designs that cut actions without weakening durability

Temporal Cloud bills for actions, so the workflow code itself sets much of the cost. The levers below reduce action counts by changing how work is batched, waited on and retried. Each one trades some visibility or timing for fewer billable events, and each should be proven in a test environment before production code changes.

Batch small activities into fewer steps

Several small activities that always run together can often be combined into one activity that does the same work in a single call. Each activity completion and its scheduling are billable actions, so fewer activities means fewer actions. The trade-off is coarser retry and failure granularity: if the combined activity fails midway, the whole unit retries unless it is written to be idempotent. Test failure injection at each step and confirm the combined activity can safely run twice.

Lengthen timers where rules allow

A workflow that wakes up every few seconds to check a condition creates timer and activity actions on every wake. Where the business rule tolerates it, a longer interval or a single timer that waits for an event reduces that churn. The trade-off is latency: a decision that used to happen within seconds may now wait for the next wake-up. Measure the business deadline the timer must meet, and confirm with the process owner before changing it.

Replace polling loops with signals

A loop that calls an activity to check an external system repeatedly consumes actions even when nothing changes. Having the external system send a signal to the workflow when the state changes removes most of those checks. The trade-off is that the sender must reliably deliver the signal, so you need a fallback, such as a periodic reconciliation or a timeout that triggers a single check. Test lost-signal and duplicate-signal cases, and confirm the sender can retry safely.

Use queries and signals deliberately

Frequent workflow queries from dashboards or services are a quiet source of cost and load when each one is driven by a client loop. Reading state from a shared store or caching results in your own service often removes the need for repeated queries. Signals that carry only what the workflow needs keep payloads small. The trade-off is staleness, so decide how old a value may be before a user or system acts on it, and test that the cached view recovers after a worker restart.

Consolidate small child workflows

A parent that starts many tiny child workflows multiplies executions, history and actions for work that could run as one workflow with a loop. Consolidation lowers overhead and keeps related state together. The trade-off is that a single long history grows larger, and child workflows give isolation, separate retry and separate visibility that you lose. Check event history size limits in the Temporal documentation for your version and replay the consolidated code against existing histories before deploying it.

Tune retry policies with care

Aggressive retry settings on activities produce repeated attempts, each adding actions, while overly long backoffs delay recovery. Setting a maximum attempt count, a sensible backoff and a non-retryable error list keeps retries useful. The trade-off is that a shorter retry window can fail work that would have succeeded during a brief outage. Test with fault injection against a dependency that fails for varying durations, and record how many attempts each scenario produces before and after the change.

Temporal deployment docs

Cost levers and when each one fits

This table compares the main levers for lowering a Temporal Cloud bill, with the cost each one reduces, the reliability or compliance risk it adds, and the team effort it takes. Read each row as a condition for choosing the lever, not a default to apply everywhere. The main takeaway is that action count and storage are the two bill drivers to target, and that retention cuts are only safe once audit needs are met elsewhere.

LeverCost it reducesReliability or compliance riskTeam effort
Workflow batchingAction count, since fewer signals, updates and child calls mean fewer billed actionsLarger batches raise blast radius and retry cost if one item fails; confirm idempotency firstModerate: workflow redesign and load testing
Timer and polling redesignAction count from frequent timers and activity polls that run on a fixed short intervalSlower detection of state changes; check business latency targets before lengthening intervalsLow to moderate: code change plus replay tests
Shorter retention periodRetained storage charges after workflows closeLess history available for incident review, disputes and audits; confirm regulatory retention firstLow: namespace setting change, but needs sign-off from compliance
Workflow History Export for auditLong retention periods, by moving closed history to customer-owned storageExport runs on a schedule with at-least-once delivery, so downstream readers must handle duplicates; confirm archival scopeModerate: bucket setup, access policy and consumer pipeline
Capacity mode choiceCost of unused headroom for predictable workloads, or of burst pricing for spiky onesWrong mode can throttle peaks; review limits and load profile before switchingLow: analysis and account configuration
Self-hostingManaged service fees, replaced by infrastructure, database, visibility store and operations staffShifts availability, upgrades, security and backups to your team; the open-source server is MIT licensedHigh: ongoing platform operations, upgrades and on-call

Choosing retention without breaking audit or support needs

Retention is the cost lever that most directly collides with audit and support needs, so agree it before you change anything. Temporal Cloud pay-as-you-go pricing bills active storage at 0.042 US dollars per GB-hour and retained storage at 0.00105 US dollars per GB-hour, according to the Temporal pricing page. Active storage holds the history of workflows that are still running or recently closed and that operators can act on. Retained storage holds the history kept after the retention period, which is where closed executions wait for audit, forensic or support lookups. Shortening retention moves data from the active tier to the cheaper tier or removes it sooner, but the saving depends on your actual volume, so model it from your own usage data rather than from a generic estimate.

Retention periods must match the evidence your compliance and support teams need. An auditor may ask for proof of a payment or approval months after the workflow closed, and an engineer investigating a customer complaint may need the full history of a closed execution. Ask legal and compliance owners which record classes must be kept and for how long, and ask security owners whether any workflow payload contains regulated data that should be shortened or encrypted. Ask operations owners how far back support investigations realistically reach. Record the answers per workflow type, because a short retention that suits a routine notification workflow may be wrong for a financial settlement workflow. Where history must be kept longer than Temporal Cloud retention allows, plan the export path before shortening retention, since an export only preserves what it captured.

Confirm the exact retention setting on each namespace in Temporal's documentation and in the Temporal Cloud console before you rely on it, including whether it applies to closed executions only and how the change affects executions already in progress. Then check whether any audit evidence you depend on comes from workflow history at all, because Temporal Cloud audit logs cover control plane changes rather than data plane events. Keep a written record of each retention decision, its owner and the review date, so a later cost review does not quietly shorten retention for a workflow whose evidence requirement has not changed.

When self-hosting Temporal pays off and when it does not

A small team with modest workflow volume usually carries the highest share of fixed operating overhead when it self-hosts. A self-hosted Temporal Service needs a persistence database, and advanced visibility needs its own search store if you want to list and filter executions beyond a few workflow executions. Someone must own the Helm chart or binaries, track each minor release, and run upgrades in the order Temporal documents. Every hour spent on that work is an hour not spent on product code.

  • Persistence and visibility: Plan to run and back up a supported database (PostgreSQL, MySQL, or Cassandra) and, for visibility at any real scale, Elasticsearch or OpenSearch.
  • Upgrades: Each minor version moves one step at a time, with schema changes first, so the upgrade cycle recurs for the life of the service.
  • On-call: Someone must be paged when the frontend, history, or matching services degrade, which a managed service absorbs for you.
  • Costs that stay on Temporal Cloud: None apply if you self-host entirely, but if you keep a hybrid setup, check the pay-as-you-go rates for actions and storage on the pricing page.
  • What to model: Include engineer hours for upgrades, monitoring, and incident response, not only infrastructure.

Before deciding, ask your team who would own the service and whether they can take on that work for the next several years.

How to run a cost review on a live namespace

This sequence turns a Temporal Cloud bill into a short list of workflow design changes that lower action counts or storage, each tested in a non-production namespace and checked against reliability signals before it reaches production.

  1. Export usage by namespace and workflow type

    Start by pulling billing and usage data for each Temporal Cloud namespace over a representative period, broken down by namespace and workflow type. Confirm which namespaces carry the most action volume and how much active and retained storage each holds, using the usage views in the Temporal Cloud interface and the figures on your invoice. Ask your account contact which usage fields are available for export so the review can be repeated later. The step is done when every namespace has a dated baseline that the team agrees on.

  2. Classify actions by workflow and activity

    Break the baseline down to the workflow types and activity types that generate actions. Count starts, signals, timers, updates, child workflows, and activity attempts for each, and note which retries inflate counts. Map each high-volume type to the owning team and to the code that starts it. The output is a ranked table that shows where actions come from, not just how many there are. Check that the sum of classified actions reconciles with the namespace totals from the previous step within an agreed tolerance.

  3. Identify the top contributors

    Rank the workflow and activity types by their share of actions and storage, then select the few that account for most of the spend. For each candidate, record the pattern causing the cost, such as polling loops, fan-out to many small activities, long-running timers that are checked often, or large retained histories kept after completion. Discuss the candidates with the owning teams so that the design intent is understood before anything changes. The step closes when the team has a short, justified list of candidates and a clear owner for each.

  4. Test a design change in a non-production namespace

    For each candidate, build the proposed change, such as batching activities, replacing a polling loop with a signal, or shortening retention, and run it in a non-production namespace that mirrors the production workload shape. Compare the action count per business transaction before and after using the same input set. Verify that workflow determinism is preserved by replaying existing histories against the new code, and confirm that versioning handles any in-flight executions. The step is complete when the measured reduction is documented and no replay or versioning errors remain.

  5. Check reliability metrics before and after

    Before any production change, record the reliability signals you already monitor for the affected workflows: failure and timeout rates, task latency, schedule-to-start time for activities, and workflow completion time. Repeat the same measurements in the test namespace with the change applied, and compare them with the baseline under comparable load. Confirm that no metric has moved outside the thresholds the owning team has agreed. The output is a short comparison sheet that the team signs off on before rollout.

  6. Roll out with a rollback plan

    Deploy the change to production one workflow type at a time, using the versioning approach your team has already tested for in-flight executions. Write the rollback steps before the rollout starts: which code version to restore, how to stop new executions on the changed path, and who has the authority to trigger it. After rollout, rerun the usage export for the same namespace and compare action counts with the baseline. The review is closed when the measured saving is confirmed on the invoice period that follows and the rollback plan has been verified in the test namespace.

Keeping reliability and compliance intact while cutting spend

Cost reductions in Temporal Cloud touch retention, workflow design, visibility of failures and the platform itself. Each change can save money and still weaken evidence, reliability or control, so the items below should be checked before any cut reaches production.

Keep evidence that policy requires

Shortening retention lowers storage charges, but it also shortens the window in which workflow histories can be produced for an audit or an incident review. Before changing a namespace retention period, list the records your policies, regulators and legal team require, and confirm where they are kept after the Temporal Cloud retention window closes. If the answer depends on an export, confirm that the export is configured and tested before retention is reduced. Example: a payments namespace may need histories available for a longer period than an internal batch namespace.

Batching must not hide failures

Combining many small items into one workflow or one activity reduces action counts, but a single failed item can then mark an entire batch as failed or retried. Check that each item keeps its own result, that failures are counted per item, and that alerts still fire on the individual errors. Confirm that retry policies do not repeat work that has already succeeded, since repeated work also adds actions to the bill.

Temporal pricing

Test cheaper designs for replay

Designs that use fewer actions, such as longer-running workflows, signals in place of polling, or fewer activities, change the event history that replays against new code. Before you deploy a redesigned workflow, run replay tests against histories recorded from the current version and confirm that the new code produces the same commands. Pair each change with a versioning decision so that running executions keep the logic they started with.

Treat cost data as sensitive

Usage reports, namespace names, workflow type names and action counts can reveal which products, customers or business processes a team runs and when they are busy. Limit who can view billing and usage data, and keep those exports out of shared dashboards unless the data owners have approved them. If you share cost reviews with finance or outside advisers, remove workflow identifiers and personal data first.

Route connectivity and capacity changes through change control

Changes to private connectivity rules, identity providers, API keys, capacity modes or high availability settings can stop workers from reaching the service or change who can act in it. Treat a cost-driven change to these settings like any other production change: record the reason, the rollback step, the approver and the test that proves workers still connect and authenticate. Confirm with your change board which of these settings need a review before they are edited.

Questions buyers ask before reducing Temporal Cloud costs

How much effort does a Temporal Cloud cost review take?

Effort depends mostly on how many namespaces and workflow types you run, and how much of the bill comes from actions compared with storage. A review needs your billing usage exports, a count of actions per workflow type, the retention period set on each namespace, and a sample of recent workflow histories. Each workflow type also needs a read of its code to find repeated activities, polling loops and child workflows that add actions. Ask a partner for a fixed scope built from those inputs, with the deliverables and the decision points written down before work starts.

Can our own team run a Temporal Cloud cost review alone?

Many teams can run a first pass alone if they have three things: someone who owns the workflow code, someone who can query usage data, and someone who knows the retention obligations that apply to the data. The harder parts are judging which workflow changes are safe to deploy and checking that a design change keeps histories replay-safe. Teams often also lack a second reviewer who has not written the workflow. A partner can supply that independent review and the test plan, while your engineers keep ownership of the code and the decisions.

Which Temporal cost changes need code releases and versioning checks?

Changes that alter the commands a workflow issues need a code release and a versioning check, because they change the event history that running workflows replay. Examples include batching several activities into one, replacing a polling loop with a timer or signal, and removing child workflows. Changes to retention, namespace settings, worker concurrency or task queue layout usually do not change workflow code, but they still need a staged rollout and monitoring. Confirm the exact rules for your SDK and version in Temporal's documentation before you merge.

Is self-hosting Temporal cheaper than Temporal Cloud?

The Temporal server is MIT licensed, so the software itself carries no license fee, but the cost moves to infrastructure and people. Self-hosting means you run the persistence store, which Temporal tests on Cassandra, PostgreSQL and MySQL, plus a visibility store that Temporal recommends for anything beyond a few workflow executions. You also pay for compute, upgrades, monitoring, on-call and security work. Temporal Cloud publishes pay-as-you-go rates of $50 per million actions, $0.042 per GB-hour for active storage and $0.00105 per GB-hour for retained storage. Compare those rates with your own measured run cost over the same usage, including staff time, before deciding.

How long does a Temporal cost review and rollout take?

The duration depends on the number of workflow types, how often your teams release code, and how much testing each change needs. A typical review moves through data gathering, workflow analysis, a written list of proposed changes, code changes with replay tests, a staged rollout to one namespace and then the rest. Teams with many long-running workflows or slow release cycles need more time at the testing and rollout stages. Ask any partner for a timeline in the written scope that lists each phase, the dependencies on your release calendar and the approval steps your organization requires.

Does reducing Temporal Cloud costs affect reliability or the SLA?

It can, if changes are made without testing. Cutting retention too far can remove history your audit or support teams need, and batching activities can change how failures and timeouts are handled. Temporal Cloud publishes a 99.9% SLA, or 99.99% with High Availability, and cost changes should not weaken the design that supports those targets. Treat each change as a reliability change: test it against replay, set alerts before rollout, and keep a rollback plan. Confirm the current SLA terms with Temporal, since they are set in its pricing and contract documents.

What should we send a partner before a Temporal Cloud cost scoping call?

Send the inputs that determine scope, so the call can produce a useful written proposal. Include:

  • Recent billing statements or usage exports for the last several months
  • A list of namespaces with region, purpose and retention settings
  • The top workflow types, with an estimate of actions per execution
  • Your compliance or audit needs for workflow history
  • The SDK languages and versions in use, and how workers are deployed
  • Whether High Availability namespaces are enabled, and your reliability targets
  • Your release process and any change-approval requirements

Also state whether you want an independent review or hands-on implementation, so the scope matches what you need.

Does a Temporal Cloud support plan change the total cost?

Yes. Support is a recurring cost that sits on top of usage charges. Temporal's pricing page lists Business support from $500 per month, with a 2-hour P0 response during business hours. Enterprise and Mission Critical support are quoted by sales and include 30-minute or 15-minute P0 response around the clock, plus SCIM. Decide which tier your incident response needs before you compare totals, because a cheaper usage profile can be offset by a higher support tier. Ask Temporal for a written quote for each option and include it in your cost model.

How DeployOpen scopes Temporal cost reviews

A Temporal Cloud cost review starts with a written scope agreed before any work begins. DeployOpen sets out which namespaces, workflow types, workers and billing periods are in view, what usage data the client will share, and what the deliverables are, such as a findings report, a list of proposed workflow changes and a rollout plan. Most engagements are fixed-scope, so the client knows what the review covers and what it leaves out before anyone opens a workflow file. Ask for the scope in writing and check that it names the action and storage figures you want explained, not only the workflow code.

The work itself is done with your engineers, not around them. DeployOpen reviews workflow code and usage data together, looking at where actions are generated (for example, activity retries, polling loops, signal fan-out and timers that wake workflows more often than the business needs) and how long closed histories stay in active and retained storage. Each proposed change is tested in a non-production namespace first, with the client's engineers confirming that workflow determinism, versioning and worker behavior are unchanged. Reliability is the constraint: a change that lowers the bill but alters recovery behavior is not accepted until it has been verified.

Cost work does not end when the first report is delivered, because new workflows and retention settings tend to add spend again. DeployOpen offers retainers for ongoing review, where usage is checked on a regular schedule and new designs are reviewed before they reach production. Ask any provider how usage will be tracked after the review, who owns retention and namespace settings, and what happens when a change needs to be rolled back. The quote should follow from the written scope, and its recurring components should be listed separately from the one-time review.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.