Using Amazon S3 To Set Up A CDN In WordPress

Ghacks.net has a great, in depth article on how to set up a content distribution network in WordPress using Amazon S3. The guide gives you the ingredients needed and walks you through the entire process of installing and configuring the W3 Total Cache plugin, setting it up to use the CDN, getting an S3 account, etc.

It takes between one and six hours to configure and activate a CDN on the WordPress blog. Most of the time is spent waiting for the DNS to propagate, the account to become active and the data to be transferred. Webmasters should check the speed of their website in Google Webmaster Tools (or other tool) to see if the changes have decreased the load time for the users of the site. They should also monitor the costs over at Amazon.

On the flip side, I’m currently using WPCDN on WPTavern.com and it was easy to setup. Even though they have a plugin to use, W3 Total Cache made it even easier to setup thanks to its built in way of handling different types of CDNs. I’ll be using this CDN for a month and then asking you if the site has loaded any faster.

15

15 responses to “Using Amazon S3 To Set Up A CDN In WordPress”

  1. I’m wondering about the cost of using AmazonS3 as a CDN. S3 is great for storage (archive/backup) of files, because storage costs are dirt-cheap. However, the bandwidth costs for transferring to/from S3 aren’t necessarily so cheap.

    For a low-traffic site that doesn’t exceed its monthly bandwidth quota, using a CDN makes no sense at all, as it merely adds additional monthly bandwidth costs. For a high-traffic site, the bandwidth costs from the CDN are likely much lower than bandwidth quota increases from the web host.

    So, what is the traffic (bandwidth) break-even point, above which a site would start realizing cost savings using S3 as a CDN (or WPCDN, for that matter)? I would think the traffic would have to be in the tens of thousands per day (or, in my case, almost 2 GB of bandwidth use per day).

  2. @Chip Bennett – Those are interesting questions and I wonder if anyone has done that kind of research. But if you’re on a shared webhost, wouldn’t using a CDN whether the site is big or small be a benefit, especially since the site would be located on a server with other folks using up valuable resources?

    I guess that question wouldn’t be answered unless it was part of the research as to when to start looking at CDNs to alleviate bandwidth or loading issues.

  3. @Mike and @Jeffro:

    Certainly, using a CDN will almost always provide a benefit with respect to site speed.

    However, until bandwidth usage exceeds the break-even point I referenced in my original comment, using a CDN also will almost always incur additional cost for the CDN bandwidth usage.

    For example, on my shared hosting account, I have a 50GB/month bandwidth quota. Currently, I will never come anywhere close to using that much bandwidth. My site averages at best 150 uniques a day.

    So, for me, using a CDN, while providing a site speed increase (though to what extent, I don’t know), would also incur the cost of bandwidth. For Amazon S3, the tier-pricing is modest; for WPCDN, the cost is a minimum of $6/month.

    So, even if the cost is quite modest, it is still an additional cost.

    Now, what would be *really* intriguing to me would be the ability to use Amazon S3 (or another service) purely as an off-server *backup* of my website (files and DB), automated through a plugin.

  4. Chip,

    You make a valid point. If you’re not exceeding your hosting bandwidth, CDN will indeed be an additional (but modest) expense. However, with CDN, you’re buying a different kind of bandwidth that can enhance performance and scalability. In other words, you’re paying for an extra that standard hosting doesn’t offer. So the question is how important that extra speed and scalability are. With Google now taking speed into account for page rankings, those few dollars could be buying you a lot.

    Just my .02 worth…not a plug for our service but observations on CDN in general.

    Mark

  5. Chip,

    You make a valid point. If you’re not exceeding your hosting bandwidth, CDN will indeed be an additional (but modest) expense. However, with CDN, you’re buying a different kind of bandwidth that can enhance performance and scalability. In other words, you’re paying for an extra that standard hosting doesn’t offer. So the question is how important that extra speed and scalability are. With Google now taking speed into account for page rankings, those few dollars could be buying you a lot.

    Just my .02 worth…not a plug for our service but observations on CDN in general.

    Mark

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.