Slow Load Time From Google Cloud Storage Bucket

2019-04-17 15:12发布

问题:

Currently, I am loading the image for my website from a google cloud storage bucket.

I was under the impression that a multi-regional google cloud storage bucket should be one of the fastest way on the internet to load images.

However, this doesn't seem to be the case when I compare the waterfall between my website on a competitors image load time is leagues better than mine.

Is there anything I can do to improve the Google Cloud Storage Images load time?

(My Website URL Aelieve.com)

My Website Load Time/Waterfall

Competitions Load Time (Competitions URL Mopro.com)

回答1:

As explained in this question, GCS is not a CDN. It makes sense that a CDN would serve the content much faster, specially depending where are you doing the request from.

To improve your performance, integrate your GCS bucket with Cloud CDN following this steps.

Also, if you know how to use GAE, take a look at the images API, as it's an API specifically designed to make it easier to handle the serving of static images (including the usage of a CDN and other optimizations).