· 5 min read
ArchitectureUpdate your database and publish an event atomically — without two-phase commit — by writing events to an outbox table first.
Read article· 5 min read
2 articles
Update your database and publish an event atomically — without two-phase commit — by writing events to an outbox table first.
You can't BEGIN..COMMIT across services. Sagas trade atomic transactions for choreographed steps and compensating actions.