Replacing distributed two-phase commit with Saga workflows is the standard recipe for microservices consistency. But running a local database transaction alongside a broker publish creates the dual-write problem, and compensating actions that arrive out of order can silently resurrect canceled state. Here is a deep dive into the real failure modes, the transactional outbox, and the idempotent handlers that actually prevent them.
In multi-tenant microservices architectures, keeping cross-service state consistent without a global lock means replacing one monolithic ACID transaction with a distributed Saga : a sequence of local transactions, each with a compensating action that undoes it. Sagas buy you eventual consistency, but when message brokers hit network partitions, worker crashes, or out-of-order delivery during a rollback, a naive Saga can leave services in inconsistent, half-committed states. Here is what actually goes wrong, and the two patterns that fix it.
1.…