This is an old revision of the document!
Idempotency
Idempotency is a big an difficult word but what does it mean?
Idempotency means that something can independently be executed multiple times and it will always result in the same one thing.
Idempotency is important in different places while programming. For example in CakePHP seeds where it defines that a singular seed is able to be independently executed multiple times and still gets the same result.
In seeds and migrations this is ensured with the old CakePHP ⇐ 4.x phinxlog and the modern CakePHP >= 5.x migrations and seeds tables. It saves which migrations and seeds have already been executed and then blocks them from running again incase they already did, which keeps up the Idempotency.
Idempotency with APIs is important too, I will talk about it in a designated article.
Idempotency in with any kind of input is important to ensure quality user experience without letting data integrity suffer.
