Idempotent Method - CI/CD用語集の定義
べき等メソッド は、1回呼んでも複数回呼んでも同じ結果を生むHTTPメソッドです。GET、PUT、DELETEは定義上べき等ですが、POSTはそうではありません。
なぜ重要か
べき等なリクエストだけが無条件にretryしても安全です。retryしたPOSTは重複を作成する可能性があり、そのためAPIはidempotency keyを追加してPOSTをretry下でも安全にします。
関連ガイド
Idempotency Key - CI/CD Glossary DefinitionIdempotency Key: An idempotency key is a unique client-supplied identifier (often in an `Idempotency-Key` hea…
HTTP Status Code - CI/CD Glossary DefinitionHTTP Status Code: An HTTP status code is a three-digit number a server returns to summarize the result: 2xx s…
REST API - CI/CD Glossary DefinitionREST API: A REST API is a web interface that exposes resources at URLs and is operated with standard HTTP met…