Grokking Microservices for System Design Interviews

0% completed

The Saga Pattern by Example

1. The Definition

A saga is a business transaction that spans services. You build it as a sequence of local transactions. A local transaction is an ordinary database transaction inside one service, touching only that service's own data.

Each step commits its own data, then publishes or triggers the next step. When a step fails, the saga runs compensating transactions that undo the steps that already finished.

.....

.....

.....

Like the course? Get enrolled and start learning!