codeforboston / codeforboston/maple

Segment Out Firebase Function Deploys

Open
#1,589 1 comment 0 reactions 0 assignees View on GitHub
backend CI/CD Ready for Development tech debt
Dominant language
TypeScript
Stars
56
Forks
175
Avg merge
2d 5h
Merged PRs (30d)
13

Description

## Problem

We current deploy all of our cloud functions in one batch. Google recommends we deploy functions in batches no larger than 10 to avoid hitting the function deploy rate limit (iirc it's 80 functions within 100 seconds for V1 and 60 functions over 60 seconds for V2). We currently have 44 functions and that number will only increase - we should start thinking about how to segment our function deploys into chunks of 10 or fewer functions to avoid hitting this and ending up in an undesirable partial deployment state.

## Success Criteria
* Back-end function deploys are segmented into batches of 10 or fewer functions

## Related Links
* Firebase Function Deploy Docs: https://firebase.google.com/docs/functions/manage-functions?gen=1st#deploy_functions
* Firebase Function Organization Docs: https://firebase.google.com/docs/functions/organize-functions?gen=1st
* Firebase Quotas / Rate Limits: https://firebase.google.com/docs/functions/quotas

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.