Idempotency - CI/CD用語集の定義
冪等性 とは、ある操作を複数回実行しても、一度実行したのと同じ効果になるという性質です。同じTerraformのplanを適用したり、deployステップを再実行したりしても、重複したリソースを作成すべきではありません。
CIでなぜ重要か
冪等性は、リトライを安全にするものです。自己修復CIが失敗したステップを自動で再実行できるのは、そのステップが冪等である場合に限られます。そうでなければ、リトライが副作用を二重に適用しかねません。
関連ガイド
Retry Budget - CI/CD Glossary DefinitionRetry Budget: A retry budget caps how many retries a system will attempt within a window, expressed as a frac…
Immutable Infrastructure - CI/CD Glossary DefinitionImmutable Infrastructure: Immutable infrastructure is a model where servers are never modified after deployme…