Idempotency
Also called: idempotent operation, idempotent methods
An operation is idempotent when repeating the same request has the same intended effect as performing it once. In HTTP, safe methods, PUT and DELETE have this property by definition. It does not require identical responses, identical logs, or an unchanged world between attempts.
For example, setting a note’s title to “Network notes” twice leaves that title in place. Appending another copy of a note twice may create two copies. Idempotency helps recover from an unknown outcome after a connection failure; retries still need sensible limits and must respect the actual operation’s contract.
- Read first
- HTTP methods
- Further reading