Temporal Cloud vs Self-Hosted Temporal on EKS: The 69 Million Action Break-Even and the 59 GB History Threshold

Two teams run the same workflow engine and receive invoices that disagree with their volume. The first runs one million durable workflows a month at thirty actions each on Temporal Cloud Business and pays $9,206.22.

The second runs twenty million workflows at eight actions each, twenty times the executions and 160 million actions a month, and pays $5,430.58. The gap is not a discount.

The first team's workflow is a dunning sequence that waits seventy-five days for a customer to pay. The second team's workflow fans out notifications and finishes in minutes, and both pay the published rate card.

Temporal Cloud bills two meters and a plan fee, and they respond to different things. Actions follow how much work a workflow performs, while history storage follows how long an execution stays open and how much it remembers while it waits.

At list prices read on 27 November 2026, the smaller workload on long-lived workflows costs 69 percent more than a workload carrying five times its actions.

Self-hosting the Temporal Service on EKS replaces both meters with an infrastructure bill that barely moves between 30 million and 160 million actions. That bill is $3,002.26 a month in the reference footprint used here, and the decision is really about which workload crosses it.

Temporal Cloud bill composition for three workload shapes against the self-hosted footprint Same Engine, Three Shapes, Two Bills Temporal Cloud Business plan, US list prices, monthly USD A 160M short actions Actions $4,862 $5,431 per month self-hosted $6,368 B 40M actions, 3-day flows Actions $1,488 $2,085 per month self-hosted $3,002 C 30M actions, 75-day flows Active history $7,232 $9,206 per month self-hosted $3,002 $0 $2,500 $5,000 $7,500 $9,500 Actions Active history Retained history Plan fee and support Dashed line marks the 16-hour-a-month self-hosted footprint: six m7g.xlarge nodes and Multi-AZ RDS.

Two meters that move apart

Actions are the compute meter. A workflow start, an activity start or retry, a timer, a signal, an update and a query each count, and workflow replay does not.

The action price steps down with monthly volume on Business and above. It is $50 per million for the first five million, $45 to ten million, $40 to twenty, $35 to fifty, $30 to a hundred and $25 to two hundred.

Then the plan fee applies on top: the greater of $500 or 10 percent of consumption. At five million actions the $500 minimum is 80 percent of the bill, which turns a $50 rate into $125 per million in effective terms.

History is billed by the gigabyte-hour. Active history is $0.042, retained history $0.00105, so a gigabyte costs $30.66 a month while its workflow is open and $0.77 once it closes.

Set that against the same bytes in the database a self-hosted deployment would run. RDS for PostgreSQL with gp3 storage in Multi-AZ is $0.23 per GB-month.

Open workflow history costs 133 times as much per gigabyte as the storage that would hold the same events on RDS.

MeterPublished rateMonthly equivalentSelf-hosted comparisonDifference
Actions, first tier$50.00 per million$50.00 per millionNode hours, fixedTwice the Step Functions step price
Actions, 100M to 200M$25.00 per million$25.00 per millionNode hours, fixedLevel with Step Functions
Active history$0.042 per GB-hour$30.66 per GB-month$0.23 per GB-month on RDS gp3133 times
Retained history$0.00105 per GB-hour$0.77 per GB-month$0.23 per GB-month on RDS gp33.3 times
Plan fee$500 or 10 percent$500 at low volumeNone80 percent of a 5M bill
Step Functions transition$0.000025 each$25.00 per millionNode hours, fixedNo storage charge

Quick Decision Matrix

The matrix is a set of metering questions, because the three engines do not sell the same quantity.

Decision vectorTemporal CloudStep Functions StandardSelf-hosted Temporal on EKS
Billing unitAction, plus GB-hours of historyState transition, each step and retryInstance hours, database storage, labor
Cost while a workflow waitsHistory at $0.042 per GB-hour, no actionNothing until the next step runsNodes stay up regardless
Cost of a retryOne actionOne transition per retryAbsorbed in capacity
ReplayNot billedNot a billing concept, retries are transitionsYour CPU time
History limitRetention 30 to 90 days, per-run history boundedHistory dropped 90 days after completionUnlimited, your storage
Multi-tenant controlsUp to 100 namespaces, RBAC and audit logs includedIAM and CloudWatch, no tenant modelNot built in, you build RBAC and audit
Operational surfaceNamespace policy, quotas, cost reviewState machine definitions and IAMUpgrades every two weeks, shard sizing, on-call

