Tech Entry 209 / 1011 60-second read

Idempotent

An operation that can be performed multiple times without changing the result.

The comparisoni

✗ Wrong

The addition of 1 to x is idempotent.

✓ Correct

Setting a value to 5 is idempotent; no matter how many times you do it, it stays 5.

The ruleii

IDEMPOTENT = doing it once is the same as doing it ten times.

Mathematical term. In APIs, a POST is usually NOT idempotent because it creates a new resource every time.

Memory aidiii

Remember it like this

Idem (Same) + Potent (Power).

You might also like 6 related
↑↓Navigate Open EscClose All results →