Using Google’s App Engine as CDN for static files

cdngoogle-app-enginegoogle-cloud-platformstatic-content

I am planning on moving my static files to Google's App Engine. I was wondering if this is a good idea to do.

I have read that is it possible that Google will cache your files on multiple locations, which is a good thing in my opinion.

The setup should also be quite easy in eclipse with the GAE plugins.

But i still have my doubts on the performance of this. Is the setup of App Engine optimized for serving static content. Now I have Nginx server my static content, will App Engine perform the same way.

Are there any other ups or downs using this method?

Best Answer

The app engine is a cloud computing platform and is not designed to be a CDN. While your data may be stored on multiple nodes those nodes are not edge-cache nodes so they will not offer the same benefits that a CDN would. You can compare GAE vs various CDNs using the CloudHarmony.com speed test. Here were the results when I tested today:

Order   Service Location    Type    Size    Time (secs) Rate (Mb/s)
1   Google AppEngine    download    1.00 MB     3.50    2.29
2   Google AppEngine    upload      512.00 KB   3.57    1.12
3   Google AppEngine    website     102.55 KB   0.75    1.07

Order   Service     Type        Size    Time (secs) Rate (Mb/s)
05  EdgeCast CDN    download    1.00 MB 1.03    7.77
02  Cotendo CDN     download    1.00 MB 1.08    7.37
12  Amz CloudFront  download    1.00 MB 1.11    7.19
10  CacheFly CDN    download    1.00 MB 1.29    6.19
08  Azure CDN       download    1.00 MB 1.36    5.90
07  Internap CDN    download    1.00 MB 1.47    5.43
09  VoxCAST CDN     download    1.00 MB 1.55    5.17
04  SimpleCDN       download    1.00 MB 1.65    4.84
06  MaxCDN          download    1.00 MB 1.69    4.73
03  Highwinds CDN   download    1.00 MB 1.81    4.43
11  Akamai CDN      download    1.00 MB 2.22    3.60
01  LimeLight CDN   download    1.00 MB 2.34    3.42

You'll see that the CDN ends up being 2-7 times faster than GAE for file downloads.