Google Cloud Storage Bucket的载入时间缓慢 [英] Slow Load Time From Google Cloud Storage Bucket

查看:158
本文介绍了Google Cloud Storage Bucket的载入时间缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我是从 google云存储桶为我的网站加载图片。

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

给我的印象是多区域Google云存储桶应该是互联网上加载图片的最快方法之一。

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.

但是,当我比较竞争对手网站上的瀑布时,情况似乎并非如此。 strong>。

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.

我可以采取什么措施来改善Google Cloud Storage Images的加载时间?

(我的网站URL Aelieve.com)

(My Website URL Aelieve.com)

我的网站加载时间/瀑布

My Website Load Time/Waterfall

竞争加载时间
(竞争网址Mopro.com)

Competitions Load Time (Competitions URL Mopro.com)

推荐答案

此问题,则GCS不是CDN。 CDN可以更快地提供内容,这是有道理的,特别是取决于您从哪里发出请求。

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.

要提高性能,请将GCS存储桶与云CDN -balancing / http / adding-a-backend-bucket-to-content-based-load-balancing rel = nofollow noreferrer>此步骤。

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

此外,如果您知道如何使用GAE,请查看图片API ,因为它是专门设计用于使处理静态图片(包括CDN的使用和其他优化)的操作更容易的API。

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).

这篇关于Google Cloud Storage Bucket的载入时间缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