"An idempotency key is a unique value that’s generated by a client and sent to an API along with a request. The server stores the key... If a request should fail partway through, the client retries with the same idempotency key value... the server continue from where it left off"https://twitter.com/patio11/status/1256525572697583616 …
-
-
That's the simplest case, and what I'm actually most interested in. What I have seen happen that you perform an action over http, and it fails (http timeout). But did it fail on the way there or getting the response back? Sever could regard it as done OKhttps://www.youtube.com/watch?v=LGG3IIHUG_w&feature=youtu.be&t=1330 …
-
So yes, in order for the client to safely retry a http request, it must be idempotent, otherwise you run the risk of taking money twice because the server already completed it.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.