🎁 New User? Get 20% off your first purchase with code NEWUSER20 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 Schema
A vocabulary for validating the structure and content of JSON data, ensuring API requests and responses conform to expected formats.
JSON
JavaScript Object Notation — a lightweight data interchange format that is easy for humans to read and machines to parse.
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.
HTTP Status Codes
Standardized three-digit codes returned by web servers to indicate the result of a client's HTTP request.
GraphQL
A query language for APIs that lets clients request exactly the data they need, reducing over-fetching and under-fetching.
Progressive Web App (PWA)
A web application that uses modern web capabilities to deliver app-like experiences with offline support and push notifications.
View All Web Development Terms →