tags:

views:

385

answers:

3

I was going through Best Practices for Speeding Up Your Web Site from developer site of yahoo...

  • What are the advantages and disadvantages of using CDN(Content Delivery Network)?

  • When to use CDN?

  • Is CDN a performance booster?

A: 

cdn is a performance booster if a lot of content come from the cdn.

normal you have 2 connections each time to get content for each domain so each item is a connection

if you have content on a cdn from a other domain you have more connections for your site and your site will load faster

i use normally a cdn for js libs and only if i trust the cdn and check the uptime from the cdn you want to use

Marco
@Marco r you refering js to google cdn for jquery...
Pandiya Chendur
If you are going to use a cdn use it for static content so you can use the cdn for other websites to
Marco
yes, for js like jquery or google things
Marco
Or did you mean to set up a own cdn ?
Marco
+1  A: 

What are the advantages and disadvantages of using CDN?

  • The disadvantages may be that it costs money, and it adds a bit of complexity to your deployment procedures.

  • The main advantage is an increase in the speed with which the content is delivered to the users.

When to use CDN?

  • It will be most effective when you have a popular public website with some type of static content (images, scripts, css, etc).

Is CDN a performance booster?

  • In general, yes. When a specific request is made by a user, the server closest to that user (in terms of the minimum number of nodes between the server and the user) is dynamically determined. This optimizes the speed with which the content is delivered to that user.
Daniel Vassallo
+1  A: 

Each CDN provider is different but you should really look into their network and how it might effect your target audience, especially so if your website audience is heavily localised in one part of the world.

In our testing, we found the majority of users (depending on which ISP they where connecting from) where not seeing any performance benefit as the CDN provider we were looking at using was not paired with their upstream provider. Packets were not being routed along the "main tubes" and performance would have dropped had we gone ahead.

With that said the above situation is probably not all that common, but it's still good idea to test. Bring up a version of your site using resources from a CDN and test in different locales and on different connections and measure the results.

There are other benefits as well; browsers taking advantage of multiple domains and having more simultaneous requests, less load for your server etc. Generally speaking, CDN is a good option.

DaRKoN_