Apex › Distributed systems

The Saga pattern

How microservices pull off a "transaction" across services with separate databases — without holding distributed locks. A chain of local steps, each with a compensating undo; pick which step fails and watch the compensations fire in reverse for everything already committed, landing back in a consistent state.

More in Distributed systems