Temporal Cloud charges nothing for replay and charges for the time a workflow waits, through its history. Step Functions charges nothing while it waits and everything for each step it executes, retries included.

Self-hosted Temporal charges for nodes whether anyone uses them or not.

What one execution costs on each meter

Take a single execution of a twenty-action workflow. At the first tier it costs $0.001 in actions.

The same execution holding 100 KB of history costs $0.0000042 for every hour it stays open. Divide one by the other and the meters cross where the workflow has been open long enough.

A 100 KB history turns storage-heavy after 10.4 days, 50 KB after 20.8 days, 25 KB after 41.6 days and 10 KB after 104 days.

That crossover is the most useful number here because both inputs are engineering decisions: what the workflow writes into events, and how long it waits.

Open days before active history storage equals the action charge for one execution How Long a Workflow Can Stay Open Before Storage Wins 20 actions per execution, active history at $0.042 per GB-hour, action at $0.00005 10 KB 104 days 25 KB 41.6 days 50 KB 20.8 days 100 KB 10.4 days Beyond each bar the history meter costs more per execution than the action meter for the same execution.

Closed workflows are not the problem: retention costs $0.77 per gigabyte a month, forty times cheaper than active storage. The bill is made while workflows are open, and a team that measures only its action volume is measuring the cheaper half of its invoice.

Three shapes and their totals

The scenarios below use the same published rates and differ only in shape: executions per month, actions per execution, history size and how long an execution stays open.

A is a notification fan-out that finishes in minutes, B is an order settlement that waits three days, and C is a dunning and approval process that waits 75 days.

Every volume is a model, and the self-hosted footprint is sized by availability zones rather than by throughput.

Monthly cost lineA: short jobsB: settlementsC: long waits
Executions20,000,0002,000,0001,000,000
Actions160,000,00040,000,00030,000,000
History per execution, open days10 KB, minutes30 KB, 3 days100 KB, 75 days
Active history, GB0.065.72238.42
Retained history, GB190.7357.2295.37
Temporal actions$4,862.50$1,487.50$1,137.50
Temporal active history$0.00$97.32$7,231.79
Temporal retained history$68.08$0.00$0.00
Temporal plan fee$500.00$500.00$836.93
Temporal Cloud total$5,430.58$2,084.82$9,206.22
Temporal Developer plan$8,962.96$2,441.23$9,771.31
Step Functions Standard$3,999.90$999.90$749.90
Self-hosted infrastructure$4,087.57$1,482.26$1,482.26
Self-hosted engineering$2,280.00$1,520.00$1,520.00
Self-hosted total$6,367.57$3,002.26$3,002.26

Step Functions is the cheapest column in all three rows and the only one that does not move when history grows. The other two trade places depending on how long workflows stay open.

Scenario A: twenty million short executions

Twenty million executions at eight actions each is 160 million actions, and actions are almost the whole Temporal bill at $4,862.50 of $5,430.58.

Storage contributes $68.08 for 191 GB of closed history, because 10 KB histories that close in minutes never accumulate as open bytes.

Step Functions prices the same shape at 160 million transitions, $3,999.90, twenty-six percent below Temporal Cloud and with no plan fee to add.

The self-hosted footprint for this volume is twelve m7g.2xlarge nodes and a larger Multi-AZ database: $4,087.57 of infrastructure and $2,280 of engineering time, or $6,367.57. At this volume self-hosting costs 17 percent more than Temporal Cloud, and the premium buys nothing the team cannot already buy from the managed service.

Scenario B: two million order settlements

Two million executions at twenty actions each is 40 million actions and $1,487.50 of action charges.

Active history is only 5.72 GB because a settlement waits three days, so storage adds $97.32 and the total reaches $2,084.82.

Step Functions charges $999.90 for the same 40 million transitions, less than half the cloud bill. The reference footprint costs $3,002.26, 44 percent above Temporal Cloud and three times the Step Functions price.

This is the shape where a managed service is easiest to defend: moderate volume, short waits, and no platform rotation on call.

Scenario C: 238 GB of open history

One million executions at thirty actions each is 30 million actions, the smallest action count of the three scenarios.

Each execution carries 100 KB of history and waits 75 days, so 238.42 GB is open at any moment. Active history alone is $7,231.79 a month and 79 percent of the $9,206.22 bill.

The action charge for the same workload is $1,137.50. The team pays more than six times as much to remember what each workflow is doing as to do it.

