<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Weez.com &#187; memcached</title>
	<atom:link href="http://www.weez.com/tag/memcached/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weez.com</link>
	<description>Solving everyday practical LAMP problems... one at a time</description>
	<lastBuildDate>Fri, 30 Jul 2010 22:46:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Open Source Memcached Vendor NorthScale Gets New CEO and $10 Million</title>
		<link>http://www.weez.com/2010/05/open-source-memcached-vendor-northscale-gets-new-ceo-and-10-million/</link>
		<comments>http://www.weez.com/2010/05/open-source-memcached-vendor-northscale-gets-new-ceo-and-10-million/#comments</comments>
		<pubDate>Fri, 21 May 2010 16:14:31 +0000</pubDate>
		<dc:creator>Abidoon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gets]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[Million]]></category>
		<category><![CDATA[NorthScale]]></category>
		<category><![CDATA[Open]]></category>
		<category><![CDATA[Source]]></category>
		<category><![CDATA[Vendor]]></category>

		<guid isPermaLink="false">http://www.weez.com/2010/05/open-source-memcached-vendor-northscale-gets-new-ceo-and-10-million/</guid>
		<description><![CDATA[Open Source Memcached Vendor NorthScale Gets New CEO and $10 Million The market for solutions based on the open source memcached distributed caching technology project is continuing to attract interest from investors and commercial vendors. Read more on Developer.com]]></description>
			<content:encoded><![CDATA[<p><b>Open Source Memcached Vendor NorthScale Gets New CEO and $10 Million</b><br />
The market for solutions based on the open source memcached distributed caching technology project is continuing to attract interest from investors and commercial vendors.</p>
<p>Read more on <a rel="nofollow" href="http://www.developer.com/open/article.php/3882826/Open-Source-Memcached-Vendor-NorthScale-Gets-New-CEO-and-10-Million.htm">Developer.com</a><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weez.com/2010/05/open-source-memcached-vendor-northscale-gets-new-ceo-and-10-million/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginner&#8217;s Guide to Website Performance with MySQL and memcached</title>
		<link>http://www.weez.com/2010/03/beginners-guide-to-website-performance-with-mysql-and-memcached/</link>
		<comments>http://www.weez.com/2010/03/beginners-guide-to-website-performance-with-mysql-and-memcached/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 16:23:11 +0000</pubDate>
		<dc:creator>Abidoon</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.weez.com/2010/03/beginners-guide-to-website-performance-with-mysql-and-memcached/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>					<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/X1ePFOhHEag?fs=1"></param><param name="allowFullScreen" value="true"></param>
					<embed src="http://www.youtube.com/v/X1ePFOhHEag?fs=1" type="application/x-shockwave-flash" width="425" height="355" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weez.com/2010/03/beginners-guide-to-website-performance-with-mysql-and-memcached/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Session Stickiness&#8230;A thing of the past</title>
		<link>http://www.weez.com/2008/10/session-stickinessa-thing-of-the-past/</link>
		<comments>http://www.weez.com/2008/10/session-stickinessa-thing-of-the-past/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 05:57:14 +0000</pubDate>
		<dc:creator>Abidoon</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[danga.com]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[sessions]]></category>

		<guid isPermaLink="false">http://www.weez.com/?p=28</guid>
		<description><![CDATA[So ever notice some old sites with domains showing up in your address bar that look something like www1.example.com or www2.example.com? This is usually because the site owners are trying to load balance, in a crude way by making you stick to one particular webserver. Usually the main reason for doing this is because of [...]]]></description>
			<content:encoded><![CDATA[<p>So ever notice some old sites with domains showing up in your address bar that look something like www1.example.com or www2.example.com? This is usually because the site owners are trying to load balance, in a crude way by making you stick to one particular webserver.</p>
<p>Usually the main reason for doing this is because of sessions. For security reasons your browser will not keep you signed in with the same session if you hop subdomains. What this means is that if you logged in on www1.example.com and now go to www2.example.com the browser will consider this as two separate sites and you would have to login again on www2.</p>
<p>People used to play a number of tricks to remove session stickiness such as storing sessions in the db so that they could transparently load balance your session across multiple webservers. However databases due to their inherent nature are often large monolithic beasts that are much slower than some of the alternatives available out there now.</p>
<p>One of these, which I am a fan of, is memcache! The folks over at danga.com have given us one of the most powerful building blocks for creating highly scalable websites.</p>
<p>We can now experience load balancing as it was meant to be!</p>
<p>As an example lets take PHP session handling. PHP usually stores its session on the local hard drive of a server. You can also make it store sessions inside a database, lets say MySQL. However, as I mentioned earlier MySQL is very slow compared to memcache and is inherently harder to scale compared to memcache.</p>
<p>To setup PHP to use memcache for sessions, this is all you have to do :</p>
<p>0 &#8211; Install memcache library available at http://pecl.php.net/package/memcache</p>
<p>1 &#8211; Open php.ini</p>
<p>2 &#8211; Set session.save_handler = memcache</p>
<p>3 &#8211; Set session.save_path = &#8220;tcp://IP:PORT&amp;weight=X&#8221; where X is the weight of a particular memcache server. You can add as many as you like by specifying one after the other separated by a comma.</p>
<p>4 &#8211; Install memcached. For a distribution like Fedora or CentOS just execute &#8220;yum install memcached&#8221;</p>
<p>All of this should not take you more than 5 minutes, and you are done!</p>
<p>Now to scale just keep adding more servers and firing up the memcached daemon  and experience the true beauty of completely transparent load balancing <img src='http://www.weez.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weez.com/2008/10/session-stickinessa-thing-of-the-past/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
