<?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: Memcached vs MySQL</title>
	<atom:link href="http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/</link>
	<description>Bitheads Invade the Fashion World</description>
	<lastBuildDate>Sat, 21 Nov 2009 10:07:54 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Améliorer les performances d&#8217;un site : MemCached ou MySql</title>
		<link>http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/comment-page-1/#comment-132</link>
		<dc:creator>Améliorer les performances d&#8217;un site : MemCached ou MySql</dc:creator>
		<pubDate>Mon, 25 Aug 2008 21:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tech.stylefeeder.com/?p=41#comment-132</guid>
		<description>[...] de plusieurs centaines de requêtes par seconde. C&#8217;est le constat qui est fait dans ce post ou l&#8217;on apprend que MySql peut traiter près de 900 requêtes par seconde, contre 700 pour [...]</description>
		<content:encoded><![CDATA[<p>[...] de plusieurs centaines de requêtes par seconde. C&#8217;est le constat qui est fait dans ce post ou l&#8217;on apprend que MySql peut traiter près de 900 requêtes par seconde, contre 700 pour [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Memcached Vs. MySQL &#171; François Schiettecatte&#8217;s Blog</title>
		<link>http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/comment-page-1/#comment-131</link>
		<dc:creator>Memcached Vs. MySQL &#171; François Schiettecatte&#8217;s Blog</dc:creator>
		<pubDate>Sun, 24 Aug 2008 18:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tech.stylefeeder.com/?p=41#comment-131</guid>
		<description>[...] Development &#8212; François Schiettecatte @ 1:41 pm   Some interesting observations about Memcached Vs. MySQL over on the StyleFeeder Tech [...]</description>
		<content:encoded><![CDATA[<p>[...] Development &#8212; François Schiettecatte @ 1:41 pm   Some interesting observations about Memcached Vs. MySQL over on the StyleFeeder Tech [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: François Schiettecatte</title>
		<link>http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/comment-page-1/#comment-130</link>
		<dc:creator>François Schiettecatte</dc:creator>
		<pubDate>Sat, 23 Aug 2008 13:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tech.stylefeeder.com/?p=41#comment-130</guid>
		<description>Just a quick comment on Yoav&#039;s comment. Because of the variability in design he talks about, getting reliable and definitive stats on whether memcached is good or bad will be impossible (or at least the subject of a good debate), it just depends on your architecture.</description>
		<content:encoded><![CDATA[<p>Just a quick comment on Yoav&#8217;s comment. Because of the variability in design he talks about, getting reliable and definitive stats on whether memcached is good or bad will be impossible (or at least the subject of a good debate), it just depends on your architecture.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: François Schiettecatte</title>
		<link>http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/comment-page-1/#comment-129</link>
		<dc:creator>François Schiettecatte</dc:creator>
		<pubDate>Fri, 22 Aug 2008 23:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tech.stylefeeder.com/?p=41#comment-129</guid>
		<description>Thanks for the link back. I can shed some light (I think) on a couple of questions. 

Last time I looked at the memached code, it was clearly single threaded, relying on libevent to deliver kick-ass polling performance. This is all well and good, but there is still only a single thread to handle the requests (quick sidebar, never ever cross the beams and cause memcached to swap.) So I would suspect that you would get a performance boost on your way up to running  20 concurrent threads pulling data out, but that it will cap at some point and stay there.

MySQL on the other hand is multi-threaded (duh!) and so will handle running  20 concurrent threads pulling data out in a more graceful fashion.

At its most basic if the data in already in memory on the machine, pulling it out using memcached or MySQL should not make one whit of difference. Where things will diverge (broadly) is with disc access (a well tuned RDBMS should be CPU bound anyway) and with concurrency.

I also ran some psycho tests on memcached such as putting lots and lots of small 8-16 byte objects in there and found that I could only use about 10% of the memory I allocated to memcached before stuff started being aged out, something to do with slab allocation.</description>
		<content:encoded><![CDATA[<p>Thanks for the link back. I can shed some light (I think) on a couple of questions. </p>
<p>Last time I looked at the memached code, it was clearly single threaded, relying on libevent to deliver kick-ass polling performance. This is all well and good, but there is still only a single thread to handle the requests (quick sidebar, never ever cross the beams and cause memcached to swap.) So I would suspect that you would get a performance boost on your way up to running  20 concurrent threads pulling data out, but that it will cap at some point and stay there.</p>
<p>MySQL on the other hand is multi-threaded (duh!) and so will handle running  20 concurrent threads pulling data out in a more graceful fashion.</p>
<p>At its most basic if the data in already in memory on the machine, pulling it out using memcached or MySQL should not make one whit of difference. Where things will diverge (broadly) is with disc access (a well tuned RDBMS should be CPU bound anyway) and with concurrency.</p>
<p>I also ran some psycho tests on memcached such as putting lots and lots of small 8-16 byte objects in there and found that I could only use about 10% of the memory I allocated to memcached before stuff started being aged out, something to do with slab allocation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoav Shapira</title>
		<link>http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/comment-page-1/#comment-128</link>
		<dc:creator>Yoav Shapira</dc:creator>
		<pubDate>Fri, 22 Aug 2008 22:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tech.stylefeeder.com/?p=41#comment-128</guid>
		<description>Interesting post with interesting numbers.  Thank you for sharing.

I think the type of situation where memcached is best is exactly what it was designed for: when the database design is not clean, and complex queries (or sets of queries) are require as part of page load.  In that case, with data that can be somewhat stale, you can off-load the servers a bit by caching the final results of those queries in memcached.

In defense of memcached, it was designed before massive sharding across many commodity servers became available to the masses ;)</description>
		<content:encoded><![CDATA[<p>Interesting post with interesting numbers.  Thank you for sharing.</p>
<p>I think the type of situation where memcached is best is exactly what it was designed for: when the database design is not clean, and complex queries (or sets of queries) are require as part of page load.  In that case, with data that can be somewhat stale, you can off-load the servers a bit by caching the final results of those queries in memcached.</p>
<p>In defense of memcached, it was designed before massive sharding across many commodity servers became available to the masses ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whirlycott / Philip Jacob &#187; Some thoughts on memcached</title>
		<link>http://blog.tech.stylefeeder.com/2008/08/22/memcached-vs-mysql/comment-page-1/#comment-123</link>
		<dc:creator>Whirlycott / Philip Jacob &#187; Some thoughts on memcached</dc:creator>
		<pubDate>Fri, 22 Aug 2008 20:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tech.stylefeeder.com/?p=41#comment-123</guid>
		<description>[...] put some thoughts and scrappy data about memcached over on the StyleFeeder tech [...]</description>
		<content:encoded><![CDATA[<p>[...] put some thoughts and scrappy data about memcached over on the StyleFeeder tech [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
