Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Current »

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.

image-20240827-192837.png

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.

image-20240828-152029.png

  • No labels