<?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"
	>
<channel>
	<title>Comments on: Put the web server on a diet and increase scalability</title>
	<atom:link href="http://gojko.net/2008/05/05/put-the-web-server-on-a-diet-and-increase-scalability/feed/" rel="self" type="application/rss+xml" />
	<link>http://gojko.net/2008/05/05/put-the-web-server-on-a-diet-and-increase-scalability/</link>
	<description>The Quest for Software++</description>
	<pubDate>Sat, 30 Aug 2008 11:19:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Curt Sampson</title>
		<link>http://gojko.net/2008/05/05/put-the-web-server-on-a-diet-and-increase-scalability/#comment-27654</link>
		<dc:creator>Curt Sampson</dc:creator>
		<pubDate>Thu, 15 May 2008 03:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=123#comment-27654</guid>
		<description>This all seems incredibly specific to some particular software; my first thought on reading this was that most of it doesn't apply to my particular web server and framework.</description>
		<content:encoded><![CDATA[<p>This all seems incredibly specific to some particular software; my first thought on reading this was that most of it doesn&#8217;t apply to my particular web server and framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gil</title>
		<link>http://gojko.net/2008/05/05/put-the-web-server-on-a-diet-and-increase-scalability/#comment-27356</link>
		<dc:creator>Gil</dc:creator>
		<pubDate>Mon, 05 May 2008 20:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=123#comment-27356</guid>
		<description>You make some good points here, but the best ones seem to revolve around sound programming tactics as opposed to scaling strategy (I'm speaking primarily about the encapsulation section here). 

Your third paragraph begins "Consider using cookies as an alternative to store simple information that is not security-sensitive." Well, most session systems I'm familiar with already do this, and it's important to note that more cookies = more overhead because they must get passed along with every HTTP request to the server.

Most of my experience with sessions revolves around PHP, which by default uses flat file storage. Combined with OS-level hard disk caching, this can scale remarkably well on a single machine. When you reach the point of needing multiple front end servers that method goes out the window, and for those cases a distributed object cache like memcache works remarkably well.

Regardless of which server side session storage method you choose (flat file, object cache, etc), I'd say that session size is a nominal consideration. Memory is insanely cheap these days, and I'd much rather dump lots of info into a cache than require a database query for every page request.</description>
		<content:encoded><![CDATA[<p>You make some good points here, but the best ones seem to revolve around sound programming tactics as opposed to scaling strategy (I&#8217;m speaking primarily about the encapsulation section here). </p>
<p>Your third paragraph begins &#8220;Consider using cookies as an alternative to store simple information that is not security-sensitive.&#8221; Well, most session systems I&#8217;m familiar with already do this, and it&#8217;s important to note that more cookies = more overhead because they must get passed along with every HTTP request to the server.</p>
<p>Most of my experience with sessions revolves around PHP, which by default uses flat file storage. Combined with OS-level hard disk caching, this can scale remarkably well on a single machine. When you reach the point of needing multiple front end servers that method goes out the window, and for those cases a distributed object cache like memcache works remarkably well.</p>
<p>Regardless of which server side session storage method you choose (flat file, object cache, etc), I&#8217;d say that session size is a nominal consideration. Memory is insanely cheap these days, and I&#8217;d much rather dump lots of info into a cache than require a database query for every page request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyrre</title>
		<link>http://gojko.net/2008/05/05/put-the-web-server-on-a-diet-and-increase-scalability/#comment-27355</link>
		<dc:creator>Kyrre</dc:creator>
		<pubDate>Mon, 05 May 2008 19:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=123#comment-27355</guid>
		<description>I'm not sure I understand your point about security sensitive identifiers. Using a user ID in a URL is not really a bad things, at least not in the REST way of thinking about things. You only have to make sure that people can't guess that there's a resource at the end of the URL until they have logged in with the right credentials. At the end of the day a user's ID may be communicated, for example for a discussion list, etc.

But I fully agree with your arguments against using cookies. In every project I do these days, I turn off all cookie handling in the beginning, and turn it on only of someone has a use and a good argument for using it. Surprisingly often, we find much better and more scalable solutions to the problem.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure I understand your point about security sensitive identifiers. Using a user ID in a URL is not really a bad things, at least not in the REST way of thinking about things. You only have to make sure that people can&#8217;t guess that there&#8217;s a resource at the end of the URL until they have logged in with the right credentials. At the end of the day a user&#8217;s ID may be communicated, for example for a discussion list, etc.</p>
<p>But I fully agree with your arguments against using cookies. In every project I do these days, I turn off all cookie handling in the beginning, and turn it on only of someone has a use and a good argument for using it. Surprisingly often, we find much better and more scalable solutions to the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Terrill</title>
		<link>http://gojko.net/2008/05/05/put-the-web-server-on-a-diet-and-increase-scalability/#comment-27347</link>
		<dc:creator>Gavin Terrill</dc:creator>
		<pubDate>Mon, 05 May 2008 18:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=123#comment-27347</guid>
		<description>&#62; Shopping cart contents are a good example
I've forgotten where I read it, but I think it was Amazon who actually found that users like it when the system remembers what was in their cart previously.</description>
		<content:encoded><![CDATA[<p>&gt; Shopping cart contents are a good example<br />
I&#8217;ve forgotten where I read it, but I think it was Amazon who actually found that users like it when the system remembers what was in their cart previously.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
