Skip to content

When to use API? When to use the workflow? #98

Answered by vn7n24fzkq
thenithinbalaji asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @thenithinbalaji .

TL;DR: In the profile-detail card, the API only calculates the contributions in the last year, and the workflow calculates all contributions since the user created the account. But the other cards don't have any difference in both ways. And the behavior might change in the future, and we are looking for another way to make API calculate all contributions.

We deploy the API service on Vercel, and Vercel has a maximum execution timeout of 10 seconds when deployed on a Personal Account (Hobby plan). It easily exceeds timeout when we fetch all contributions from GitHub GraphQL API for most users, so we only calculate the few data in API.
If possible, currently, I recomm…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@thenithinbalaji
Comment options

Answer selected by thenithinbalaji
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants