AWS Step Functions vs Temporal vs Azure Durable Functions vs Google Cloud Workflows: Workflow Orchestration Compared

AWS Step Functions vs Temporal vs Azure Durable Functions vs Google Cloud Workflows: Workflow Orchestration Compared

Step Functions vs Temporal vs Azure Durable Functions vs Google Cloud Workflows: Workflow Orchestration Compared

The same ten-step order workflow, run one million times a month, costs about $250 in orchestration fees on AWS Step Functions Standard, roughly $3 on Step Functions Express, around $100 on Google Cloud Workflows, and a few hundred dollars on Temporal Cloud. Those numbers are not a ranking. They are a symptom. Each engine bills a different unit, and that unit tells you exactly what the engine persists, what it guarantees, and where your code is allowed to live. Most step functions vs temporal comparisons stop at “JSON versus code.” That framing misses the decision that actually bites in production: whether the engine interprets a definition or replays your program. In 2026 this matters more than it did two years ago. Azure’s Durable Task Scheduler is now generally available, Step Functions has JSONata and variables, and the in-process .NET model for Durable Functions reached end of support on November 10, 2026. You will leave with a decision matrix, verified limits, and the same saga written four ways.

What this covers: execution models, durability semantics, limits, versioning, compensation, observability, cost at a worked volume, lock-in, and a use-case decision matrix.

Context and Background

Workflow orchestration is the job of coordinating several steps that individually can fail, retry, or take a long time, while keeping a durable record of where the whole process stands. An order that reserves stock, charges a card, books a courier, and sends a notification is the canonical example. If the process dies between the charge and the booking, something must remember that the card was charged.

Four managed or semi-managed options dominate this space for cloud teams. AWS Step Functions defines workflows in the Amazon States Language (ASL), a JSON-based state-machine DSL. Temporal is a code-first durable execution platform with SDKs in several languages, available as an open-source server or as Temporal Cloud. Azure Durable Functions is an extension of Azure Functions in which orchestrators are ordinary functions whose state is reconstructed by replay. Google Cloud Workflows is a serverless engine driven by YAML or JSON definitions with built-in connectors to Google Cloud APIs.

The broader “durable execution” category has grown well beyond these four. Restate, DBOS and others push the same ideas into libraries and databases, and we unpacked that landscape in our durable execution architecture comparison of Temporal, Restate and DBOS. Data-pipeline schedulers such as Airflow or Dagster solve a different problem: batch DAGs over datasets rather than long-lived business transactions. If that is your actual need, our Airflow vs Dagster vs Prefect comparison is the better starting point.

What changed recently is material. AWS added variables and JSONata transformations to Step Functions on November 22, 2024, which removed much of the JSONPath plumbing that made ASL painful (AWS announcement). Microsoft made the Durable Task Scheduler Dedicated SKU generally available in November 2025 and the Consumption SKU generally available on March 31, 2026. Temporal Cloud now publishes progressive per-action pricing with no spend minimum on its Developer plan. Any comparison written before these changes is working from stale facts.

This post takes a specific angle. Instead of feature checklists, it groups the four engines by execution model, then follows one order-fulfilment saga through each. That makes the trade-offs concrete rather than rhetorical.

Step Functions vs Temporal: Interpreters vs Replay Engines

Direct answer: AWS Step Functions and Google Cloud Workflows are interpreters. They execute a declarative definition and checkpoint after each state or step. Temporal and Azure Durable Functions are replay engines. They run your ordinary code, record every side effect in an event history, and rebuild state by re-executing the code against that history. Choose by where you want determinism enforced.

Step Functions vs Temporal execution models: interpreter engines checkpoint each state while replay engines rebuild state from event history

Figure 1: Two families of workflow engine. Interpreters own the control flow; replay engines let your code own it and record its effects.

The diagram shows the two halves of the market. On the left, Step Functions and Cloud Workflows receive a definition, walk it state by state, and persist the position and data after each transition. Your code lives only inside the tasks they call. On the right, Temporal and Durable Functions host your orchestration code in a worker process. The service stores an append-only event history, and the worker replays the code to reach the current point whenever it resumes.

Interpreters put the control flow in the service

