So, last Saturday, i got a worried call from my intrepid partner Jeremy. We recently switched to Amazon S3, for hosting of images, and things were super-slower than usual when it comes to rendering the web page.
I'd read about
Amazon Cloudfront recently and we decided to give it a shot, especially since it was easy to setup, cheap, hopefully effective. We already had our content in an Amazon S3 bucket, so it was a no-brainer.
You can actually setup the whole thing using the super-cool
S3Fox Firefox Plugin in under 15 minutes. Just make a new cloudfront distribution, point it to your S3 Bucket, and optionally create a CNAME to point your content to the right place.
We opted to keep our images.funadvice.com domain, made it into a CNAME that pointed that to the our cloudfront provided domain. Now we have a few million items in our S3 Bucket. Its impressive that in a few minutes, i could turn the whole thing over to cloudfront with nary a hiccup. The pages render very noticeably snappier now, and it shows in the web metrics, user uptake, etc.
Why bring up google in all of this?
Well, yesterday there was an uproar about Google forgetting about their commitment to net neutrality by simply talking to ISP's about setting up what is a CDN on their premises thats closer to users.
The culprit in all of this rumors? The Wall Street Journal. But it was all over the non-tech informed blogosphere pretty soon. By this morning, things were returning somewhat back to normal, but its interesting to see that something so basic about the internet is still misunderstood by some pretty savvy people.
Sites have been using CDN's (Content Distribution Networks) for years now. Akamai and CacheFly are but two of the many CDN companies out there. They all provide the same service that Funadvice is taking advantage of right now. Its the same service that Google is setting up so we all can get a better experience when we watch that next Youtube video.
But to return to our implementation though, it reminded me of when Google started their Adwords program. If I remember correctly, a major part of their success was that you could get your ads online in under 15 minutes. If you were advertising with Yahoo's Overture, forget about getting your ads up in less than 48 or hour hours. Two days!! Versus 15 minutes.
In 15 minutes we were able to get Cloudfront up, without talking to a sales rep from another company. On a weekend. Thats impressive.
No doubt the offerings from other CDN companies are probably more robust with more POP's and so on. But for not this is good enough for us. And importantly, cheaper.