logoalt Hacker News

jayd16yesterday at 9:43 PM2 repliesview on HN

It's a bit of trick that the outbox to queue part of it likely needs to support "at least once but duplicates possible" into the queue.


Replies

mrkeenyesterday at 9:47 PM

"Send multiple times from D to Q and deduplicate with a UUID" (idempotency) is well short of "insert into both D and Q or neither" (atomicity)

show 1 reply
KraftyOneyesterday at 9:46 PM

Every item will be written to the queue exactly once (as the update is transactional). Queue processing may need at-least-once semantics, yes, depending on what exactly you're doing.

show 1 reply