Cianplan

Level 3: Distributed systems · L3.4 Sagas, outbox, CQRS & event sourcing

Sagas: transactions across services

Design a saga with compensations, orchestrated vs choreographed.

13 min · Pro

What you take away

  • A saga is a sequence of local transactions, each with a compensating action if a later step fails.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. The shape, with a failure
  4. The part people miss: no isolation
  5. Check your understanding