Idempotency comes from mathematics, where it describes an operation that leaves a result unchanged when applied again. In software, it means that running the same request or task multiple times leaves the system in the same state as running it once.
It is a central concern in distributed systems, payment APIs and workflow engines, where network errors and failures often cause requests to be retried. A common technique is to attach a unique key to each request so that work already processed can be recognized and skipped.