SD Mastery
.
course
prep
arena
ask
shorts
stories
you
?
Search lessons, topics…
⌘K
?
L1
· Intern
0 / 100 xp → junior
~
course
prep
arena
ask
shorts
stories
you
Loading page…
~/himanshu
tty1
~/himanshu
$
cd ~/next-page
[ok]
resolve route
[
..
]
stream page
← all concepts
Idempotency
.
also: idempotent · idempotence · idempotently · non-idempotent
An operation is idempotent if doing it many times has the same effect as doing it once.
the two-minute refresher
'Set the thermostat to 72' is idempotent; 'add $10 to the account' is not.
Networks force retries: a timeout doesn't tell you whether the request happened.
So any retried operation must be safe to repeat, or you double-charge and double-send.
GET, PUT and DELETE are idempotent by HTTP's definition; POST is not, so it needs an idempotency key.
Where the course teaches it
W02 · Day 2
Idempotency in Practice
learn it →
W02 · Day 2
Idempotency in Practice
revisit →
W02 · Day 2
Idempotency in Practice
revisit →
Related concepts
Idempotency key
At-least-once delivery
Exponential backoff
Exactly-once processing
Notebook
Ask