alancc
alancc

Reputation: 811

Use Google Cloud CDN for External Website?

My WordPress site is currently hosted in a dedicated server. Now I want to use Google Cloud CDN for my site.

  1. Google offers the solution officially at https://cloud.google.com/wordpress, which requires to use their GCE to host the WordPress site.

  2. But I also find article at https://www.albinsblog.com/2020/06/how-to-enable-google-cdn-for-custom-origin-websites.html#.YPJ3Pqb7SM8, which allows me not to use GCE but can also utilize Google Cloud CDN.

  3. Also there are articles introducing to create a VM works as a reverse proxy to the external website, which can also utilize Google Cloud CDN on external website.

My question is, what is the difference between these methods? If one can use external website, why we will still need to use Google Computing Engine? Are there any performance advantage in using Google Computing Engine?

Upvotes: 1

Views: 2013

Answers (1)

Thomas Laporte
Thomas Laporte

Reputation: 353

Cloud CDN is not an hosting solution per se, it allows you to leverage Google's extended network infrastructure to cache your public content as close as possible to your end users.

Cloud CDN can be enabled on an HTTPS Load Balancer, which itself points to your actual backend - i.e. where your website is hosted. On GCP this can be any compute service such as Compute Engine, Kubernetes Engine, Cloud Run, or even Cloud Storage directly for static websites.

So first you need to host your website somewhere, expose it through an HTTPS Load Balancer, and then you can enable Cloud CDN if it makes sense for your use case.

See more details on Cloud CDN here: https://cloud.google.com/cdn/docs/overview

Upvotes: 2

Related Questions