๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is Idempotency?

A property where performing an operation multiple times produces the same result as performing it once.

An idempotent operation can be safely retried without unintended side effects. In HTTP, GET, PUT, and DELETE are idempotent by design - sending the same request twice should produce the same outcome. POST is not inherently idempotent.

Idempotency is crucial for reliable systems. If a network timeout occurs during a payment, retrying an idempotent request will not charge the customer twice. Implementation techniques include idempotency keys, database upserts, and conditional operations.

Related Terms

JSON
JavaScript Object Notation - a lightweight data interchange format that is easy for humans to read and machines to parse.
Content Negotiation
An HTTP mechanism where client and server agree on the best representation of a resource based on format, language, or encoding preferences.
Server-Sent Events
A server push technology that enables a server to send real-time updates to a browser over a single HTTP connection.
CORS Preflight
An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.
Canonical URL
An HTML element that tells search engines which URL is the preferred version of a page when duplicate or similar content exists at multiple URLs.
OAuth Scope
A mechanism in OAuth that limits an application's access to a user's account to specific resources or actions.
View All Web Development Terms โ†’