Nothing here is a pricing error. The same history on RDS gp3 Multi-AZ would cost $54.84 a month, and on Temporal Cloud it costs $7,231.79 because the meter multiplies duration by size at a managed-service rate.

Step Functions would charge $749.90 for 30 million transitions and Standard workflows can run for up to a year, so the shape is not out of reach for it. What it does not sell is the same durable programming model, and its execution history is deleted 90 days after completion rather than billed.

Where the two bills cross

Against the $3,002.26 reference footprint with light history, Temporal Cloud costs less until about 69 million actions a month and more above it.

The second crossover is storage. At 20 million actions a month, 59 GB of open history is where the cloud bill meets that footprint, and every gigabyte beyond it is priced at $30.66 instead of $0.23.

Two numbers decide the architecture: 69 million actions a month, or 59 GB of open history, whichever the workload reaches first.

Labor moves both numbers. The table below holds the infrastructure fixed and changes only the engineering hours carried against it.

Engineering hours per monthFootprint cost at $95 per hourAction break-evenWhat that assumes
8$2,242.2645.1MUpgrades are routine and nobody is paged
16$3,002.2669.2MTwo hours a week on patching, upgrades, on-call
24$3,762.2694.6MA release every two weeks with real testing
40$5,282.26153.8MA part-time platform engineer and incident work

Capacity moves the numbers in the direction nobody wants. That footprint is sized by three availability zones and paired service replicas, not by throughput, so whether it carries 69 million actions is a load test question rather than a rate-card question.

Temporal fixes the shard count at build time, and the documentation is explicit that adding shards later requires a rebuild and a migration. That single constraint is the most expensive part of self-hosting, and it arrives before the first invoice.

Levers that move both lines

The largest lever is what a workflow writes into its history. Activity inputs and results are recorded as events, so a 100 KB history that carries a generated invoice becomes 8 KB once the file is parked in object storage and the event holds a key.

That change is not cosmetic. At 20 actions per execution it moves the storage crossover from 10.4 days to 130 days, and it shrinks the bytes every replica has to store and every restore has to read.

Continue-As-New is the structural version of the same idea. It closes the current run, starts a fresh one with a small history, and moves the accumulated bytes to retained storage at the cheaper rate, all for the price of one action.

Retention is a policy rather than a rate. Cloud caps it between 30 and 90 days, and anything longer is meant to leave through the Export feature, which generates billable actions of its own.

Scheduled workflows and batch jobs are easy to miss: each one contributes actions and storage for its inputs, outputs and failures.

Task queue fairness adds 0.1 of an action per action for every hour it is enabled on a namespace, whether or not any workflow uses a fairness key. On 30 million actions that is three million extra actions, about $105 at the tier that applies.

Plan choice is the last lever, and it is not obvious. The Developer plan has no base fee and a flat $50 per million, so below about 23 million actions a month it is cheaper than the Business plan, whose $500 minimum dominates until its volume tiers close the gap.

Migration checkpoint: Terraform and Go

If the numbers point to self-hosting, provision the pieces that make a later exit cheap. The database is the part that cannot be replaced casually, so it gets Multi-AZ and the larger instance before the nodes do.

resource "aws_eks_cluster" "temporal" {
  name     = "temporal-prod"
  role_arn = aws_iam_role.cluster.arn
  version  = "1.36"

  vpc_config {
    subnet_ids              = var.private_subnets
    endpoint_private_access = true
    endpoint_public_access  = false
  }
}

resource "aws_eks_node_group" "temporal" {
  cluster_name    = aws_eks_cluster.temporal.name
  node_group_name = "temporal-systems"
  node_role_arn   = aws_iam_role.node.arn
  subnet_ids      = var.private_subnets
  instance_types  = ["m7g.xlarge"]
  capacity_type   = "ON_DEMAND"

  scaling_config {
    desired_size = 6
    min_size     = 6
    max_size     = 12
  }

  update_config {
    max_unavailable = 1
  }
}

resource "aws_db_instance" "temporal" {
  engine                  = "postgres"
  engine_version          = "17.4"
  instance_class          = "db.m7g.xlarge"
  allocated_storage       = 600
  max_allocated_storage   = 2000
  storage_type            = "gp3"
  multi_az                = true
  backup_retention_period = 7
  deletion_protection     = true
  auto_minor_version_upgrade = false
}

The database version is pinned deliberately. Temporal upgrades the server one minor version at a time, and an unattended database upgrade is how a self-hosted service loses a weekend.

