Xerxes Blog

The Saga Pattern: Coordinating Work Without a Distributed Transaction

engineering #microservices #distributed-systems #saga

The Saga Pattern: Coordinating Work Without a Distributed Transaction

A Saga coordinates work across services when one database transaction cannot cover the whole workflow, but it trades atomicity for failure handling and compensation. This post will explain that trade-off, outline orchestration versus choreography, and focus on the questions to ask before adding a distributed workflow at all.