Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Deterministic Replay Isn't Free: Evaluating Temporal vs. Event-Sourced Sagas

Disclosure: I'm the founder of JoobQ , a self-hosted job queue and durable workflow engine. We talk to teams evaluating Temporal every week, and we regularly tell some of them to pick Temporal over us. This post is the exact tradeoff breakdown we share with them. Most teams don't choose a workflow engine because they want a distributed systems project. They choose one because a multi-step…

Deterministic replay in Temporal offers three key benefits: long durable sleeps, exact mid-function resumption, and an auditable execution history. When a workflow calls sleep for an extended period or waits for an external signal, Temporal's Timer Task Queue persists the durable timer and wakes the workflow when the time is up, regardless of which worker is available.

The SDK replays the entire function to rebuild local state, eliminating the need for manual serialization of intermediate variables. Every activity scheduled, started, retried, or completed, along with signals and timers, is captured in an immutable, inspectable ledger, allowing teams to reproduce failure paths and debug issues.

However, deterministic replay comes at a cost. Temporal persists every state transition, generating a chain of lifecycle events for each activity execution, which is persisted to the Event History. This results in hard history ceilings: a limit of 51,200 events or 50 MB per Workflow Execution. Long-running or chatty workflows must explicitly checkpoint state and call Continue-As-New to start a fresh history chain.

Replay latency is another factor, as each event saved incurs future CPU and network work. In Temporal Cloud, pricing is metered per Action, with costs starting at $50 per million Actions and additional charges for Active and Retained Storage. For example, running 10 million sagas per month with 6 Actions per run would cost $3,000 + storage on Temporal Cloud, compared to $149 + Redis/compute on JoobQ Pro when self-hosted.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

CVE-2026-132877: Why a 9.9 Score and No Known Exploit Both Matter

CVE-2026-132877: Why a 9.9 Score and No Known Exploit Both Matter Security teams regularly encounter a high CVSS score with no reported exploitation. CVE-2026-132877 is one of those cases.

  • CVE-2026-132877 is a high severity vulnerability with a 9.9 CVSS score.
  • No known public exploits exist for this Adobe AEM code-injection flaw.
  • Affected AEM instances require urgent remediation despite lack of exploitation.

What I think an incident review is for

An incident review has one job, and I think it is to make the next incident shorter. Not to find who was at fault, which everyone says, and not to produce a document, which is what most reviews…

  • An incident review aims to reduce future incident duration, not assign blame.
  • Effective reviews produce few, well-defined actions owned and dated.
  • Successful reviews often change system tools, paging, or decide what not to fix.

More from Wednesday 25 November →