Idempotency Keys for Small PHP APIs - Retry the Operation, Not the Side Effect
A client sends POST /orders. The server may have committed the order, but the response disappears during a timeout. Should the client retry? If it does, it might create a second order. If it does not, the user may be left with no order at all. This is not me…
Read article