Defining Idempotence

前端 未结 4 1873
天命终不由人
天命终不由人 2021-01-02 04:28

So \"idempotence\" can be defined as:

An action, that if performed N times has the same effect as performing the action only once.

Got it, easy enough.

4条回答
  •  猫巷女王i
    2021-01-02 04:51

    You're assuming idempotence means that the state of the server will be changed at most once by a series of invocations. Most of the time, people use this term to mean that the state on the server won't be changed at all by any number of invocations. Under these circumstances, the distinction between your two cases is immaterial.

提交回复
热议问题