CARD NEWS · Development

Idempotency · 4 cards

Four cards for social posts, teaching materials and presentations. Capture the screen or print to a PDF.

1/4
Development

Idempotency

Idempotency is the property that sending the same request several times has the same intended effect on the server as sending it once. In HTTP, a method is idempotent if the intended effect on the server of multiple identical requests is the same as the effect of a single request; PUT, DELETE and the safe methods such as GET, HEAD and OPTIONS are idempotent, while POST and PATCH are not inherently idempotent.[1][2][3] For operations where a duplicate would be costly, such as a payment sent with POST, APIs ask the client to attach a unique idempotency key to each operation, reusing it for retries so that retries are processed only once.[4] Idempotency does not mean every response is identical.[2]

2/4
In simple terms

An easy way to understand

Think of a button that gives the same result no matter how many times you press it. When the network drops during a payment, the app often cannot tell whether the request reached the server, so it has to send it again.

3/4
Where it is used

Who uses it, and when?

Case 1: Toss Payments — Idempotency keys on a payment API Toss Payments accepts an Idempotency-Key header on all of its POST APIs; other methods are idempotent on their own, and a key sent with GET is ignored.[5] The…

4/4
Learn more

ai.rookienote.com
/en/term/idempotency

RookieNote
← Read the full entry

Capture these cards or print them to a PDF.