Advanced System Design Fundamentals
0% completed
Idempotency Patterns
Press an elevator's call button, and one elevator comes. Press it five more times while you wait, and the same one elevator arrives. Press the Pay button twice on a slow checkout page, and some stores charge the card twice.
The call button is safe to press again, and the careless Pay button is not. A message handler faces the same question, because a message system that never loses messages will sometimes deliver one again. If a payment service reads the "order placed" message for order 4471 twice, a careless handler charges the customer $40 twice
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%