Handling duplicate events safely
A payments service consumes "order placed" events from a queue. Because the system retries on network failures, the same event is occasionally delivered more than once, and customers are being charged twice. Which design principle should the team apply so reprocessing the same event does not change the outcome?
This exercise is part of the course
Developing applications on AWS
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise