logoalt Hacker News

stavrostoday at 9:33 AM3 repliesview on HN

Half of the mentioned issues are issues of atomicity, not idempotency. If I make a request, and the server crashes midway and doesn't send some crucial events, that's an issue whether or not I send a second request.

From a cursory read, only the part up to "what if the second request comes while the first is running" is an idempotency problem, in which case all subsequent responses need to wait until the first one is generated.

Everything else is an atomicity issue, which is fine, let's just call it what it is.


Replies

asdfaoeutoday at 11:56 AM

Tbh the article seems to just be like "you can't solve idempotency with one idempotency-key header" and well like no shit.

behaviorstoday at 11:18 AM

If the atomic action is idempotent, you don't need a layer for repeating yourself. You hit the nail on the head. So much idempotency efforts are made because they never made the actions idempotent in the first place.

adamvendeltoday at 10:31 AM

[dead]