Skip to main content

Error handling & SAGA

Why you need it

Failures need explicit transitions and compensating actions, not silent queue DLQs.

Code examples

Choose an SDK (preference is sticky in this browser; default Python).

# On execute failure → ProceedTo compensation Step
# See examples money transfer saga.

Use execute failure movements and compensating Steps (see money-transfer use case).

How Dex implements it

Step failure policies and recovery options are first-class. Compensations are just more Steps.

Traditional workarounds

SAGA coordinators, choreography via events, and brittle “undo” scripts are common without Durable Execution.