Sagas: compensate a long-running workflow

Split a long workflow into local commits, then reason about semantic compensation, retries, and visible partial progress. Distributed commit and workflows · Databases.

A reservation is committed, payment succeeds, and shipping fails. What action can amend the earlier effects without pretending time ran backward?

What you will learn

  • Trace local commits through a forward Saga
  • Distinguish compensation from atomic rollback
  • Reason about retries, idempotency, and non-compensable effects

Lesson outline

  1. Commit one local step at a time
  2. Reverse with business actions
  3. Make retries safe

15 minutes · 2 scenes · 0 predict checks · 10 quiz questions

The full lesson is available with Premium.