In Step Functions, the state machine definition is the program. Each Task, Choice, Map, Parallel or Wait state is evaluated by AWS, and the service persists execution state between transitions. AWS documents Standard Workflows as “exactly-once”: tasks and states never run more than once unless you specify Retry in ASL (AWS: choosing workflow type). That guarantee is only possible because the engine, not your code, decides what runs next.

Google Cloud Workflows follows the same pattern with a YAML or JSON syntax. Every step, including variable assignments and conditional evaluation, is executed and counted by the service. The benefit of this model is that there is nothing for you to keep deterministic. You cannot accidentally call random() in the orchestration layer, because the orchestration layer is not your code.

The cost is expressiveness. Loops, nested error handling, dynamic fan-out and data shaping all have to be expressed in the DSL. JSONata narrowed that gap for Step Functions considerably. However, any logic that would be a ten-line function in Python becomes a cluster of states, and each state is a billable transition.

Replay engines put the control flow in your code

Temporal and Durable Functions take the opposite approach. Microsoft’s documentation describes it plainly: orchestrators use event sourcing, the runtime does not checkpoint local variables, and when an orchestrator resumes it replays its code from the beginning, feeding in results from the history (Microsoft Learn: orchestrator code constraints). Temporal works the same way at the SDK level.

The payoff is that a saga with compensation, conditional retries and a human-approval wait reads like normal code. You get loops, local variables, unit tests and your IDE’s refactoring tools. The price is a contract you must honour: orchestration code must be deterministic. No wall-clock reads, no random UUIDs, no direct network I/O, no threads. Both platforms provide replay-safe substitutes such as context.CurrentUtcDateTime and durable timers.

This contract is not cosmetic. A non-deterministic change deployed while workflows are in flight can break replay for every running instance. That is why versioning, covered below, is a first-class topic for replay engines and a minor one for interpreters.

Express Workflows are a third category hiding in plain sight

Step Functions Express is often lumped in with Standard. It should not be. AWS states that asynchronous Express workflows give at-least-once execution and synchronous Express workflows give at-most-once execution. In both cases execution state does not persist between state transitions (AWS: execution guarantees).

Express runs for at most five minutes, does not support the .sync job-run or .waitForTaskToken callback patterns, and does not support Activities or Distributed Map. It is a fast, cheap, in-memory interpreter. That makes it excellent for idempotent event processing and API-backed micro-orchestration. It is not a durable saga engine, and treating it as one is a common source of duplicated side effects.

Why the billing unit reveals the model

Each vendor bills the thing it has to persist. Step Functions Standard bills per state transition because each transition is a durable checkpoint. Temporal Cloud bills per Action, which includes workflow starts, activity starts and retries, timers, signals, queries and heartbeats that reach the server. The Durable Task Scheduler Consumption SKU bills per dispatched action, which includes starting an orchestration, starting an activity, and processing an activity’s result. Cloud Workflows bills per executed step, split between internal and external calls.

Read this way, a pricing page becomes an architecture diagram. If a feature generates an event in history, it costs money. If it happens inside your worker during replay, it does not. Temporal explicitly excludes actions during replay from billing, because replay runs only on the worker. This is the single most useful mental model for estimating cost and for reasoning about what the engine will remember after a crash.

Deeper Analysis: The Same Saga Four Ways

To compare the engines honestly, we use one workflow throughout. An order arrives. The orchestrator reserves inventory, charges payment, and creates a shipment. If any step fails after earlier steps succeeded, it runs compensations in reverse order: refund the payment, then release the inventory. This is the orchestration form of the saga pattern; our saga pattern guide on orchestration vs choreography and compensating transactions covers the theory.

Order fulfilment saga with forward steps and compensating transactions used in the workflow orchestration comparison

Figure 2: The order-fulfilment saga. Forward steps run top to bottom; on failure, compensations unwind completed steps in reverse.

The figure shows three forward activities and two compensations. A failure in the shipment step triggers a refund and then an inventory release. A failure in payment triggers only the inventory release. A failure in reservation simply fails the order, because nothing needs undoing. The snippets below are deliberately short and illustrative; they omit configuration and are meant to show shape, not to be copied into production unmodified.

AWS Step Functions with JSONata

