Last Minute Notes
Github
Docs
Learn
Search
⌘
K
@sayanstwt
Lessons
Learn
/
System Design
/
Distributed Systems
Idempotency & Exactly-Once
7 min
Intermediate
5 steps
Make retries safe with idempotency keys and dedup.
Charged
$100
Intended
$50
Cause
blind retry
Client
Payment API
Database
POST /charge $50
charge $50
×
response lost
retry: POST /charge $50
charge $50 again
the retry looks like a brand new request
request
reply
failure
In this lesson
Step 1 of 5
1
The problem
2
Key flow
3
In progress
4
Natural
5
Recap