Idempotency keys for transfers
The user taps the send money button, and the signal drops right after the request goes out. What should the app do?
The user taps the send money button, and the signal drops right after the request goes out. What should the app do?
You can't tell when the drop happened, so a blind retry can send the money twice. Send a client-generated idempotency key in a header, persist it locally, retry only with that same key, and after the limit settle the result through a status lookup API.
NetworkingMultiple choiceAdvanced
A payment confirmation request, POST /payments, failed with URLError.timedOut. Select all…
#idempotency #retry #payments
NetworkingShort answerBasics
A payment confirmation API times out now and then. A junior engineer opened a PR that…
#idempotency #retry
NetworkingMultiple choiceBasics
An idempotent GET request failed. Select all the failures where an automatic retry (with…
#retry
NetworkingMultiple choiceBasics
For a take-home assignment you wrote this code that POSTs JSON with URLRequest. Select…
#post