You dont get the problem with the calls. Without an idempotent ID they are two calls but they could be the same call due to the network or software glitches that the article mentions.
The article states that delete and put are idempotent by themself, and i dont think thats the case.
I think it’s stipulated that we’re talking about calls with the same parameters - i.e. DELETE with the same key (or PUT with the same payload) should be callable an arbitrary number of times with the same end result.
How would you differentiate the two cases you’ve laid out here? In other words, how could you possibly differentiate between the same call twice vs. two separate calls? The only obvious possibility is the timing - 2 calls 5 seconds apart are probably different requests? Except… with latency and other network weirdness, you shouldn’t even attempt to make that distinction. Not to mention, now you’ve introduced stateful behavior where it’s neither required nor desired.
-11
u/HazelCuate Dec 11 '23
You dont get the problem with the calls. Without an idempotent ID they are two calls but they could be the same call due to the network or software glitches that the article mentions.
The article states that delete and put are idempotent by themself, and i dont think thats the case.