The Secret Life of AWS: The Idempotency Key (Amazon DynamoDB)
The Secret Life of AWS: The Idempotency Key (Amazon DynamoDB) How to protect your event-driven architecture from duplicate processing and retries #AWS #DynamoDB #Idempotency #EventDriven Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 61 Timothy was staring at a severe customer support ticket. He looked up, his face pale, as Margaret walked into the studio. "A customer clicked 'Buy' exactly once," Timothy said, pointing at the billing dashboard. "But their credit card was charged twice. I checked the EventBridge logs. The checkout service correctly emitted a single OrderPlaced event. But for some reason, the downstream payment Lambda function executed twice." "Welcome to the reality of distributed systems," Margaret said, pulling up a chair. ...