yncoder.github.io icon indicating copy to clipboard operation
yncoder.github.io copied to clipboard

"幂等"是什么?

Open ghost opened this issue 8 years ago • 4 comments

ghost avatar Feb 15 '17 07:02 ghost

https://hacpai.com/article/1487144908672 😏

88250 avatar Feb 15 '17 07:02 88250

我对幂等的理解。 就是只要请求不变,那么请求的结果,对资源本身没有影响,不管发多少次,结果相同。

danielliao11 avatar Feb 15 '17 10:02 danielliao11

有一个问题,如果用户访问一个资源,但要求该资源每次被请求访问时访问量 +1,该如何设计 API,是否能保证幂等?

mytharcher avatar Feb 18 '17 14:02 mytharcher

power(A, n) == A

hsllany avatar Mar 06 '17 05:03 hsllany