News for hackers. Stuff that matters.
Re:Idempotency Keys for Exactly-Once Processing by ekropotin on Friday December 05, 2025 @07:33PM (#46169292)
The problem with sagas is that they only guarantee eventual consistency, which is not always acceptable.

There is also 2 phase commit, which is not without downsides either.

All in all, I think the author made a wrong point that exact-once-processing is somehow easier to solve than exact-once-delivery, while in fact it’s exactly same problem just shaped differently. IDs here are secondary.

Re:Idempotency Keys for Exactly-Once Processing by hobs on Saturday December 06, 2025 @03:20AM (#46171597)
I'd agree with that - two phase commit has a bunch of nasty failure cases as well, so there's no free lunch no matter what you do when you go distributed. So just ... don't, unless you really really have to.
Re:Idempotency Keys for Exactly-Once Processing by mrkeen on Saturday December 06, 2025 @09:52AM (#46173763)
You can't avoid distributed unless your users live inside your database.