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

test/estimate usage of github tokens #4

Open
Tracked by #7
Drew-Macgibbon opened this issue Sep 30, 2023 · 2 comments
Open
Tracked by #7

test/estimate usage of github tokens #4

Drew-Macgibbon opened this issue Sep 30, 2023 · 2 comments

Comments

@Drew-Macgibbon
Copy link
Contributor

Drew-Macgibbon commented Sep 30, 2023

We need to estimate how many calls we can do per hour.

GitHub gives us 5,000/15,000 tokens per hour for Personal/App API Tokens read more here

we can add this to our query to estimate the cost of each API request:

query {
  rateLimit {
    limit
    cost // just return this for cost
    remaining
    resetAt
  }
}

Estimates:

Use the Explorer for testing

  • Retrieve Feedback From Project:
  • Create New Feedback:
  • Update Feedback:
  • Comment on Feedback:

Consider:

  • We can cache the retrieval and only update it if there's a change to the data stored on GH
  • We can potentially use webhooks to trigger this update, need to research here and here
  • We should use batching where possible
@Drew-Macgibbon Drew-Macgibbon mentioned this issue Sep 30, 2023
5 tasks
@Drew-Macgibbon
Copy link
Contributor Author

@aayu5hgit @JapneetRajput this should be your No.1 priority right now

@Drew-Macgibbon
Copy link
Contributor Author

@JapneetRajput as per our discussion today. It appears that our requests will only cost ~1 token from our 5k limit.

This should serve ~100k MAU

I would still like you to test creation of a complete issue to make sure there's no difference in cost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant