How A Content Distribution Network Can Increase Your Site’s Performance

HOW-IMPORTANT-IS-A-CDN

WHEN YOU hear the phrase “Content Distribution Network” it may sound to you like the propaganda spreading operations of a 1984 style government. In reality, a Content Distribution Network is really just a system of computers containing copies of the same data at different locations. This duplicate data exists so that separate servers can be accessed by separate regions so that there’s no “bottlenecking” where everyone’s trying to access the same central server at once.

HOW IMPORTANT IS A CDN?

HOW IMPORTANT IS A CDN
With the internet becoming a more dynamic environment, it’s becoming more important for websites to deliver their content in a smooth and timely manner. People expect the web to react to them instantaneously. No one wants to lose connection with a website right after submitting their credit card number. At the same time, waiting five seconds for a web page to load feels like an eternity. The information superhighway moves fast, and you don’t want your site to get left behind.

Whether or not a Content Distribution Network will be advantageous to you is dependent on the size and traffic of your website. If you have a small personal website on a shared server, then you most likely do not have the traffic necessary to justify data on servers a thousand miles away from one another. While it’s true that you don’t need a professional CDN from your web host, there are still some content distribution tricks that you can learn to enhance your website’s performance.

TRICKING YOUR SERVER INTO LOADING FASTER

TRICKING YOUR SERVER INTO LOADING FASTER

One big advantage of having a CDN is being able to use parallel loading.  Which entails collecting information from different servers at the same time.  Browsers have the ability to pull content from more than one hostname at the same time.  By getting HTML from one server, CSS from another, and images from another, a web page can be built faster, thus lowering the load time.  There is an optimal amount of parallel loading, which is discussed in an article on yahoo.

However, browsers understand that they’re getting information, but don’t necessarily know where that information is coming from.  As a result, you can trick the browser into thinking that your one server is actually three different servers.  If you organize your domain into multiple sub-domains (domain.com, domain.html.com, domain.css.com) and have different information come from each one, then you can have computers simultaneously gathering data from the same server.

Although you do get the benefits of parallel loading this way, you do not get the benefits of extra processing power.  Imagine you have pipe that’s hooked up to a pump.  If you widen the mouth of the pipe then you can get water to move faster and avoid “bottlenecking”.  However, if much of the pump’s power is being used other places and you widen the pipe then water will not move any faster. In this case, your problem is that you don’t have enough power, not that water is getting stuck in the pipe.  This is the same on the web.  If you use parallel loading (widen the pipe) you still may not see benefit because you don’t have enough processing power from your servers (not enough pump power).

HELP! I NEED SOMEBODY!

HELP! I NEED SOMEBODY

A JavaScript Library is a collection of pre-written JavaScript that allows for easier development of applications that use JavaScript.  These libraries were originally developed by NetScape in their heyday, but since have been used by companies all over the web.  If you’re running a WordPress blog then you have a JavaScript Library.  In fact, almost any dynamic web page will have a JavaScript Library somewhere in its framework.  Those libraries need processing power, and rather than hosting it yourself, you can have some other entity do it for you.

Luckily, Google offers a service that will act as a Content Distribution Network for you.  Google develops great software and values speed which means that accountability for this software is pretty high.   In addition, Google is pretty good at making sure their software is compatible with other web companies.  As a result they can provide a usable CDN whether you are using YUI, jQuery, or Dojo as your JavaScript Library.  In an article by Encosia Google was also said to have decreased latency, increased parallelism, and improved caching, all technical pluses that help your site load faster.

If you’re using WordPress and don’t want to have to go through the technical hassle of downloading Google’s software, there are some plugins available to you.  These plugins can help improve the performance of your WordPress site by increasing the chance that a user has already cached these files and compressing the files so that it takes less space on a server.  In order to get the advantages of a CDN all you need to do is download one plugin.

EVEN IF you can’t justify a professional Content Distribution Network, you can still enjoy its benefits if you’re clever.  You can trick your computer into thinking that your one server is three different servers, which will help you out as long as you don’t run out of processing power.  Additionally you can use Google or WordPress plugins to implement a CDN service.  No matter how you choose to go about it, shorter loading times are just a few clicks away.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
Cameron Albin

Cameron Albin

My name is Cameron Albin. I'm a student at Duke University, an intern at the webhosting company A Small Orange, and a native Texan. I have written for several blogs on topics ranging from Joomla security to bringing developers and designers together. I'm young, but I'm learning fast.
Tags: , , , ,
  • http://pcmart.in pcpro

    excellent article. that pretty much summarises all that is needed by a good performance website. thanks for sharing.

    [Reply]

  • http://www.top10listguide.com Steve@top 10 lists

    The trick at the end is useful actually for my setup. I’m wondering at what traffic level does it make sense to use a CDN? I have two blogs that are growing fast and the caching plugins don’t seem to be helping too much.

    [Reply]

  • http://decidebay.com Consumer Reviews

    I will definitely be trying this out on some of my sites.I also suspect that users would see most of the page even if other stuff was downloading in the background.
    It also got me thinking that the commercial template that I used has a lot of images for sections that I don’t use and it could have benefited a lot from using sprites instead of individual images.

    [Reply]

  • http://www.reviewsin.com Seth Lyman

    Interesting article Cameron. I followed the link to the WP plugin to use Google libraries and I will get it installed on my site. I wish you would have gone into a little more detail on tricking “your computer into thinking that your one server is three different servers, which will help you out as long as you don’t run out of processing power.” I don’t know how to do it but I would certainly read about it and figure it out.

    [Reply]

  • http://makemoneyonlinefastplans.com Vineet Saxena

    Hi Cameron,
    CDN has helped my blog to gain more traffic and subscribers from the time I started using CDN.

    [Reply]

  • http://youngblah.com/ Amit

    Hi Cameron,
    Thanks for the information about CDN. Will definitely try to use this on my site. And see how it works.

    [Reply]

  • http://www.seniorszen.com/ Alice

    I am now curious whether for a small, medium-traffic site, utilizing CDN for improving loading speed and performace would actually make enough difference to boost rankings? (since it’s often noted that site speed is one of the many factors that affects rankings in SERPs)

    [Reply]

  • http://www.dofollowforums.org DoFollow Forum

    Great stuff. IMO Content Distribution can increase your visibility in unbelievable magnitudes. Ofcourse the SEO would in-turn cause your SER to increase which would mean another indirect boost to your traffic and visitors.

    [Reply]

  • http://incrediblechick.com/ Betty Rhodes

    I’ll check about the WordPress plug ins that you have mentioned. I’ll install them in a few in my blog. I agree with Seth. I hope you had written about tweaking around to make my computer see that it has three servers instead of one. That would truly be helpful. Or is there another article for this? Thanks!

    [Reply]

  • http://bakerbagels.co.uk Jose @ bakers bagels

    Hi Cameron, thanks for the information, I use wordpress for all my blogs and I had no idea that I can use that plugin to increase the loading speed, normally my websites are quite slow, thanks again for sharing!

    [Reply]

  • http://www.spiritofthescripture.com Josh

    Very good article. Had no idea WordPress had so much potential with so many options!

    [Reply]

  • http://www.newcitymagazine.com New City Magazine

    still pretty new to WordPress. Still got lots to learn. But I’m amazed how powerful it is and yet so simple to build and operate. Thanks again for your article.

    [Reply]

  • http://www.newcitymagazine.com New City Magazine

    Looking forward to read more of your stuff. Cheers :)

    [Reply]