Distributed Transactions, CQRS, Saga & Consistency

Keeping data correct across services: consistency models, CAP and PACELC, consensus, why two-phase commit rarely fits microservices, the outbox pattern, CDC and idempotency, sagas, CQRS and event sourcing.

Once data lives in more than one service, a single ACID transaction is no longer available. You have to choose a consistency model per use case. You also have to design for partial failure and make every step safe to retry.

Articles