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

Question: using an image url that has a 5mb file, does cors-anywhere transfer 5mb back to client, or does client downloads from the original image hosting server? #389

Open
branlok opened this issue Oct 11, 2021 · 3 comments
Labels

Comments

@branlok
Copy link

branlok commented Oct 11, 2021

No description provided.

@Rob--W
Copy link
Owner

Rob--W commented Oct 11, 2021

CORS Anywhere is a proxy. The destination server sends 5 MB of data to CORS anywhere, and CORS Anywhere forwards the response to the client.

CORS anywhere streams the response from the destination server to the client, so the latency (and memory usage on the server) is minimal.

@branlok
Copy link
Author

branlok commented Oct 11, 2021

CORS Anywhere is a proxy. The destination server sends 5 MB of data to CORS anywhere, and CORS Anywhere forwards the response to the client.

CORS anywhere streams the response from the destination server to the client, so the latency (and memory usage on the server) is minimal.

thank you for the answer!

This may be slightly more than what I was asking, but since im hosting this on a free tier with heroku that has a "Network bandwidth is soft limited at 2TB per app per month." besides blacklisting, rate limiting.. say can I abort any request that are asking for data of some arbitrary large file sizes?

and just to reconfirm , CORS Anywhere proxy would take 5MB dl from destination server, and 5MB stream back to client. the total network bandwidth used here is 10MB on heroku side of things?

thank you

@Rob--W
Copy link
Owner

Rob--W commented Oct 23, 2021

This may be slightly more than what I was asking, but since im hosting this on a free tier with heroku that has a "Network bandwidth is soft limited at 2TB per app per month." besides blacklisting, rate limiting.. say can I abort any request that are asking for data of some arbitrary large file sizes?

That's not possible. But Heroku terminates requests after 30 seconds, which would reduce the impact.

and just to reconfirm , CORS Anywhere proxy would take 5MB dl from destination server, and 5MB stream back to client. the total network bandwidth used here is 10MB on heroku side of things?

Yes.

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

No branches or pull requests

2 participants