Amazon Cloudfront - Shopping for a CDN?

Cloudfront Amazon Data Centers
Location of Amazon Data Centers World-wide. Credit Werner Vogels

This past month Amazon sent me an early Christmas present, their very own content deliver network (CDN). Adding to their already robust line of -cloud- offerings, Amazon Cloudfront brings edge server routing to the mix. I have been using Amazon S3 for static content delivery since my most recent hello world. Cloudfront takes the highly scalable and redundant S3 and puts it closer to the end user, thus distributing throughput and reducing latency.

When it comes to web development, one of my driving forces is performance. I love seeking out and shaving milliseconds off page loads and network requests. One of the best ways to do this is to put the content as close to the source as possible. Content Delivery Networks do just that. If my viewers are in Asia, I don-t want my server in New York and vise versa. With a CDN data is cached at several geographically optimized locations as needed. When a request comes in, it is routed to the nearest location.

The quickest route to the Jungle

A good tool to analyze network routing, latency and a bunch of other stuff is pingplotter. They have a free version and pro version. The free version works great for my purposes. Internet Control Message Protocol (ICMP) Pings are a lightweight and predictable way to provide insight on latency and network conditions. Here is a comparison of my routes between Amazon Cloudfront and my standard web server.

Amazon Cloudfront Pingplotter

As you can see, with Cloudfront I scream right to Amazons Newark, NJ server as apposed to going through McClean, VA, then ATL, and finally to my server in Dallas, TX.

How Cloudfront performs in the CDN storm

Pingplotter works great to determine your route and latency.

Just-ping.com provides a great way to test your host/cdn from many geographic locations at once.

Disclaimer: The below analysis was put together to illustrate a general concept. Accuracy and real world conditions will vary.

.

Geographic LocationSingle Web ServerAmazon CloudfrontAkamaiLimeLight
.

Florida, U.S.A.34.429.436.536.9
.

Chicago, U.S.A.34.56.6191.3
.

San Francisco, U.S.A.43.62.23.62
.

New York, U.S.A.43.958.96.6
.

Santa Clara, U.S.A.47.13.92.86.9
.

Vancouver, Canada73524.595.6
.

Austin1, U.S.A.102.438.15.276.3
.

Austin, U.S.A.102.738.15.376.4
.

London, United Kingdom10813.21.81.6
.

Amsterdam3, Netherlands114.319.90.77.4
.

Amsterdam2, Netherlands115.820.61.58.1
.

Amsterdam, Netherlands118.60.90.50.7
.

Lille, France120.312.914.2110.9
.

Munchen, Germany129.17.610.27.7
.

Zurich, Switzerland130.810.62.825.7
.

Cologne, Germany131.89520.4
.

Groningen, Netherlands1334.35.74.3
.

Copenhagen, Denmark137.915.64.125.3
.

Antwerp, Belgium139.75.54.24.4
.

Stockholm, Sweden14232.7523.6
.

Madrid, Spain142.445.22.525.1
.

Paris, France149.98.317.51.4
.

Cagliari, Italy165.530.129.530.4
.

Auckland, New Zealand173.7159.81.1161.4
.

Krakow, Poland174.1318.843.6
.

Haifa, Israel177.978.10.564.5
.

Porto Alegre, Brazil179.1149.930.2169.9
.

Nagano, Japan185.84.813.14.7
.

Sydney, Australia204.8159.23.3166.2
.

Hong Kong, China206.82.32.265.6
.

Melbourne, Australia207.6177.91.7166.6
.

Singapore, Singapore238.7137.113.33.5
.

Shanghai, China249.1153.5308.387
.

Mumbai, India280.3259.11.6263.5
.

Johannesburg, South Africa304.8293.219.3274.7
.

Average (miliseconds)144.157.6516.9859.15
Amazon Cloudfront

Setting up and configuring Amazon Cloudfront

Setup was super easy with the latest S3 Organizer Firefox Add-on. You can also complete the setup with a Curl Script.

No Comments? Post one!

Leave a comment