Before any cutover, measure the thing the pricing model cares about: open history bytes. A short Go program over the Temporal client sums the history size of open executions and prices it with the same rate the vendor charges.

package main

import (
	"context"
	"fmt"
	"time"

	"go.temporal.io/api/enums/v1"
	"go.temporal.io/api/workflowservice/v1"
	"go.temporal.io/sdk/client"
)

const activeGBHour = 0.042 // Temporal Cloud active history, USD per GB-hour

func main() {
	c, err := client.Dial(client.Options{HostPort: "temporal-frontend:7233", Namespace: "default"})
	if err != nil {
		panic(err)
	}
	defer c.Close()

	ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
	defer cancel()

	var tokens []byte
	var openBytes int64
	var open int
	for {
		resp, err := c.ListWorkflow(ctx, &workflowservice.ListWorkflowExecutionsRequest{
			Query:         "ExecutionStatus = 'Running'",
			NextPageToken: tokens,
			PageSize:      1000,
		})
		if err != nil {
			panic(err)
		}
		for _, info := range resp.GetExecutions() {
			if info.GetStatus() != enums.WORKFLOW_EXECUTION_STATUS_RUNNING {
				continue
			}
			d, err := c.DescribeWorkflowExecution(ctx, info.GetExecution().GetWorkflowId(), info.GetExecution().GetRunId())
			if err != nil {
				continue
			}
			openBytes += d.GetWorkflowExecutionInfo().GetHistorySizeBytes()
			open++
		}
		tokens = resp.GetNextPageToken()
		if len(tokens) == 0 {
			break
		}
	}

	gb := float64(openBytes) / (1024 * 1024 * 1024)
	fmt.Printf("open executions: %d, open history: %.2f GB\n", open, gb)
	fmt.Printf("active history if held one month: $%.2f\n", gb*730*activeGBHour)
}

Two parts are deliberately rough: the listing paginates without a stable snapshot, and history size is read from the server.

What is worth keeping is the shape of the measurement: open executions multiplied by their history bytes, priced at the active rate. That product is the line that decides Scenario C, and no action dashboard shows it.

Five practical questions

Does Temporal Cloud bill workflow replay?

It does not. The pricing page states that actions generated during workflow replay are not counted, because replay happens on the worker and produces no new server-side operations.

That is one of the few places where the managed service is strictly cheaper than running the same code yourself.

Is the Business plan always the right plan?

No. Developer has no base fee but a flat $50 per million with 10 percent support, so it wins below roughly 23 million actions a month.

Business wins once its tiered rates and $500 minimum fall below the flat rate, which is where most production workloads end up.

Why does open history cost 133 times as much as database storage?

Because the product is different. RDS bills for bytes on a volume you operate, while Temporal Cloud bills for a replicated, queryable history service and meters the hours it is held.

What reduces the storage line fastest?

Smaller payloads and shorter open lifetimes. Moving blobs out of events with a claim-check pattern and closing long-running workflows with Continue-As-New both attack the product of size and duration, which is the only thing the meter measures.

When does self-hosting actually win?

Above roughly 69 million actions a month or 59 GB of open history against a 16-hour engineering month, and only if the footprint carries that volume in a load test. Below those numbers the cloud bill is smaller, and above them the platform work becomes the product team's problem.

Sources and scope

Temporal rates and plan mechanics come from the Temporal Cloud pricing page and its documentation of 8 October 2026, and the self-hosted constraints from the production readiness checklist updated 16 November 2026. Step Functions rates and limits come from its pricing page and workflow-type documentation.

AWS rates come from the EC2 on-demand feed published 24 November 2026, the RDS price list published 27 November 2026, the ELB price list published 25 November 2026, and the EKS and EBS pricing pages.

The same method applied to the database layer is in Serverless Postgres versus AWS RDS PostgreSQL, and the meter-mismatch argument for observability is in Datadog versus OpenTelemetry with ClickHouse and Grafana. Every volume here is modeled and no capacity is claimed: the footprints are sized by topology, and a load test is the only thing that turns them into a throughput statement.

Comments

Popular posts from this blog

Cloud GPUs vs. On-Prem AI Clusters: The 25.7% Utilization Break-Even for an Eight-GPU H100 Node

Zapier vs n8n: How Workflow Execution Differences Cut Automation Costs by Over 80%

ChatGPT Plus vs Claude Pro vs Cursor: When Does Direct API Routing Actually Beat $20 Subscriptions for Engineering Teams?