Use Google App Engine as a Free CDN to speed up your website
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.
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.
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.
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.
– url: /js
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.