Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API makes too many calls to Firebase #23

Open
uragirii opened this issue Apr 30, 2020 · 0 comments
Open

API makes too many calls to Firebase #23

uragirii opened this issue Apr 30, 2020 · 0 comments
Labels
Feature New feature or request good first issue Good for newcomers

Comments

@uragirii
Copy link
Collaborator

The current API makes around 4-5 different calls to firebase per user. One for authentication, one for attendance, one for the timetable (we may only require this once), one for marks, and one for Moodle.

Firebase Free Plan allows around 20K writes/day. Considering a single user refreshes app about 3 times a day. A single user makes 12 requests per day. So, we can support a max of 1,666 users. This is an ideal case scenario and even then the number of users is limited to ~1700.

If we reduce the number of refreshes we can support a lot more users.

@apratimshukla6 apratimshukla6 added Feature New feature or request good first issue Good for newcomers labels May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants