Interview Prep/CI/CD/GitHub Actions and GitLab CI in Production

How do you handle rate limits and outages of the SCM or CI provider?

AdvancedProductionGitHub Actions and GitLab CI in Production
Answer

Cache what you can (dependencies, base images in a pull-through registry), avoid polling the API in loops (use webhooks and events), authenticate API calls to get higher limits (a GitHub App token has higher limits than a PAT), add retries with exponential backoff and jitter for API calls, and have the break-glass path: the ability to build and deploy a hotfix from a laptop or a secondary CI with a documented, audited process, because SaaS outages happen exactly when you least want them.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitHub Actions and GitLab CI in Production