logoalt Hacker News

raffael_detoday at 11:58 AM1 replyview on HN

now you are moving the core question to where the fresh UUID is calculated. a UUID is calculated or reused based on a process-defined decision.


Replies

mrkeentoday at 1:05 PM

It's not the 'core question'.

I can choose to purchase a 2nd item, or I can choose to retry purchasing the 1st item. The server making that choice for me is not idempotency.

Idempotency is the server supporting my ability to retry purchasing the 1st item, safe in the knowledge that they won't send me a 2nd one.