MrCocoNuat / fehPI

A GraphQL API serving up Fire Emblem Heroes
https://feh-pi.vercel.app
GNU Affero General Public License v3.0
0 stars 0 forks source link

API: no huge request #9

Closed MrCocoNuat closed 4 months ago

MrCocoNuat commented 1 year ago

I didn't think i was going to get away with it anyway: Vercel limits function runtime to 10 seconds, and on first load, even local RepositoryReaders try to parse hundreds of MB of JSON (let alone Remotes making over 100 graphql calls and many http requests), and there is no chance of them finishing in 10 seconds

Options:

MrCocoNuat commented 1 year ago

Vercel offers postgres, KV (redis), since input data is relational postgres would work but redis is attractive too.....

MrCocoNuat commented 1 year ago

staying in memory is pretty much shot dead by the 1GB limit anyway

MrCocoNuat commented 4 months ago

oh for the love of god... forget the big explorer pages covering every single hero or skill, they are blowing up the server