<?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>King Kludge &#187; facebook</title>
	<atom:link href="http://www.kingkludge.net/tag/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kingkludge.net</link>
	<description>Husband, father, hacker, maker. Addicted to all things geeky, especially robots.</description>
	<lastBuildDate>Wed, 28 Sep 2011 14:18:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Facebook performance woes</title>
		<link>http://www.kingkludge.net/2009/12/facebook-performance-woes/</link>
		<comments>http://www.kingkludge.net/2009/12/facebook-performance-woes/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 17:42:15 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.kingkludge.net/2009/12/facebook-performance-woes/</guid>
		<description><![CDATA[Today Facebook launched their new privacy settings and forced all their users to update their settings. We noticed at Yahoo! that we were started to get lots of timeouts from Facebook&#8217;s APIs that we use on the Yahoo! homepage. I&#8217;ve &#8230; <a href="http://www.kingkludge.net/2009/12/facebook-performance-woes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today Facebook launched their new privacy settings and forced all their users to update their settings.</p>
<p>We noticed at Yahoo! that we were started to get lots of timeouts from Facebook&#8217;s APIs that we use on the Yahoo! homepage.</p>
<p>I&#8217;ve not heard anything official from Facebook yet, so this next part is all speculation.</p>
<p>I suspect that as a user updates their privacy settings, as forced to the first time they hit facebook.com now, Facebook flags that users account is dirty (something changed) and purges the cache of the users stream data.<br />
Now that the cache is empty for a particular user, when a friend of that user views Facebook, the backend servers must go back to the master data source and confirm permissions on what is visible before it is displayed. </p>
<p>That is fine when you have a few users updating their permissions, if however you force ALL your users to do this, you site rapidly becomes overwhelmed, as you effectively removed your cache. This effect is known as &#8220;The Thundering Herd&#8221;.</p>
<p>As the load increases, due to all extra requests for data that would normally be handled by caches, you start to get race conditions as requests return and try to populate the cache. Also as the load increases, requests start to take longer as connections are kept open while backends are queried. Because connections are being kept open, the server stops handling requests, as there are no more connection slots and you start to get errors as clients can no longer connect.</p>
<p>How do you prevent this. Don&#8217;t push changes that require you whole userbase to update their records at once. Stage the release, starting with 1% until you can guage how much load it will generate on your servers. Then you can safely ramp up your change safely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kingkludge.net/2009/12/facebook-performance-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Yahoo! Homepage</title>
		<link>http://www.kingkludge.net/2009/08/new-yahoo-homepage/</link>
		<comments>http://www.kingkludge.net/2009/08/new-yahoo-homepage/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 21:40:20 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[yahoo homepage]]></category>

		<guid isPermaLink="false">http://www.kingkludge.net/2009/08/new-yahoo-homepage/</guid>
		<description><![CDATA[So the reason I&#8217;ve not posted anything for a while, and have had to be careful about what I talk about when and if I do. Last week we turned on the opt in to the Yahoo! Homepage http://uk.yahoo.com/trynew My &#8230; <a href="http://www.kingkludge.net/2009/08/new-yahoo-homepage/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So the reason I&#8217;ve not posted anything for a while, and have had to be careful about what I talk about when and if I do.</p>
<p>Last week we turned on the opt in to the Yahoo! Homepage <a href="http://uk.yahoo.com/trynew">http://uk.yahoo.com/trynew</a> </p>
<p>My personal project was writing the Facebook App, which does seem to have received a fair amount of press coverage.</p>
<p>However for the last 18 months we&#8217;ve been working on a complete rewrite of the homepage.</p>
<p>This has included releasing four countries (France, United Kingdom, United States and India) all using the same codebase and the same developers.</p>
<p>Personally I&#8217;ve been involved in setting up testing frameworks, continuous integration and code quality.</p>
<p>I&#8217;ll try and publish further updates later. Specifically, if possible, information on the Facebook App.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kingkludge.net/2009/08/new-yahoo-homepage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

