News for hackers. Stuff that matters.
Re:The State of HTTP in 2022 by rswail on Sunday January 01, 2023 @09:18AM (#34206405)
The "idempotency" is that the request should not cause a state transfer from the client to the server that causes the server to change the resource.

That doesn't mean that the server can't change the resource itself for other unrelated reasons.

Re:The State of HTTP in 2022 by Simran-B on Wednesday January 04, 2023 @02:39PM (#34250315)
The practical effect that my coworkers keep telling me about is that the client or an intermediary like a load balancer may retry the same request until it is successful, with the expectation that the resource (records or settings in a database system in our case) is only modified once. A database query that does something like value = OLD.value + 1 cannot be safely retried. There are circumstances under which the outcome of a transaction can be unknown but it might still succeed, and the client should be prevented from doing accidental changes. With read queries this should be rare, but even then there can be side-effects affecting the overall system state.