Why it matters

Saga shapes distributed transactions. Understanding shapes design.

Advertisement

The architecture

Sequence of local transactions.

Compensating action per step.

Failure triggers compensations.

Saga pattern flowLocal txnssequenceCompensationsper step definedFailuretrigger compensationsOrchestration (central saga) simpler than choreography (event-driven)
Saga.
Advertisement

How it works end to end

Orchestration: central coordinator (Temporal).

Choreography: event-driven.

Compensations idempotent.