API Design · Middle · Question 40 of 75

Why should webhook handlers be idempotent?

Explanation

Store processed event IDs, or make the effect naturally idempotent (e.g. set status rather than increment).

Further reading

Problem with a question

API Design · Middle · question 40

Test yourself

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

Take this quiz