Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Use CDN to benefit from website caching

Hello,

I have a client who is purchasing website services with me. The client domain is hosted on GoDaddy. He will be pointing the A record for his website to my web server.

On this basis, I want to use CDN to benefit from website caching.

For this particular scenario, is this feasible? What would be the deployment procedures for this case?

I know on CloudFlare this can be done by setting a Partial (CNAME) setup. 

Does we have the same option over here, if yes please list the steps. 

 

Thanks.

2 1 543
1 REPLY 1

Hi @akilesh_chummun ,

Yes, it is feasible to use a CDN for website caching in this scenario that you have given. Below will be procedures for using Cloud CDN in this case:

  1. First, you will need to create a Cloud Load Balancing setup in Google Cloud. 
  2. Next, you will need to create a CDN-enabled bucket in Cloud Storage. This bucket will be used to store and serve the cached content for your website.
  3. After creating the bucket, configure the CDN to use this bucket as its origin. 
  4. Once the CDN is set up and configured, you will need to have your client point the A record for their domain to the IP address of the load balancer. This will route all traffic for their domain through the CDN and onto your web server.
  5. To set up a partial (CNAME) setup similar to CloudFlare, you can create a CNAME record in GoDaddy that points to the hostname of your load balancer. This will allow you to serve some of your client's traffic (such as static assets) through the CDN, while serving other traffic (such as dynamic content) directly from your web server.

I'm not familiar with the environment in GoDaddy, but to add or create a CNAME record, you can follow this guide.

After completing these steps, your client's website will be served through the Cloud CDN. Let me know if this helps.