{
  "QueryLanguage": "JSONata",
  "StartAt": "ReserveInventory",
  "States": {
    "ReserveInventory": {
      "Type": "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "Arguments": { "FunctionName": "reserve-inventory", "Payload": "{% $states.input %}" },
      "Retry": [{ "ErrorEquals": ["States.TaskFailed"], "MaxAttempts": 3, "BackoffRate": 2 }],
      "Catch": [{ "ErrorEquals": ["States.ALL"], "Next": "OrderFailed" }],
      "Next": "ChargePayment"
    },
    "ChargePayment": {
      "Type": "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "Arguments": { "FunctionName": "charge-payment", "Payload": "{% $states.input %}" },
      "Catch": [{ "ErrorEquals": ["States.ALL"], "Next": "ReleaseInventory" }],
      "Next": "CreateShipment"
    },
    "CreateShipment": {
      "Type": "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "Arguments": { "FunctionName": "create-shipment", "Payload": "{% $states.input %}" },
      "Catch": [{ "ErrorEquals": ["States.ALL"], "Next": "RefundPayment" }],
      "End": true
    },
    "RefundPayment":   { "Type": "Task", "Resource": "arn:aws:states:::lambda:invoke",
                         "Arguments": { "FunctionName": "refund-payment" }, "Next": "ReleaseInventory" },
    "ReleaseInventory":{ "Type": "Task", "Resource": "arn:aws:states:::lambda:invoke",
                         "Arguments": { "FunctionName": "release-inventory" }, "Next": "OrderFailed" },
    "OrderFailed":     { "Type": "Fail", "Error": "OrderFailed" }
  }
}

In Step Functions, compensation is topology. Each Catch points at the first compensation state, and the compensations chain into each other. This is explicit and visible in the console graph, which auditors like. It also means that adding a fourth forward step requires rewiring the catch chain by hand. With JSONata and variables, passing order data between states no longer needs ResultPath gymnastics, but the graph structure remains the source of truth.

Temporal (Python SDK)

@workflow.defn
class OrderSaga:
    @workflow.run
    async def run(self, order: Order) -> str:
        undo = []
        opts = dict(start_to_close_timeout=timedelta(seconds=30))
        try:
            undo.append(release_inventory)
            await workflow.execute_activity(reserve_inventory, order, **opts)
            undo.append(refund_payment)
            await workflow.execute_activity(charge_payment, order, **opts)
            await workflow.execute_activity(create_shipment, order, **opts)
            return "shipped"
        except ActivityError:
            for step in reversed(undo):
                await workflow.execute_activity(step, order, **opts)
            raise

In Temporal, compensation is a data structure. The list of undo steps grows as the saga progresses. Note the subtle ordering: the compensation is registered before the forward call. An activity can succeed on the remote side and still report failure, for example because the worker crashed after the payment API returned. Registering first, and making compensations idempotent, covers that gap. Retries are a property of the activity options rather than of the graph.

Azure Durable Functions (Python v2 model)

@app.orchestration_trigger(context_name="ctx")
def order_saga(ctx: df.DurableOrchestrationContext):
    order = ctx.get_input()
    retry = df.RetryOptions(first_retry_interval_in_milliseconds=5000,
                            max_number_of_attempts=3)
    undo = []
    try:
        undo.append("release_inventory")
        yield ctx.call_activity_with_retry("reserve_inventory", retry, order)
        undo.append("refund_payment")
        yield ctx.call_activity_with_retry("charge_payment", retry, order)
        yield ctx.call_activity_with_retry("create_shipment", retry, order)
        return "shipped"
    except Exception:
        for name in reversed(undo):
            yield ctx.call_activity(name, order)
        raise

Durable Functions looks almost identical to Temporal, which is the point. Microsoft requires Python orchestrators to be generators that yield, not async coroutines, and JavaScript orchestrators to be synchronous generator functions. That rule exists because the replay dispatcher must control when each durable task completes. The same saga logic ports between the two platforms with modest effort; the infrastructure around it does not.

Google Cloud Workflows

