A Timeout Doesn't Tell You Whether the Write Happened
Retrying an external write is a guess about which of three worlds you are in. Idempotency keys, business-key deduplication, and the database invariants that make the guess unnecessary.
Read article