<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using CNAMES to get around browser connection limits</title>
	<atom:link href="http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Annonymous</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-258258</link>
		<dc:creator>Annonymous</dc:creator>
		<pubDate>Mon, 05 Nov 2007 15:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-258258</guid>
		<description>Question: What happens when you use this strategy in a HTTPS site? Will the browser prompt with a warning saying that this page contains content from other sites?</description>
		<content:encoded><![CDATA[<p>Question: What happens when you use this strategy in a HTTPS site? Will the browser prompt with a warning saying that this page contains content from other sites?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Souders</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245525</link>
		<dc:creator>Steve Souders</dc:creator>
		<pubDate>Fri, 22 Dec 2006 23:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245525</guid>
		<description>Using CNAMEs is a way to increase download parallelization without users having to change their configuration settings. The issue of increased DNS lookups has already been mentioned. In my research another issue is the amount of thrashing on the client. I tried using different numbers of CNAMEs: 1, 2, 4, and 10. Using 2 was the best. Using 4 and 10 were worse than 1. 

As far as the browser config settings go, IE and Firefox are very different. In Firefox, the number of downloads that can happen for a single server depends on what version of HTTP is used. For HTTP/1.0 it is network.http.max-connections-per-server (defaults to 8). For HTTP/1.1 it&#039;s network.http.max-persistent-connections-per-server (defaults to 2). This example is using HTTP/1.1, therefore max-persistent-connections-per-server is a gating factor in the number of simultaneous downloads that is achieved. Before thinking of increasing this configuration setting, or using more than 2 CNAMEs, keep in mind another configuration setting that comes into play: network.http.max-connections (defaults to 24). You can never achieve more than 24 simultaneous downloads. For example, if you had 40 images across 20 CNAMEs, you would hope to get 40 parallel downloads. In actuality, only 24 images would be downloaded in parallel.

IE, on the other hand, does not have a limit on the maximum number of parallel downloads. At least, not that I&#039;ve found. I&#039;ve been able to perform over 100 downloads in parallel (limited to two per hostname for HTTP/1.1, four per hostname for HTTP/1.0).</description>
		<content:encoded><![CDATA[<p>Using CNAMEs is a way to increase download parallelization without users having to change their configuration settings. The issue of increased DNS lookups has already been mentioned. In my research another issue is the amount of thrashing on the client. I tried using different numbers of CNAMEs: 1, 2, 4, and 10. Using 2 was the best. Using 4 and 10 were worse than 1. </p>
<p>As far as the browser config settings go, IE and Firefox are very different. In Firefox, the number of downloads that can happen for a single server depends on what version of HTTP is used. For HTTP/1.0 it is network.http.max-connections-per-server (defaults to 8). For HTTP/1.1 it&#8217;s network.http.max-persistent-connections-per-server (defaults to 2). This example is using HTTP/1.1, therefore max-persistent-connections-per-server is a gating factor in the number of simultaneous downloads that is achieved. Before thinking of increasing this configuration setting, or using more than 2 CNAMEs, keep in mind another configuration setting that comes into play: network.http.max-connections (defaults to 24). You can never achieve more than 24 simultaneous downloads. For example, if you had 40 images across 20 CNAMEs, you would hope to get 40 parallel downloads. In actuality, only 24 images would be downloaded in parallel.</p>
<p>IE, on the other hand, does not have a limit on the maximum number of parallel downloads. At least, not that I&#8217;ve found. I&#8217;ve been able to perform over 100 downloads in parallel (limited to two per hostname for HTTP/1.1, four per hostname for HTTP/1.0).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Schwarz</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245415</link>
		<dc:creator>Michael Schwarz</dc:creator>
		<pubDate>Wed, 20 Dec 2006 11:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245415</guid>
		<description>I have done this years ago already, not only because of the 2 concurrent connection default limit. My problem sometimes was that you have more DNS lookups which was slow in some countries or with bad configured DNS servers.</description>
		<content:encoded><![CDATA[<p>I have done this years ago already, not only because of the 2 concurrent connection default limit. My problem sometimes was that you have more DNS lookups which was slow in some countries or with bad configured DNS servers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Breen</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245411</link>
		<dc:creator>Ryan Breen</dc:creator>
		<pubDate>Wed, 20 Dec 2006 03:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245411</guid>
		<description>Andy, looking at my Firefox settings, the 8 connections is for maximum connections to a host.  There is a separate line for maximum persistent connections (the HTTP 1.1 connections I&#039;m discussing here), and that is set to 2 in my Firefox.</description>
		<content:encoded><![CDATA[<p>Andy, looking at my Firefox settings, the 8 connections is for maximum connections to a host.  There is a separate line for maximum persistent connections (the HTTP 1.1 connections I&#8217;m discussing here), and that is set to 2 in my Firefox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: See Also</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245407</link>
		<dc:creator>See Also</dc:creator>
		<pubDate>Tue, 19 Dec 2006 23:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245407</guid>
		<description>http://www.die.net/musings/page_load_time/</description>
		<content:encoded><![CDATA[<p><a href="http://www.die.net/musings/page_load_time/" rel="nofollow">http://www.die.net/musings/page_load_time/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245398</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Tue, 19 Dec 2006 20:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245398</guid>
		<description>If your server gets too busy, you can point some of the CNAME DNS entries to another server, which serves just static content. Or if you don&#039;t have another web server, then to Amazon S3 for static content or even to an Amazon EC2 instance.

It would be even cooler if it could be done based on server load.</description>
		<content:encoded><![CDATA[<p>If your server gets too busy, you can point some of the CNAME DNS entries to another server, which serves just static content. Or if you don&#8217;t have another web server, then to Amazon S3 for static content or even to an Amazon EC2 instance.</p>
<p>It would be even cooler if it could be done based on server load.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kant</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245397</link>
		<dc:creator>Andy Kant</dc:creator>
		<pubDate>Tue, 19 Dec 2006 20:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245397</guid>
		<description>Interesting note...Firefox may default to its max of 8 connections now. I haven&#039;t modified the value in Firefox 2 and I don&#039;t have Fasterfox installed, but my setting is at 8 anyways.</description>
		<content:encoded><![CDATA[<p>Interesting note&#8230;Firefox may default to its max of 8 connections now. I haven&#8217;t modified the value in Firefox 2 and I don&#8217;t have Fasterfox installed, but my setting is at 8 anyways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kant</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245396</link>
		<dc:creator>Andy Kant</dc:creator>
		<pubDate>Tue, 19 Dec 2006 20:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245396</guid>
		<description>Kris: They aren&#039;t limited to 2 connections but they default to 2. This value can be increased in both browsers but the average user isn&#039;t going to know how so you need to assume they only have 2.</description>
		<content:encoded><![CDATA[<p>Kris: They aren&#8217;t limited to 2 connections but they default to 2. This value can be increased in both browsers but the average user isn&#8217;t going to know how so you need to assume they only have 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Zyp</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245395</link>
		<dc:creator>Kris Zyp</dc:creator>
		<pubDate>Tue, 19 Dec 2006 20:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245395</guid>
		<description>Yes, this is an important performance tip.  However, I was under the impression that Firefox had (single host) connection limit of 4 and just IE limited at 2.  Is it true that both IE and Firefox limit at 2?</description>
		<content:encoded><![CDATA[<p>Yes, this is an important performance tip.  However, I was under the impression that Firefox had (single host) connection limit of 4 and just IE limited at 2.  Is it true that both IE and Firefox limit at 2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver Tse</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245394</link>
		<dc:creator>Oliver Tse</dc:creator>
		<pubDate>Tue, 19 Dec 2006 20:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245394</guid>
		<description>Great article!  I love these performance ones!  Thanks!</description>
		<content:encoded><![CDATA[<p>Great article!  I love these performance ones!  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Holton</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245393</link>
		<dc:creator>Mark Holton</dc:creator>
		<pubDate>Tue, 19 Dec 2006 19:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245393</guid>
		<description>Why is it always the anonymous ones who bash and run?!  
Thanks for the info</description>
		<content:encoded><![CDATA[<p>Why is it always the anonymous ones who bash and run?!<br />
Thanks for the info</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Breen</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245391</link>
		<dc:creator>Ryan Breen</dc:creator>
		<pubDate>Tue, 19 Dec 2006 17:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245391</guid>
		<description>Google Maps works this way, so I think large sites can make judicious use of this technique without fear.

A poster on the blog pointed out that you can get the same effect with a wildcard DNS entry rather than explicit CNAMEs.  That&#039;s certainly true -- we just couldn&#039;t figure out how to enable wildcard DNS through our provider for this specific example. :-)</description>
		<content:encoded><![CDATA[<p>Google Maps works this way, so I think large sites can make judicious use of this technique without fear.</p>
<p>A poster on the blog pointed out that you can get the same effect with a wildcard DNS entry rather than explicit CNAMEs.  That&#8217;s certainly true &#8212; we just couldn&#8217;t figure out how to enable wildcard DNS through our provider for this specific example. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245390</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 19 Dec 2006 17:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245390</guid>
		<description>Of course large sites will work that way - you just have to understand how to load balance the requests.  Networking and system architecture 101.</description>
		<content:encoded><![CDATA[<p>Of course large sites will work that way &#8211; you just have to understand how to load balance the requests.  Networking and system architecture 101.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous Coward</title>
		<link>http://ajaxian.com/archives/using-cnames-to-get-around-browser-connection-limits/comment-page-1#comment-245389</link>
		<dc:creator>Anonymous Coward</dc:creator>
		<pubDate>Tue, 19 Dec 2006 16:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=1944#comment-245389</guid>
		<description>This is an excellent way to kill your webserver. It may work with 3 or 4 concurrent users, but large sites won&#039;t work that way.</description>
		<content:encoded><![CDATA[<p>This is an excellent way to kill your webserver. It may work with 3 or 4 concurrent users, but large sites won&#8217;t work that way.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