main:
  params: [order]
  steps:
    - reserve:
        call: http.post
        args: { url: "https://inventory.example.run.app/reserve", body: "${order}", auth: { type: OIDC } }
    - charge:
        try:
          call: http.post
          args: { url: "https://payments.example.run.app/charge", body: "${order}", auth: { type: OIDC } }
        retry: ${http.default_retry}
        except:
          as: e
          steps:
            - undoReserve:
                call: http.post
                args: { url: "https://inventory.example.run.app/release", body: "${order}", auth: { type: OIDC } }
            - failCharge:
                raise: ${e}
    - ship:
        try:
          call: http.post
          args: { url: "https://shipping.example.run.app/create", body: "${order}", auth: { type: OIDC } }
        except:
          as: e
          steps:
            - undoCharge:
                call: http.post
                args: { url: "https://payments.example.run.app/refund", body: "${order}", auth: { type: OIDC } }
            - undoReserve2:
                call: http.post
                args: { url: "https://inventory.example.run.app/release", body: "${order}", auth: { type: OIDC } }
            - failShip:
                raise: ${e}

Cloud Workflows compensation is nested try/except blocks. It reads more naturally than a state graph for short sagas, and calls to *.run.app count as cheaper internal steps. The weakness shows as the saga grows: compensations are duplicated per failure point, and the 512 KB cumulative memory limit for variables means large order payloads should be passed by reference rather than by value.

Replay under a crash

Sequence of a replay engine recovering a saga after a worker crash in the Azure Durable Functions vs Temporal model

Figure 3: How a replay engine resumes after a worker crash mid-saga. The new worker re-runs the code but skips activities already recorded in history.

The sequence diagram traces one failure. The first worker schedules reserve_inventory and charge_payment, and both results land in history. The worker then crashes. A second worker picks up the next task, replays the orchestrator from the top, receives the recorded results instead of calling the services again, and continues with create_shipment. Nothing is charged twice, because the charge result is already in history. This is the property you pay for, and it is also why a code change that reorders the first two calls would break every in-flight instance.

Verified limits that shape the design

