<?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>Sat, 11 Feb 2012 03:24:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Stewart Smith: innodb and memcached</title>
		<link>http://www.weez.com/2011/04/stewart-smith-innodb-and-memcached/</link>
		<comments>http://www.weez.com/2011/04/stewart-smith-innodb-and-memcached/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 20:06:42 +0000</pubDate>
		<dc:creator>Abidoon</dc:creator>
				<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[Innodb]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[Smith]]></category>
		<category><![CDATA[Stewart]]></category>

		<guid isPermaLink="false">http://www.weez.com/2011/04/stewart-smith-innodb-and-memcached/</guid>
		<description><![CDATA[I had a quick look at the source tree (I haven&#8217;t compiled it, just read the source &#8211; that&#8217;s what I do. I challenge any C/C++ compiler to keep up with my brain!) that&#8217;s got a tarball up on labs.mysql.com for the memcached interface to innodb. A few quick thoughts: Where&#8217;s the Bazaar tree on [...]]]></description>
			<content:encoded><![CDATA[<p>I had a quick look at the source tree (I haven&#8217;t compiled it, just read the source &#8211; that&#8217;s what I do. I challenge any C/C++ compiler to keep up with my brain!) that&#8217;s got a tarball up on labs.mysql.com for the memcached interface to innodb. A few quick thoughts:</p>
<ul>
<li>Where&#8217;s the Bazaar tree on launchpad? I hate pulling tarballs, following the dev tree is much more interesting from a tech perspective (especially for early development releases). I note that the <a href="lp:~mysql/mysql-server/mysql-cluster-7.2-labs-memcached">NDB memcached </a>stuff is up on launchpad now, so yay there. I would love it if the InnoDB team in general was much more open with development, especially with having source trees up on launchpad.</li>
<li>It embeds a copy of the memcached server engines branch into the MySQL tree. This is probably the correct way to go. There is no real sense in re-implementing the protocol and network stack (this is about half what memcached is anyway).</li>
<li>The copy of the memcached engine branch seems to be a few months old.</li>
<li>The current documentation appears to be the source code.</li>
<li>The innodb_memcached plugin embeds a memcached server using an API to InnoDB inside the MySQL server process (basically so it can access the same instance of InnoDB as a running MySQL server).</li>
<li>There&#8217;s a bit of something that kind-of looks similar to the Embedded InnoDB (now HailDB) API being used to link InnoDB and memcached together. I can understand why they didn&#8217;t go through the MySQL handler interface&#8230; this would be bracing to say the least to get correct. InnoDB APIs, much more likely to have fewer bugs.</li>
<li>If this accepted JSON and spat it back out&#8230; how fast would MongoDB die? weeks? months?</li>
<li>The above dot point would be a lot more likely if adding a column to an InnoDB table didn&#8217;t involve epic amounts of IO.</li>
<li>I&#8217;ve been wanting a good memcached protocol inside Drizzle, we have ,of course, focused on stability of what we do have first. That being said&#8230;. upgrade my flight home so I can open a laptop&#8230; probably be done well before I land&#8230;.. (assuming I don&#8217;t get to it in the 15 other awesome things I want to hack on this week)</li>
</ul>
<div class="shr-publisher-2353"></div>
<p>View full post on <a href="http://www.flamingspork.com/blog/2011/04/12/innodb-and-memcached/">Planet Drizzle</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weez.com/2011/04/stewart-smith-innodb-and-memcached/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started with Memcached Distributed Memory Caching</title>
		<link>http://www.weez.com/2010/09/getting-started-with-memcached-distributed-memory-caching/</link>
		<comments>http://www.weez.com/2010/09/getting-started-with-memcached-distributed-memory-caching/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 08:01:26 +0000</pubDate>
		<dc:creator>Abidoon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Caching]]></category>
		<category><![CDATA[distributed]]></category>
		<category><![CDATA[getting]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[Started]]></category>

		<guid isPermaLink="false">http://www.weez.com/2010/09/getting-started-with-memcached-distributed-memory-caching/</guid>
		<description><![CDATA[Getting Started with Memcached Distributed Memory Caching Wikipedia describes Memcached as a general-purpose distributed memory caching system, but what exactly does the term Memcached mean? Cache is memory used to store the most frequently used resources (e.g. browsers store every website visited during a session in cache), because accessing resources from a cache is faster [...]]]></description>
			<content:encoded><![CDATA[<p><b>Getting Started with Memcached Distributed Memory Caching</b><br />
Wikipedia describes Memcached as a general-purpose distributed memory caching system, but what exactly does the term Memcached mean? Cache is memory used to store the most frequently used resources (e.g. browsers store every website visited during a session in cache), because accessing resources from a cache is faster than accessing them from a disk drive.</p>
<p>Read more on <a rel="nofollow" href="http://www.developer.com/lang/php/article.php/3901666/Getting-Started-with-Memcached-Distributed-Memory-Caching.htm">Developer.com</a><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weez.com/2010/09/getting-started-with-memcached-distributed-memory-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>1</slash:comments>
		</item>
	</channel>
</rss>

