
**形容词 (adj.)**:幂等的。指一个操作无论执行多少次,结果都与执行一次相同。常用于数学、计算机科学和编程领域。
/a.dmpo.tnt/
A PUT request in HTTP is idempotent because sending the same request multiple times produces the same result.
HTTP 中的 PUT 请求是幂等的,因为多次发送相同的请求会产生相同的结果。
In distributed systems, designing idempotent APIs is crucial to ensure that retrying a failed request does not cause unintended side effects such as duplicate transactions.
在分布式系统中,设计幂等的 API 至关重要,这样可以确保重试失败的请求不会导致重复交易等意外副作用。
该词源自拉丁语,由 idem(意为"相同的")和 potent(意为"有力量的",来自拉丁语 potens)组合而成,字面意思是"具有相同效力的"。最早出现在19世纪的数学领域,用于描述一个元素与自身运算后仍等于自身的性质(如 *f(f(x)) = f(x)*)。20世纪后,这一概念被广泛引入计算机科学,特别是在网络协议和 API 设计中使用。