Saga Pattern

Noun · Development

Definitions

  1. A pattern for managing distributed transactions across multiple services by breaking them into a sequence of local transactions, each with a compensating action for rollback. Avoids distributed locks and supports eventual consistency.

    In plain English: A way to handle multi-step operations across different services by having an undo action ready for each step if something fails.

    Example: "The order saga creates the order, reserves inventory, charges payment — if payment fails, it runs compensating transactions to unreserve stock."

Related Terms