Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent for AWS Cloudfront service in Google Cloud?

Today, I am using AWS S3 bucket and on top of it I am using AWS CloudFront.

I want to have also a Google Cloud storage with CloudFront, so I found the Storage where I can create bucket and put their my static files/images which is equivalent to the S3 bucket. But what about CloudFront? Where do I set CloudFront in Google Cloud?

Thanks in advance.

like image 284
Misha Zaslavsky Avatar asked Jan 17 '17 16:01

Misha Zaslavsky


1 Answers

Google Cloud features built-in edge caching in its points of presence for services like Cloud Storage and App Engine, so in many cases you may not need a separate CDN product. I would suggest measuring your use case with and without a CDN from a few countries before adding in the extra expense. Keep in mind that objects need to be publicly readable with cache control settings that allow caching (which is the default for public objects) in order for Google's edge caches to cache them.

Google Cloud does have a CDN service, though, called Google Cloud CDN. It ties in with Cloud Load Balancing. It offers direct support for GCS buckets, although that's still in alpha. The upside is that serving GCS resources via Cloud CDN adds some nice perks, such as the ability to use custom domains with HTTPS or mapping GCS bucket names to differently-named domains.

In addition, if you're happy with CloudFront, I believe that you can use GCS (or pretty much anything else) as an origin server for it.

like image 193
Brandon Yarbrough Avatar answered Oct 15 '22 23:10

Brandon Yarbrough