A saga splits a business operation across local transactions in multiple services. If a later step fails, compensating actions address earlier completed steps.
The demo fails at Shipping, then refunds Payment and cancels Order in reverse order. Compensation is not a database rollback, so retries and idempotency still matter.
When to use
Use it for a cross-service business flow that cannot share one database transaction.