More and more CDN providers are appearing with competing prices and features. Here I’m going to compare Amazon CloudFront, Rackspace CloudFiles, and Amazon S3.
First off, Amazon S3 isn’t really a CDN per se, but I’ve ran across quite a few sites comparing Rackspace Cloud to S3, which isn’t a fair comparison. Amazon S3 does, however, have its own strong points which we will get into later.
We will start by taking a look at the response time for the three services over a period of 1 month
The average response time for Amazon S3 was 819ms which is pretty bad. However, S3 was never really meant to be a CDN, this is what their Cloud Front service is for. After looking at the Cloud Front average response time we can see it to be 310ms, a much better response time. And then there’s Rackspace Cloud Files, coming in at 210ms, which is even better. Rackspace Cloud Files uses Limelight for their CDN solution which is one of the industry leaders in content delivery, up there with Akamai. I would have done a comparison to Akamai, however I lack the funds to even get close to that. Rackspace Cloud makes it easy to be able to use the “big guys” infrastructure without having to pay the big price.
Here’s a quick breakdown of pricing for Amazon and Rackspace CDN services.
|Storage Costs||$0.15 / GB†||$0.15 / GB|
|Bandwidth Out||$0.17 / GB† (US Traffic‡)||$0.22 / GB|
|Bandwidth In||Free until June 30th 2010*||$0.08 / GB|
|PUT/POST/LIST Requests||$0.01 per 1,000||
$0.01 per 500
Free for files over 250k
|GET Requests||$0.01 per 10,000 (US Traffic‡)||Free|
*After June 30th inbound data transfer is $0.10 / GB
†Variable Cost; Decreases as more space or bandwidth is used.
‡Higher charges apply for other regions such as Japan. Click here to view the full pricing model.
Keep in mind with Amazon, you’re paying the transfer cost to transfer your file from their S3 storage to various end points around the globe. Rackspace has no such charge. Due to amazons tiered pricing, if you needed to store and deliver hundreds to thousands of terabytes of data a month, then Amazon would be cheaper for you. But then again, if you had that much volume, chances are you don’t care what I think is best for you and you defiantly don’t need help picking the right CDN. You can view the cost calculator for both services here. Rackspace Cloud Files | Amazon Web Services Keep in mind when you setup the Amazon Web Services monthly calculator you will need to add S3 and Cloud Front. The S3 account will hold all of your data, and the outbound bandwidth will vary depending on how many files you have, their sizes, and how often the Cloud Front endpoints refresh their cache of your data. Cloud Front will then be where you allocate your total projected outbound bandwidth and average object size (which is to calculate GET requests I’m guessing) as well as allocate percentages to different regions, since Amazon charges differently per GB depending on the region the server responding to the request is located.
Next up is a speed test. I’ve uploaded a 100MB file to Amazon S3 and Rackspace Cloud Files to download from various locations. Listed below is the time taken (in seconds) to download the 100MB file.
|Roadrunner (Central Florida (Residential))||52 Seconds (1.92 MB/s)||59 Seconds (1.71 MB/s)|
|Rackspace (Texas)||2.1 Seconds (47.2 MB/s)||1.9 Seconds (45.7 MB/s)|
|Amazon (N. Virginia)||7.4 Seconds (13.3 MB/s)||15 Seconds (6.13 MB/s)|
|The Planet (Texas)||8.9 Seconds (11.2 MB/s)||9.3 Seconds (10.8 MB/s)|
It’s clear the Roadrunner residential connection was the bottle neck in both downloads. However, when tested from Rackspace Cloud Servers, both Amazon Cloud Front and Rackspace Cloud Files performed quite well. In the test using Amazon EC2, it’s clear that Amazon was the winner. However, the speeds were MUCH worse than when accessed from Rackspace’s network. This leads me to believe that the only reason Amazon won that test was because of their extremely close proximity to their CDN servers. Both providers were faster when pulling from their own network, this was no surprise. However, when pulled from a separate network, in this case Roadrunner and The Planet, Amazon scored slightly faster.
What’s a CDN without features? Well, it’s just a CDN. But hey, that’s what a CDN does, deliver content. Anything above and beyond that is an added bonus. Lets go over the various features Amazon and Rackspace have to offer.
|Maximum File Size||5GB||5GB|
|Free Storage->Endpoint transfer||No||Yes|
|HTTPS||S3 Only, Wildcard Certificate||No|
|Custom CNAME||Yes||In the works|
|Custom Response Headers||Yes||No|
|Torrent Support||S3 Only||No|
Two really nice features of Amazon S3 are HTTPS and Torrents. Now keep in mind these are S3 features only, meaning they don’t apply to Amazon’s CDN service Cloud Front. They use a wildcard certificate on the domain *.s3.amazonaws.com so you can use HTTPS to deliver content over S3, although most browsers will give you an invalid certificate warning (ssl_error_bad_cert_domain on firefox). Their other nice feature is torrent support. If you add “?torrent” to the end of any S3 URL, the server will return a .torrent file instead of the file requested. This is especially great for large files since you will have other users helping you out with distribution, lowering your bandwidth cost. The torrent uses Amazons’ tracker and their S3 machines are seeding the file. This way your torrent will never die, so long as the file remains on the S3 servers. Once again, while this isn’t a feature of their CDN service, it’s still a feature of S3, which is required to use their CDN service.
There are many content delivery services out there. Limelight, Akamai, Amazon, Level 3, and many others. Not all of us can afford the nice ones such as Akamai or Level 3, but that’s why there’s amazing pay-as-you-go solutions such as the two mentioned in this article, Amazon and Rackspace. There are others, I just haven’t had the time to try them all. It’s still a very close call between these two CDN’s. They both have their strong points and weaknesses. However, knowing that Rackspace Cloud Files uses Limelight Networks to deliver content really caught my attention. It really depends on how you’re using the service to determine which one is the most affordable. Amazon’s prices are a tad bit cheaper, starting at $0.17 per GB of outbound transfer inside the United States but you’ll be paying for S3 to Cloud Front transfers, as well as GET requests. Amazon also offers the ability to set custom response headers, allowing you to set custom cache settings for various content. When it comes down to it, most of the extra features that Amazon has over Rackspace don’t really apply to Cloud Front, their CDN service. These include torrents, HTTPS, and URL’s that expire after a certain time. Comparing apples to apples, Amazon has the leg up with custom CNAME support and custom response headers at the cost of having to pay for S3 to Cloud Front transfer. If you need a robust solution and plan on transferring extremely massive amounts of data, then Amazon might be your best bet. But if it’s ease of use and bandwidth provided by Limelight, one of the industry leaders in CDN, then Rackspace Cloud Files may be best for you.