Charged Twice
The mobile app sends "pay order 881". The response is lost on a bad network, the app retries, and the customer is charged twice. What prevents this?
Part of Think Like an SRE. Next step: Messages Delivered Twice
Choose one answer
A longer timeout, so that the first response gets back
A database transaction wrapped around the payment call
Turn off retries in the app for every payment request
An idempotency key per payment; the server pays once per key