4 ms·
Yeah it's already created confusion for me. I read it as essentially a side effect free request with a request body. Not that the data behind it was necessarily
by n00bskoolbus 5y ago
Yeah it's already created confusion for me. I read it as essentially a side effect free request with a request body. Not that the data behind it was necessarily immutable but that the query didn't do any mutations.
- afiori 5y agoIdempotent is not "side effect free", but rather with only side effects that need to be safe to duplicate and deduplicate. As in "increase counter by 1" is not idempotent, "set counter to 2" and "set counter (monotonic*) counter to 2 if current value is 0" are idempotent. It is quite weak as a requirement for example an API that functionally must not be cached can still be idempotent.