"Exactly once" in payments is about the effect, not the number of requests. There may be three requests to the provider, yet the card must be charged once. Two techniques get you there. A request is retried until its outcome is known, and every retry carries the same key, so it does nothing a second time.
In this lesson
- Where retries come from
- The first key — on our side
- The second key — at the provider
- Timeout: the outcome is unknown
- Common mistake
- Key points