learn / Term explained
EN

Requests and Access · Explanation of Terms

Idempotency

Idempotency

What it means

In HTTP semantics, repeating identical requests has the same intended server effect as one request. Responses and status codes need not be identical.

RFC 9110 defines PUT, DELETE and safe methods as idempotent. This concerns the requested effect; a server may still log every request separately.

Clients should not automatically retry non-idempotent requests unless their semantics are known to be idempotent or the original was never applied. Waiting and backoff do not establish that guarantee.

In a scraping task

Resulting state, not identical responses

Fictional example: two DELETE requests to /items/example-42 may return 204 and then 404. If the intended effect is the resource’s absence, different replies alone do not disprove idempotency. This is not a real request log.

DELETE /items/example-42 HTTP/1.1

Common misconceptions

  • Idempotent does not mean read-only or free of state changes; PUT and DELETE can change server state.
  • Client retries or scheduler deduplication alone do not prove that repeated server execution is eliminated; verify the service’s operation semantics.

References

Organized by Northleaf Studio. The source link retains the original address to facilitate continued reading.

Back to glossary