Content Deep Dive

Why making every Activity idempotent doesn’t make your Workflow idempotent

Blog post from Temporal

Post Details
Company
Date Published
Author
Mostafa Ibrahim
Word Count
1,816
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

Idempotent Activities protect retries within a Run, but they do not by themselves prevent duplicate effects when a Workflow starts a new Run through a Workflow retry, Reset, or duplicate start. Per-Run keys such as generated UUIDs change across Runs, so the same checkout can reserve stock or charge a card again. The article recommends using a stable business identifier, such as a cart ID, as the Workflow ID to prevent duplicate starts, and deriving each Activity’s idempotency key from that Workflow ID and a step name, adding an item or cycle identifier when work repeats. It also advises reviewing Workflow retry policies and ensuring downstream services retain idempotency keys for as long as a Workflow might be retried or reset.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.