Flowcharts & Processes

Saga Pattern: Distributed Rollbacks

Flowcharts & Algorithms diagram · made in Skemio

Flowchart showing Saga Orchestrator executing inventory reservation, payment step, and triggering a compensating rollback if payment fails.
Flowchart showing Saga Orchestrator executing inventory reservation, payment step, and triggering a compensating rollback if payment fails.

What it shows

  • An orchestrator coordinates sequence using persistent state machines.
  • Compensating transactions reverse partial work in reverse order.
  • Trades strict ACID isolation for eventual consistency across boundaries.

The takeaway

Sagas ensure distributed consistency by executing explicit semantic rollbacks when downstream steps fail.

More flowcharts & algorithms diagrams