May be in "Using Idempotency Key to Prevent Double Payment“ diagram. What if at the step 2,the server successfully store the idempotency key to in-memory DB, but it failed to make network request to the ACID DB at step 3?
May be in "Using Idempotency Key to Prevent Double Payment“ diagram. What if at the step 2,the server successfully store the idempotency key to in-memory DB, but it failed to make network request to the ACID DB at step 3?
May be in "Using Idempotency Key to Prevent Double Payment“ diagram. What if at the step 2,the server successfully store the idempotency key to in-memory DB, but it failed to make network request to the ACID DB at step 3?
I see, I don't have insights to their implementation details. But I'd guess:
1) they store the idempotency key only after ACID DB passes the request.
2) Or remove the idempotency key if ACID DB fails the request.
Does that help? Perhaps I'm overseeing some details or misunderstood the question.