---
answer: direct
beat: system-design
source: 1 article · updated: August 12, 2026
---

What is an idempotency key and why does it prevent double-charging or duplicate inserts?

An idempotency key is a unique identifier (usually a client-generated UUID plus timestamp) attached to every mutation. If the network fails after a successful server write but before the client receives the ACK, retrying with the same key tells the server 'I've already done this' and it returns the cached result instead of repeating the action.

Answered in

Optimistic UI: The Illusion of Instant

Apply mutations locally and reconcile in the background, collapsing perceived latency from 150 ms to instant. Rollback, idempotency keys, offline queues.

Crashtech Editorial August 12, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.