Hacker News new | ask | show | jobs
by CubsFan1060 860 days ago
https://microservices.io/patterns/data/transactional-outbox....

It allows you to wrap it all in a transaction. If you separate a database update and insertion into a queue, whichever happens second may fail, while the first succeeds.

1 comments

Tell the alternative is a saga pattern to implement a distributed two phase commit.

Or actual XA, but that is cursed.