What Is an Idempotency Token?
An idempotency token, also called an idempotency key, is a unique identifier a client sends with a request so the server can recognize retries of the same operation. The server records the token with the result and returns that stored result if the token arrives again. This makes retrying safe even when the original response was lost.
Why it matters
Networks drop responses, so clients retry; without a token, a retried payment or order can be processed twice. An idempotency token turns at-least-once delivery into an effectively exactly-once outcome.
Related guides
What Is Exactly-Once Delivery?Exactly-once delivery is the guarantee that a message is processed one and only one time, with neither loss n…
What Is At-Least-Once Delivery?At-least-once delivery guarantees a message is delivered at least one time, accepting possible duplicates in…
What Is a Distributed Transaction?A distributed transaction spans multiple databases or services and must either commit everywhere or roll back…