Friday, March 5, 2010

Google to offer CDN services?

Sadly no, not that I'm aware of but it would make total sense and maybe if there is enough interest they would consider it.  This is one of those "wouldn't it be nice if..." posts but there is also a fair bit of thought that went into the how's and why's.

Google has been pushing to make the web faster on various fronts from Chrome to SPDY to Page Speed to Google DNS and have been saying that they would like the Internet to be as fast as turning the pages in a magazine.  Once you get past a lot of the optimizations, there really is no way around the problem - to get faster you need to use a CDN for static content because the speed of light isn't getting any faster and it doesn't matter how fast your Internet connection is, the real performance killer is latency.

I've thought a fair bit about how I think they could do it and it should fit really well into their model as well as their suite of offerings.  I'm thinking they could offer a zero-config version that looks a lot like how coral cache works.  Basically just prepend .cdn.google.com with your origin and the traffic would go through Google's CDN (www.webpagetest.org.cdn.google.com for example).  That way everything needed to fetch the origin content is already embedded in the request and the site owner doesn't need to do anything.  For custom urls they could make it part of Google apps and let you configure custom CNAME's and origin servers.

From an infrastructure perspective it really doesn't get any easier than that (assuming you're not trying to bill people for bandwidth utilization and storage).  They'd obviously need to put some protections in place to prevent it from turning into a massive download farm (limit mime types and file sizes?).  Most  CDN providers are trying to focus on the more lucrative "bits" anyway (streaming, etc) so taking away the static content portion of the market wouldn't completely obliterate the market and it would probably be the single most impactful thing they could do to speed up the web at large.

There would also be other benefits that may not be as obvious.  They could get significantly more bang by deploying SPDY if they also owned the other end of the connection for a lot of the requests (so anything going through the Google CDN would be significantly faster in chrome).  It also seems like a much more cost-effective strategy than laying fiber in communities  and would be a perfect fit for their current application model (basically just a software deployment and it would work). 

Just like with Google Analytics I expect there would be a huge number of sites that would switch over and start using it and by having a standard way to do it I would expect to start seeing things like Wordpress plugins that automatically servs all of your static content through the Google CDN making it an automatic speed-up.

Other than the obvious elephant in the room around the costs and infrastructure to run it, am I missing something?  It really should be that easy and voila - faster web for everyone.

4 comments:

  1. There is a some Google's CDN and there is a plugin for WordPress. You should load jQuery and SWFObject from it instead of paying bandwidth.

    BTW, I'm surprised that you use inline CSS code which is loaded on every page load instead of making separate CSS file.

    ReplyDelete
  2. Ahh, if only it were that easy. I used to use the jQuery from Google but had a user whose IT department thought they were implementing security by putting in a DNS block for google.com - blocking jquery in the process. I swear, boneheaded IT departments are the bane of the Internet.

    I got lazy with the css and inlining it was easier than doing it right. Done right I would inline it on your first visit, pre-cache the external file after onLoad and set a cookie indicating it was cached so on a repeat visit it wouldn't have to load.

    Inlining was easier than merging multiple files to avoid loading several several files (which would be significantly slower on a first view) so I just went that path.

    ReplyDelete
  3. Great thought plus suggestion for Big G. It will make life easier for all. Instead of getting push by Big G... get him in from of the cart. :)

    ReplyDelete
  4. I am wondering when Google CDN will come, i know Google would not let this CDN business slip from his hands for sure.

    Once they are in market they might give better services and break this monopoly.

    ReplyDelete