API Design · Senior · Question 11 of 75

How should idempotency keys behave when the first request is still in progress and a retry arrives?

Explanation

Store the key before doing work, with a status. Release or expire locks if the worker crashes.

Further reading

Problem with a question

API Design · Senior · question 11

Test yourself

Take the API Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz