Idempotency Key - CI/CD用語集の定義
Idempotency Key: idempotency keyとは、リクエストに付与されるクライアント提供の一意な識別子で、サーバーが重複した配信を検出して無視できるようにし、retryされた操作を安全に繰り返せるようにします。
idempotency keyとは、リクエストに付与されるクライアント提供の一意な識別子で、サーバーが重複した配信を検出して無視できるようにし、retryされた操作を安全に繰り返せるようにします。
retryやat-least-onceの配信が同じリクエストを2回送りうるとき、idempotency keyがあれば、何個のコピーが届いてもサーバーは効果を一度だけ実行できます。
CIにおいて
webhookのreceiverは各配信の一意なID(GitHubはX-GitHub-Deliveryを送ります)を保存し、すでに処理したイベントをスキップするため、再配信されたwebhookは重複したdeployをトリガーしません。
関連ガイド
At-Least-Once Delivery - CI/CD Glossary DefinitionAt-Least-Once Delivery: At-least-once delivery guarantees a message is delivered one or more times: it is nev…
Exactly-Once Delivery - CI/CD Glossary DefinitionExactly-Once Delivery: Exactly-once delivery means a message is processed one time and only one time. True en…
Webhook Payload - CI/CD Glossary DefinitionWebhook Payload: A webhook payload is the JSON body sent with a webhook request describing the event: which r…