State Management · Senior · Question 61 of 75

Why send an idempotency key with an optimistic "create order" request that may be retried?

Explanation

Retries after timeouts are common with automatic retry logic. Generating the key on the client also lets the optimistic item and the server item share an id.

Further reading

Problem with a question

State Management · Senior · question 61

Test yourself

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

Take this quiz