Groove Commerce
Content Delivery Network’s (CDN) and Why You Should Be Using One...

Are you using a CDN to help power your eCommerce web site? If not, you should be thinking about it for the 2010 holiday season. What is a CDN? It is short for “Content Delivery Network” or “Content Distribution Network.” This is a network of servers that replicates parts or all of your site across the Internet and delivers it to your visitors in the most efficient way possible. To make it simple, it can make your site load faster and be more reliable. Page load time affects your conversion rate and now as described by Matt Cutts, it affects your search engine rankings too.

So how does it work? Say your name is Bob and you own Bob’s Widget Shop. You came to Groove to have a great eCommerce site developed on the Magento Enterprise or Professional platforms (hint,hint) and now host it on a server that is located in Virginia.

In your current hosting model, a visitor from California would be hitting your site’s server located in Virginia. That request can sometimes make 15-20 network ‘hops’ across the country through different internet service providers (ISP) and back to finally be displayed in their web browser. The further the network distance traveled, the longer it can potentially take for the page to load and the more opportunity for failure if there is a problem along the way.

Here is an example of a network traceroute. You will see it is 15 hops across the country:

TraceRoute to

Hop (ms) (ms) (ms) IP Address Host name

1 36 48 45 -

2 11 26 21 -

3 31 14 12 -

4 8 18 11

5 57 28 24 -

6 14 26 17

7 46 23 7

8 36 28 13 -

9 50 44 41

10 73 74 77

11 63 51 54

12 54 63 61

13 59 61 63

14 58 63 52

15 83 76 60 -

Trace complete

Here is an example of a network trip with only 7 hops:

TraceRoute to

Hop (ms) (ms) (ms) IP Address Host name

1 20 20 11 -

2 12 12 30

3 26 11 8

4 14 14 15

5 17 11 8

6 18 15 8

7 24 26 32

Trace complete

Most small business’s can’t afford to have multiple servers co-located and replicated across the country to cut down. Enter the CDN. Akamai is one of the oldest and most well known, but new platforms such as Rackspace’s cloudFiles and Amazon’s Cloudfront have brought affordability and access to any site owner that wants to take advantage allowing you to pay for only the bandwidth you need to use with very low monthly minimums.

In the new hosting model, a visitor from California would still be hitting your site’s server located in Virginia. But all of your major site assets such as images or video would be delivered from the closet end point possible from a network of thousands of servers spread around the world. For most sites, these assets typically make up 80-90% of your sites overall bandwidth usage. Why wouldn’t you want to deliver them faster?

So what works good for CDN hosting? Any non-dynamic, non session based files. Things such as images, JavaScript, CSS, Flash and video streaming are all perfect candidates. Typically things such as a complete shopping cart, cookies and databases are examples of things that can be far too complex to host on a CDN.

Theoretically, the closer the content the faster delivery, but there are other factors that play into performance as well such as reliability and scalability. Instead of a single point of failure with one or two servers, you are able to leverage the reliability of a network of many servers. From a scalability standpoint, could your current setup handle a mention from Oprah or David Letterman?

These aren’t screams of Oprah ecstasy... It’s your web server screaming in pain...

Again, this network of severs can help you significantly scale by removing some of the load from your current servers. You want it doing the important things like processing credit cards, not overwhelmed by serving up images or JavaScript.

The first step is to segregate all of your sites images, JavaScript and CSS to either a sub-domain ( or separate domain ( and call those elements as absolute url’s from within your site platform.

For example:

<img src="/images/product1.jpg" alt="Product 1" title="Product 1" />

Would need to become:

<img src="" alt="Product 1" title="Product 1" />

From there, you will need to customize your site to either upload those asset files realtime or replicate them to your CDN on a regular basis. Platforms like Wordpress and Magento have CDN extensions available to install, but they typically take some work and little know how to get them bulletproof.

A little extra planning from the beginning of a new site project can get you ready for the holiday rush. It used to be that only large. big budget sites could leverage this power to increase your sites reliability and scalability. Now its available to everyone at affordable prices. Isn’t it worth a little extra work to potentially increase your conversion rate and help your search rankings?