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

Throttle use of API from web TRPC endpoints #530

Open
0xGabi opened this issue Sep 3, 2024 · 1 comment
Open

Throttle use of API from web TRPC endpoints #530

0xGabi opened this issue Sep 3, 2024 · 1 comment

Comments

@0xGabi
Copy link
Member

0xGabi commented Sep 3, 2024

The app experienced a recent spike on usage of our API directly from the web endpoint /api/trpc/blob.getByBlobId.

The proposed solution is to throttle the web endpoint and advise to use the REST api instead, which is hosted outside Vercel.

@PabloCastellano
Copy link
Member

PabloCastellano commented Sep 4, 2024

For more context, our Vercel invoice this month so far has doubled due to these requests downloading blobs massively.

image

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

No branches or pull requests

2 participants