Dimension Step Functions Standard Step Functions Express Temporal (Cloud) Durable Functions + DTS Cloud Workflows
Definition style ASL JSON, JSONata or JSONPath ASL JSON Code (several SDKs) Code (C#, JS, Python, PowerShell, Java) YAML or JSON
Max duration 1 year 5 minutes Bounded in practice by history limits Bounded in practice by history size and retention 1 year
History limit 25,000 events Unlimited (logs only) 51,200 events or 50 MB Retention up to 90 days (Dedicated) 100,000 steps per execution
Payload limit 256 KiB per input/output 256 KiB 2 MB per request payload 1 MB per payload 512 KB variable memory; 2 MB HTTP response
Semantics Exactly-once per state At-least-once (async), at-most-once (sync) Replay; activities at-least-once with retries Replay; activities at-least-once with retries Step checkpointing; retries count as steps
History retention 90 days CloudWatch Logs 1 to 90 days (default 30) Up to 30 days (Consumption) or 90 (Dedicated) 90 days

Sources for each cell are in the AWS, Temporal, Microsoft and Google documentation linked in this post; all were retrieved on 2026-11-23. The activity semantics rows are a characterisation of the replay model rather than a quoted vendor guarantee.

Two rows deserve emphasis. First, the history limits are not academic. A Step Functions Standard execution that loops over 3,000 items with several states each will hit 25,000 events and fail. The fix is Distributed Map or a child workflow. In Temporal, the equivalent fix is Continue-As-New, which starts a fresh run with a clean history; Temporal warns at 10,240 events or 10 MB. Second, payload limits drive storage design. At 256 KiB, Step Functions pushes you toward S3 pointers early. Temporal’s 2 MB cap is more generous, but large payloads also inflate history size and storage billing.

Cost at a worked volume

The scenario: one million executions per month of a ten-step workflow, no retries, US East pricing, retrieved 2026-11-23. Compute for the tasks themselves (Lambda, Cloud Run, Functions, or your workers) is excluded everywhere. These are list-price calculations from published rates, not benchmarks.

Engine Billing unit Units for 1M runs Orchestration cost per month
Step Functions Standard State transition at $0.000025, 4,000 free ~10M transitions (10,000,000 – 4,000) x $0.000025 = $249.90
Step Functions Express $1.00 per 1M requests + duration 1M requests, assumed 2 s at 64 MB $1.00 + 125,000 GB-s x $0.00001667 = ~$3.08
Temporal Cloud (Developer plan) $50 per 1M Actions + 10% of usage ~11M Actions (1 start + 10 activity starts) $550 + $55 = ~$605, plus storage
Durable Task Scheduler Dedicated 1 CU at $0.684932/hour ~21M actions, about 8 actions/s 730 h x $0.684932 = ~$500
Durable Task Scheduler Consumption Per dispatched action ~21M actions (1 + 2 per activity) Rate x 21M; see note below
Cloud Workflows $0.01 per 1,000 internal steps, 5,000 free ~10M internal steps 9,995 increments x $0.01 = ~$99.95

Several assumptions need flagging. The Express duration of 2 seconds and 64 MB memory is illustrative; AWS’s own pricing example uses 64 MB. The Temporal figure assumes 11 Actions per run and no timers, signals, queries or heartbeats. Temporal’s Business plan applies progressive rates ($50 per million for the first 5M, $45 for the next 5M, $40 for the next 10M) but carries a floor of $500 per month or 10% of usage, with 2.5M Actions included; get a quote before modelling it precisely. The Durable Task Scheduler action count follows Microsoft’s worked example of one action to start plus two per activity. The Azure Retail Prices API lists the Consumption Action meter at $0.003 per unit in East US, but the unit size is not stated in the material we retrieved, so we do not convert it to a monthly figure.

Cloud Workflows has its own caveat. Variable assignments and condition checks are billable internal steps too. A “ten-step” business saga can easily run 20 to 30 Workflows steps, which doubles or triples the figure. If your services sit outside Google Cloud or behind custom domains, the calls become external steps at $0.025 per 1,000.

The table yields one durable insight. Interpreter engines scale linearly with steps and have no idle cost. Temporal and Azure’s dedicated capacity units behave more like platforms, with a floor that amortises well at high volume and badly at low volume. Self-hosted Temporal swaps per-action fees for the cost of running the server cluster, its database, and the people who operate it.

Run the same arithmetic at ten times the volume and the ordering shifts. Ten million Standard executions of ten states cost about $2,500 in transitions. One Durable Task Scheduler capacity unit still covers roughly 80 actions per second, well inside its 2,000 per second ceiling, so the Dedicated bill stays near $500. Temporal’s progressive tiers pull the marginal Action price down toward $30 to $25 per million at that scale. In the step functions vs temporal cost debate, volume and step count decide the winner, not the vendor.

Retries, timeouts and idempotency

All four engines retry, but they retry different things. Step Functions retries a state according to its Retry block, with ErrorEquals, MaxAttempts, IntervalSeconds and BackoffRate, and each attempt is a new billable transition. Cloud Workflows attaches a retry policy to a try block, and every attempt counts as a step. Temporal attaches a retry policy to each activity and, by default, retries failed activities until a timeout or the policy says stop. Durable Functions uses RetryOptions per activity call.

The common mistake is assuming any engine makes the downstream call exactly once. None can. Step Functions’ exactly-once guarantee covers its own state transitions, not your payment provider. If a Lambda times out after the provider accepted the charge, a retry will charge again unless the call carries an idempotency key. The robust pattern is the same everywhere: derive an idempotency key from the workflow ID and step name, and pass it to every external API. Temporal and Durable Functions make this easy because the workflow or instance ID is available in code. In Step Functions, the execution name or ID from the context object serves the same purpose.

Timeouts deserve the same attention. Temporal distinguishes schedule-to-close, start-to-close and heartbeat timeouts, and a missing heartbeat timeout is the usual reason a stuck activity waits far longer than anyone expected. Step Functions offers TimeoutSeconds and HeartbeatSeconds on task states. Set explicit timeouts on every external call in every engine.

Observability and day-two operations

The interpreters win on out-of-the-box visibility. The Step Functions console renders each execution as a graph with the failing state highlighted, and Standard executions can be listed and described through the API for 90 days. Cloud Workflows keeps execution history for 90 days and logs to Cloud Logging. Neither requires you to run anything.

The replay engines have closed most of that gap. The Durable Task Scheduler ships a dashboard per task hub with filtering by status, drill-down into sub-orchestrations and activities, and pause, terminate and restart operations, all behind Entra ID and role-based access. Temporal’s Web UI shows full event histories, pending activities and stack traces, and it can query running workflows. One nuance matters for cost: on Temporal Cloud, a query triggered by viewing a call stack in the UI is itself a billable Action.

Express Workflows are the outlier. Step Functions does not capture their history at all; you must enable CloudWatch Logs, and the log ingestion bill can exceed the orchestration bill. Budget for logging when you choose Express for high-volume work.

Decision matrix by use case

Use case Best fit Runner-up Why
Glue between AWS managed services, audit trail needed Step Functions Standard Temporal Native integrations, visual history, exactly-once states
High-volume, short, idempotent event processing on AWS Step Functions Express Lambda alone Cents per million runs, no persistence overhead
Long-running business saga with compensation and approvals Temporal Durable Functions Code-first compensation, testable, portable
Azure-first team already on Azure Functions Durable Functions + DTS Temporal Same programming model, managed backend, flat CU pricing
Glue between Google Cloud services and Cloud Run Cloud Workflows Temporal Cheapest per step, built-in connectors
Multi-cloud or on-premises orchestration Temporal None comparable Only option that is not bound to one provider

The matrix reflects a judgement, not a measurement. It assumes a team with average experience of each platform and no existing investment that would tilt the choice.

Trade-offs, Gotchas, and What Goes Wrong

The most common Step Functions failure is cost surprise from fine-grained states. Teams model every data transformation as a Pass state and every retry as a transition, and the bill tracks state count rather than business value. Retries count as additional state transitions. JSONata reduces state count; consolidating trivial steps into a single Lambda reduces it further. The second failure is choosing Express for a workflow that is not idempotent. At-least-once execution means a payment step can run twice.

Replay engines fail differently. The classic incident is a non-deterministic deploy. A developer adds an activity call above an existing one, deploys, and every in-flight workflow fails replay because history no longer matches code. Temporal offers patching (workflow.patched with a later deprecate_patch), Worker Versioning, and workflow-type cutover. Durable Functions now supports orchestration versioning via defaultVersion in host.json, with a CurrentOrOlder match strategy and a Reject failure strategy by default. Both work, but only if your team treats orchestration code changes as schema migrations. Replay tests in CI are the cheapest insurance.

Durable Functions has platform-specific traps in 2026. The in-process .NET model reached end of support on November 10, 2026, so anything still on it should move to the isolated worker model. Netherite support ends March 31, 2028. Microsoft also states you cannot migrate data between storage providers; switching backends means a new app and a drain of in-flight instances. Plan that cut-over before you need it.

Temporal’s main gotcha is operational. Self-hosting means running a multi-service server and its persistence layer, then upgrading both safely. Teams underestimate that work. On Temporal Cloud, chatty workflows are the trap: heartbeats that reach the server, queries from dashboards and implicit SDK timers all count as Actions.

Cloud Workflows is the simplest of the four, and its limits reflect that. The 512 KB variable memory cap, 20 concurrent branches per execution, and 20-level call stack rule out heavy fan-out or large in-workflow data. It shines as glue between Google Cloud services, not as a general transaction engine.

Finally, lock-in is real but uneven. ASL definitions and Workflows YAML are tied to their clouds. Temporal code is portable between self-hosted and Cloud. Durable Functions code ports reasonably to the Durable Task SDKs on other Azure compute, but not off Azure without rework.

Decision flow for choosing between AWS Step Functions vs Temporal, Azure Durable Functions and Google Cloud Workflows

Figure 4: A decision flow. Start from where your services run and whether the orchestration logic is complex enough to deserve real code.

The flowchart starts with cloud affinity, then asks two questions: does the workflow need complex branching or long human waits, and is the team ready to own a determinism contract? Simple orchestration of managed services leads to the native interpreter. Complex, long-running business logic leads to a replay engine, with Temporal for multi-cloud portability and Durable Functions for Azure-first teams.

Practical Recommendations

Whether you are weighing step functions vs temporal or any other pairing here, choose by execution model first and by cloud second. If your workflow is mostly calls to managed services in one cloud, with modest branching, an interpreter is cheaper to run and easier to audit. Step Functions Standard is the stronger of the two interpreters for durable, non-idempotent work. Cloud Workflows is the cheapest way to glue Google Cloud services together. If your orchestration is real business logic, such as sagas with conditional compensation, approvals that wait days, or loops over dynamic data, use a replay engine. The code will be shorter, testable, and reviewable as code.

Between replay engines, the deciding factor is usually portability. Temporal runs anywhere and has the larger cross-language ecosystem; our hands-on Temporal workflow tutorial shows the developer loop. Durable Functions with the Durable Task Scheduler is the natural fit for teams already on Azure Functions, and its dedicated capacity unit gives a predictable bill.

Model cost with your real step count. Count every state, every retry, every heartbeat and every query, then apply the published rate. Do this before you commit, and again after the first month of production metrics.

Checklist before you commit:

  • Write the saga once in your candidate engine, including compensation and one deliberate crash test.
  • Confirm payload sizes against the 256 KiB, 1 MB, 2 MB or 512 KB limits, and design pointer-passing early.
  • Estimate monthly units (transitions, Actions, dispatched actions or steps) from a real trace.
  • For replay engines, add replay tests to CI and agree a versioning policy.
  • Set history retention to match audit requirements, not the default.
  • Make every compensation idempotent and safe to run on a step that never happened.
  • Decide who operates the engine, especially if you self-host Temporal.

Frequently Asked Questions

Is Temporal better than AWS Step Functions?

Neither is better in general; they solve the problem differently. Step Functions interprets a JSON state machine and checkpoints each state, giving exactly-once state execution on Standard Workflows and zero determinism burden. Temporal replays your code against event history, so complex sagas, loops and long waits read like normal programs. Choose Step Functions when the workflow is mostly AWS service calls with modest branching. Choose Temporal when the orchestration logic is complex, needs to run outside AWS, or benefits from unit-testable code.

What is the difference between Step Functions Standard and Express?

Standard Workflows run for up to one year, keep a queryable execution history for 90 days, follow an exactly-once model and bill $0.000025 per state transition. Express Workflows run for at most five minutes, bill per request plus duration and memory, and log history only to CloudWatch Logs. Asynchronous Express is at-least-once and synchronous Express is at-most-once. Express does not support the .sync or .waitForTaskToken patterns, Activities, or Distributed Map. Use Express only for idempotent, short-lived work.

Is the Azure Durable Task Scheduler generally available?

Yes. Microsoft announced general availability of the Dedicated SKU in November 2025 and of the Consumption SKU on March 31, 2026. Dedicated bills a fixed hourly rate per capacity unit, with each unit supporting up to 2,000 actions per second and 50 GB of orchestration data, and up to 90 days of retention. Consumption bills per dispatched action, supports up to 500 actions per second and keeps up to 30 days of history. Microsoft lists it as the recommended Durable Functions backend.

How does Temporal Cloud pricing work?

Temporal Cloud bills mainly by Actions, plus active and retained storage. Actions include workflow starts, activity starts and retries, timers, signals, queries, updates and heartbeats that reach the server. Replay on your workers is not billed. The Developer plan charges $50 per million Actions with no base fee, plus 10% of usage. Business and higher plans use progressive rates from $50 down to $25 per million and include Actions and storage. Active storage costs $0.042 per GB-hour and retained storage $0.00105 per GB-hour.

Can Google Cloud Workflows handle long-running sagas?

It can run executions for up to one year and supports callbacks through events.await_callback, so waiting for an external approval is possible. Compensation is written as nested try and except blocks. The practical limits are memory and complexity rather than duration. Variables are capped at 512 KB cumulatively, HTTP responses at 2 MB, and only 20 parallel branches or iterations run concurrently. Pass large payloads by reference and keep the workflow as glue between services rather than a home for business logic.

Which workflow engine has the least vendor lock-in?

Temporal has the least, because the same workflow code runs on the open-source server or on Temporal Cloud, across any cloud. Durable Functions code can move to the Durable Task SDKs on other Azure compute, but leaving Azure means reworking the backend. Step Functions ASL and Cloud Workflows YAML are bound to their providers. Even with Temporal, operational knowledge, tooling and data are still switching costs, so treat portability as reduced lock-in rather than none.

Further Reading

By Riju — about

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *