Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Google Cloud Storage an automagical global CDN?

I’m attempting to setup a Google Cloud Storage bucket to store and serve all the static objects for my site. I’m also attempting to push all the objects in that bucket out to all the global edge locations offered by Google Cloud CDN.

I’ve created a bucket on Google Cloud Storage: cdn.mysite.com. I chose “US” multi-region for the bucket location setting.

My assumption is that any object stored in this bucket will be replicated to all the us-* regions for high-durability purposes, but not pushed out to all the Google Cloud CDN global edge locations for CDN purposes.

Or are all my objects in my “US” multi-region bucket already automagically pushed out to all of Google Cloud CDN edge locations?

I’m gobsmacked that I can’t figure out whether or not my bucket is already a CDN or not. Even after two days of searching (Google, ironically).

Thanks in advance for any help.

like image 818
AJB Avatar asked Oct 01 '16 03:10

AJB


People also ask

Is Google Cloud Storage a CDN?

Cloud CDN leverages Google Cloud your choice of either the global external HTTP(S) load balancer or the global external HTTP(S) load balancer (classic) to provide routing, health checking, and anycast IP support.

What kind of platform is Google Cloud?

Google Cloud Storage, which is a cloud storage platform designed to store large, unstructured data sets. Google also offers database storage options, including Cloud Datastore for NoSQL nonrelational storage, Cloud SQL for MySQL fully relational storage and Google's native Cloud Bigtable database.

Is firebase storage a CDN?

A work-around to put Firebase Cloud Storage behind a CDN. A lot of people have been asking if you can put a Content Delivery Network (CDN) like Cloudflare in front of Firebase Cloud Storage. Unfortunately, Firebase storage doesn't allow custom domains, so there is no easy way to add a CDN. So officially, no.


2 Answers

The best discussion I've seen of Cloud Storage edge caching vs. Cloud CDN was during the Google Cloud Next '18 session Best Practices for Storage Classes, Reliability, Performance and Scalability. The entire video is useful, but here's link to the content distribution topic.

One key note from the summary is that edge caching gives you many of the benefits of a CDN, but you still pay for data egress. The Cloud CDN gives you caching, which can lower the cost of egress. They also outlined a couple other options.

enter image description here

like image 85
Chris Madden Avatar answered Oct 17 '22 19:10

Chris Madden


Cloud CDN and Cloud Storage are distinct, so objects in your multi-region bucket are not necessarily pushed to Cloud CDN edges. You can find information about Cloud Storage regions here; as you probably already know, Cloud CDN's edge locations are mapped out here. However, it's very straightforward to integrate Cloud Storage with Cloud CDN: just follow these steps!

like image 25
Will Hayworth Avatar answered Oct 17 '22 19:10

Will Hayworth