2 ms·
So what is an example of a call that is idempotent? Are only requests that don't modify state considered idempotent, by your definition?
by GhostVII 8y ago
So what is an example of a call that is idempotent? Are only requests that don't modify state considered idempotent, by your definition?
- Izkata 8y ago...which is weird because in the elevator example, the state isn't being modified. The effect on the receiver, to use their terminology, is always to set the button to "on" or "called" or whatever you want to name it. Hence, the elevator button example is idempotent. Quick edit: Someone else below makes a good point - in at least one part of the world, a second button press does act as "cancel". Maybe that's the confusion here?