Use Google App Engine as a Free CDN to speed up your website

0 Flares 0 Flares ×

In my last post we discussed about CDN and its benefits. Now in this article I will explain how you can use Google app engine as a Free CDN to speed up your website. On the internet you can find other several free CDN but they are not as reliable as Google App Engine. So you can rely on Google App Engine as a free CDN. Using Google app engine as free CDN you can drastically increase your web site performance for free of cost.

 Before going into the details of how to transform app engine as free CDN let me first tell you the limitations of the app engine as a free CDN.

* Transferring file is a tedious task as you can not directly upload your static files. App engine uses Python and Java to transfer your files to server, so some times you may find difficulty is setting up your environment, but once everything is set up you can do the task easily.

* You have to rely on AppEngine SDK to transfer your files to server.

* This will remain free if you do not have more than 5000 visitors per day, bandwidth is limited. But if you need more bandwidth you can purchase it from Google.

Apart from the above limitations there is no other visible limitations. As Google has app engine servers world wide so you can be relaxed about your service availability.

Now lets discuss how you can use Google App engine as a Free CDN. You just need to follow the below steps and work will be easily done.

 

STEPS TO USE APP ENGINE AS FREE CDN:

 

STEP1: Sign up with app engine using the link. Sign Up. You will need a cell phone as Google will send a verification code to your cell phone. After sign up create your application it will be a unique identifier.

 

STEP2: Download and install Python and Google App engine SDK. Make sure that first you install the Python then you install App Engine SDK.

 

STEP3: Open the app engine SDK and click on “Edit” tab then select “Preferences”. In the preference settings fill the form and save the settings.

 

preference

 

STEP4: Now click on the File tab and select “Create new application”. Give the application name as it was given in the STEP1(unique identifier), choose the parent directory and click on create.

 

new-app

 

STEP5:  Now select the application and click on the “Edit” tab as shown in the below figure. This will open the file app.yaml, there you mention your static file directory, for me it is js.

 

edit-app-file

application: myjafaloo
version: 1
runtime: python
api_version: 1

handlers:
– url: /js
static_dir: js

script: main.py

STEP6: Create the directory “js” inside your application directory and put all your static files there. I have kept all my java script files there.

 

STEP7: Now click on the “Deploy” button to deploy the application, it will ask you for the credentials.

 

STEP8: If everything goes fine it will deploy your application properly, now you can check if it is working. Open the URL http://app-unique-identifier.appspot.com/js/file-name.js. Replace the app-unique-identifier and file-name.js with the names that you have used.

 

STEP9: If everything works fine in step 8 then you can replace all your java script file URL in your template file with the app engine URL.

 

Believe me I implemented this to one of my website and the performance I saw is just amazing. So you can also use app engine as your free CDN and increase the performance of your website.

Guru

+Ayodhyanath Guru holds a B.Tech degree in Electrical Engineering and has worked with various prestigious clients in the IT industry and presently working as a Software Engineer. He is a part time blogger and presently authors the Jafaloo.Com blog. Being a tech enthusiast Guru likes to surf the web and blogs about interesting technical topics like How-To guides, freewares, Tutorials, Software, Gadgets, web applications etc. Apart from blogging he likes coding in Java/J2EE and PHP.

You may also like...

1 Response

  1. December 22, 2011

    Extra Reading…

    […]we like to honor other sites on the web, even if they aren’t related to us, by linking to them. Below are some sites worth checking out[…]…

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 0 Flares ×