Skip to content

Glossary · Web, apps and product

Idempotency

Idempotency is the property of an operation that produces the same result even if it runs several times: repeating it doesn’t charge twice, create two orders or send two emails.

Idempotency: the details

It matters because networks fail halfway. A phone sends a payment, the reply is lost and the app doesn’t know whether the server processed it. The safe thing is to retry, but only if the server recognizes it as the same operation. The usual solution is an idempotency key: a unique identifier the client generates and sends with the request; the server stores the result under that key and returns it unchanged if it sees the key again.

The same principle applies to queues, webhooks and offline sync, where messages can arrive repeated. Designing each step so that repeating it is harmless turns retries into a reliability tool instead of a source of duplicates.

Idempotency in a project

It’s a requirement in any flow that moves money or creates records: payments, sign-ups, orders and reports sent from a phone. We check it with a simple test: send everything twice and verify nothing changes.

On this site

Where we apply it

All services

Glossary

Related terms

See the whole glossary

Get started

Does this come up in your project?

Tell us which system you have and what is still done by hand. We’ll tell you where we would start and whether it fits.

Before you write, see how we price a project or our solutions by department.

Fig. 07Morse keyH · E · L · L · O