Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Details in Saga pattern - Azure Design Patterns | Microsoft Learn

Problem

  • Data consistency is a major issue in distributed transaction scenarios.

  • Cross-service data consistency requires a cross-service transaction management strategy : transactions must be atomic, consistent, isolated and durable (ACID).

    • If a transaction (step) fails, the pattern will execute compensating transactions that counteract the preceding transactions.

Solution

  • Orchestration is a way to coordinate sagas where a centralized controller tells the saga participants waht local transactions to execute.

    • Orchestrator executes saga requests, stores and interprets the states of each task, and handles failure recovery with compensating transactions.

...

Saga In Practice

Example of orchestration with Azure Function Apps and 2 different triggers : Call API from Web App (client application) or a change in a blob Storage.

...