Interview glossary / Tech team vocabulary

Idempotency

Also called: Idempotent · Idempotency key

A property of an operation that has the same effect whether it runs once or many times. It makes retries safe, for example for payments.

Networks fail and clients retry. If "charge the card" runs twice, the customer pays twice, unless the operation is idempotent. A common pattern is an idempotency key: the client sends a unique id, and the server ignores repeats of the same id.

In an interview

Bring it up whenever a design involves retries, queues or webhooks, and say how you would implement it.

Related terms

Interview questions that use it

· All terms ·