Software Design

Saga Orchestration: Handling Payment Failures

UML Sequence Diagrams · made in Skemio

Sequence diagram showing an orchestrated Saga rolling back inventory and order state via compensating transactions after a payment failure.
Sequence diagram showing an orchestrated Saga rolling back inventory and order state via compensating transactions after a payment failure.

What it shows

  • Orchestrator executes transactions across microservices sequentially.
  • Failure midway triggers reverse compensating transactions to undo work.
  • Compensating actions must be idempotent to survive network timeouts.

The takeaway

Orchestrators provide central visibility and clear compensation paths when steps fail.

More uml sequence diagrams