API Rate Limit - CI/CD用語集の定義
API Rate Limit: api rate limitとは、クライアントが一定の時間枠内に行えるリクエスト数の上限で、超過するとウィンドウがリセットされるまでエラー(多くはHTTP 429)が返されます。
api rate limitとは、クライアントが一定の時間枠内に行えるリクエスト数の上限で、超過するとウィンドウがリセットされるまでエラー(多くはHTTP 429)が返されます。
rate limitはサービスを過負荷から守り、公平な利用を強制します。クライアントは残りのクォータを把握し、上限に達する前に速度を落とす必要があります。
CIにおいて
workflowがAPI呼び出しをしすぎると、GitHubはX-RateLimit-Remaining: 0ヘッダーとともに403または429を返します。対策は、認証する(上限が上がる)、応答をcacheする、Retry-Afterヘッダーに従ってbackoffすることです。
関連ガイド
Exponential Backoff - CI/CD Glossary DefinitionExponential Backoff: Exponential backoff is a retry strategy that doubles the wait between attempts (1s, 2s,…
Retry Policy - CI/CD Glossary DefinitionRetry Policy: A retry policy defines when and how many times a failed operation is retried, including the del…
Polling - CI/CD Glossary DefinitionPolling: Polling is repeatedly asking a service whether something changed on a fixed interval, as opposed to…