Temporal saga pattern for distributed transactions
Implementing sagas in Temporal: compensating actions registered per step, running them in reverse on failure, idempotent compensations and where a saga still cannot give you atomicity.

Pattern pages for the workflow designs teams most often build on Temporal, using the patterns Temporal documents and their limits.
Implementing sagas in Temporal: compensating actions registered per step, running them in reverse on failure, idempotent compensations and where a saga still cannot give you atomicity.
Modeling accounts, subscriptions or devices as one long-running Temporal workflow per entity: signals and updates for state changes, Continue-As-New to bound history, and when an entity workflow is the wrong tool.
Building approval and review steps in Temporal that wait for a person: signals carrying the decision, approver identity and reason, escalation and timeouts when nobody answers.
Waiting on third-party APIs without callbacks in Temporal: frequent versus infrequent polling strategies, activity retries as a polling loop, and protecting the external service from load.
Keeping long-running and looping Temporal workflows under history limits with Continue-As-New: when to trigger it, carrying state forward, and the storage savings it brings.
Splitting work into Temporal child workflows: separate histories and IDs, parent close policies, fan-out for parallel processing and when activities are the simpler choice.
Processing large record sets reliably with Temporal: basic fan-out, child-workflow fan-out up to around 500,000 records, batch iterators and sliding windows for unlimited sets with rate control.
Using Signal-With-Start to send a message to a workflow and start it if it does not exist, for carts, sessions and per-entity workflows without race conditions between start and signal.
Replacing signal-then-poll designs with Temporal Updates so callers get a validated, synchronous answer from a running workflow, and the latency and limit trade-offs involved.
Keeping Temporal workers from overwhelming downstream APIs: task queue and worker rate limits, concurrency caps, priority and fairness, and backoff from Retry Policies.
Running activities that take minutes or hours in Temporal: heartbeat timeouts to detect stuck workers, recording progress in heartbeats and resuming after a worker restart.
Tuning Temporal retries: the default exponential backoff, maximum attempts and intervals, marking business errors non-retryable and combining retries with activity timeouts.
Serializing access to a shared resource such as an account or device with a Temporal workflow acting as a lock, so concurrent workflows do not collide.

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.