Idempotency
Repeating an operation several times gives the same result as doing it 1 single time.
Example
An idempotent $100 payment retried 3 times charges $100, not $300.
Test yourself: Idempotency
Idempotency
Which of these operations is idempotent?
Repeating it 3 times leaves the same email; adding $10 three times adds $30.
Idempotency
A payment times out. What doesn't the client know?
There are 3 possible cases and the client can't tell them apart: that's why it retries.
0/2
â–¶ Play