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

Hosting media on S3 will increase the wating time (TTFB) #3

Open
saifobeidat opened this issue Feb 14, 2020 · 2 comments
Open

Hosting media on S3 will increase the wating time (TTFB) #3

saifobeidat opened this issue Feb 14, 2020 · 2 comments

Comments

@saifobeidat
Copy link

I am using this amazing package to host my website media on S3 bucket, everything went okay except the performance of retrieving images has become slower. I did a quick comparison, by measuring the loading time retrieving a local image and retriving the same image using S3 and Virtual Path Provider.

The comparasion:

Retrieving image from S3 bucket
image

Local Image
image

I investigated for this issue, and I found S3 provides another EndPoint which is faster : something.s3-accelerate.amazonaws.com, but I didn't know how this can be used and configured, because the documentation here says I don't need to add Bucket HostName since I am using Virtual Path Provider.

Please advice for this.

@DannerrQ
Copy link
Owner

DannerrQ commented Apr 24, 2020

It would be relatively easy to enable the S3 Accelerate endpoint. We'll have to add a new web.config key for it as S3 Accelerate isn't enabled on buckets by default.

I'll do some testing in the next week and look at adding this.

Also sorry I ignored this for 2 months - I didn't get an email notification and I don't check Github that often. Will try to check more regularly!

@timlaughlin
Copy link

Any thoughts on this? Could it locally cache from the S3 to speed this up?

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

3 participants