<?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>.zugiart &#187; distributed systems</title>
	<atom:link href="http://www.zugiart.com/tag/distributed-systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zugiart.com</link>
	<description>Software Engineering, buddhism, and everything else in between.</description>
	<lastBuildDate>Mon, 09 Jan 2012 05:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Modelling distributed systems on nature</title>
		<link>http://www.zugiart.com/2009/08/modelling-distributed-systems-on-nature/</link>
		<comments>http://www.zugiart.com/2009/08/modelling-distributed-systems-on-nature/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 10:55:06 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[thoughts]]></category>
		<category><![CDATA[distributed systems]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[ted.com]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/main/2009/08/modelling-distributed-systems-on-nature/</guid>
		<description><![CDATA[Designs on distributed systems components can be modelled after the way bacteria coordinate collective effort to mount a joint attack on a host. ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve developed several distributed systems that runs over multiple domains / networks that are non-heterogeneous in nature. Usually there are several basic problems that needs to be solved, in particular:</p>
<ul>
<li><strong>Component lifecycle model</strong> &#8211; how is the lifecycle of each component governed? For example, who starts and stops these components? Do they start themself? Where do they get their configuration data from?</li>
<li><strong>Communication model</strong> &#8211; how do each component talk to one another? What types or signals / messages are needed ? What is the messaging protocol? What is the means of transport for these messages?</li>
<li><strong>Social behavior</strong> &#8211; are there any smart social behavior that need to be embodied by each component? This is also relevant to building distributed systems that embodies error-recovery characteristics, where components can be in standby mode when they are not yet complete as a group, and then become active once the group is complete and they can collectively perform their task as a unit.</li>
</ul>
<h2>The talk</h2>
<p>Firstly, go and watch the video. Don&#8217;t take off your invisible nerd goggles, and when she spoke about bacterias, think components and messaging mechanism in distributed systems. Enjoy!</p>
<p>Bonnie Bassler  on <a href="http://en.wikipedia.org/wiki/Quorum_sensing">quorum sensing</a></p>
<blockquote><p>Bonnie Bassler discovered that bacteria &#8220;talk&#8221; to each other, using a chemical language that lets them coordinate defense and mount attacks. The find has stunning implications for medicine, industry &#8212; and our understanding of ourselves.</p>
<p><a href="http://www.ted.com/talks/bonnie_bassler_on_how_bacteria_communicate.html">watch video here</a> | <a href="http://www.ted.com/speakers/bonnie_bassler.html">Bonnie Bassler speaker profile</a> | <a href="http://www.ted.com">ted.com</a></p></blockquote>
<h2>Thoughts</h2>
<p>This is a picture of a simplistic network management system that is distributed in nature. Distributed here meaning that each &#8216;yellow box&#8217; can be running on a separate machine to other yellow box, and that they communicate to each other through some sort of messaging system.</p>
<p><img class="aligncenter size-full wp-image-371" title="simplistic_model_of_distributed_system" src="http://www.zugiart.com/main/wp-content/uploads/2009/08/simplistic_model_of_distributed_system.png" alt="simplistic_model_of_distributed_system" width="554" height="321" /></p>
<p>The conventional model is to build these components one by one with their own respective objective in mind. That is, data collectors component does exactly that, collecting data. When it&#8217;s done its respective duty against the data, it&#8217;ll pass it on to the next one, and so on.</p>
<p>But drawing pictures like this is easy, in reality, there are other questions that needs to be answered, such as:</p>
<ul>
<li><strong>configuration </strong>- who configures these yellow boxes? how did the data collector box know that it need to pass on the data to the ETL box?</li>
<li><strong>social behavior in case of fault </strong>- when the ETL data fails because of some unforseen reason, can data collector &amp; data warehouse component know about it? Otherwise, data collectors will continue to fetch data and passing it on to an ETL component that is supposed to function, but either went missing or continuously crashing. Data warehouse will also expect the next batch of data to be loaded from the ETL, but these data obviously won&#8217;t be coming anytime soon.</li>
</ul>
<p>Now, on to the concept of Quorum Sensing:</p>
<blockquote><p><strong>Quorum sensing</strong> is a type of decision-making process used by decentralized groups to coordinate behavior&#8230;</p>
<p>&#8230; Quorum sensing can function as a decision-making process in any decentralized system, as long as individual components have (a) a means of assessing the number of other components they interact with and (b) a standard response once a threshold number of components is detected.</p>
<p>&#8230; Bacteria that use quorum sensing constantly produce and secrete certain <a title="Signaling molecules" href="http://en.wikipedia.org/wiki/Signaling_molecules">signaling molecules</a> (called <em><a title="Autoinducer" href="http://en.wikipedia.org/wiki/Autoinducer">autoinducers</a></em> or <em><a title="Pheromones" href="http://en.wikipedia.org/wiki/Pheromones">pheromones</a></em>). These bacteria also have a <a title="Receptor" href="http://en.wikipedia.org/wiki/Receptor">receptor</a> that can specifically detect the signaling molecule (<a title="Inducer" href="http://en.wikipedia.org/wiki/Inducer">inducer</a>). When the inducer binds the receptor, it activates <a title="Transcription (genetics)" href="http://en.wikipedia.org/wiki/Transcription_%28genetics%29">transcription</a> of certain <a title="Genes" href="http://en.wikipedia.org/wiki/Genes">genes</a>, including those for inducer synthesis. There is a low likelihood of a bacterium detecting its own secreted inducer. Thus, in order for gene transcription to be activated, the cell must encounter signaling molecules secreted by other cells in its environment.</p>
<p>Read more about Quorum Sensing from <a href="Bacteria that use quorum sensing constantly produce and secrete certain signaling molecules (called autoinducers or pheromones). These bacteria also have a receptor that can specifically detect the signaling molecule (inducer). When the inducer binds the receptor, it activates transcription of certain genes, including those for inducer synthesis. There is a low likelihood of a bacterium detecting its own secreted inducer. Thus, in order for gene transcription to be activated, the cell must encounter signaling molecules secreted by other cells in its environment.">this wikipedia page</a>.</p></blockquote>
<p>What if we introduce the concept of <strong>Quorum Sensing</strong> &#8211; that is, if we introduce a means for each component to query the status of the network as a whole and decide what to do. For example, each component could send a broadcast to the network that simply say &#8220;identify yourself&#8221;, and upon receiving this message, each component could say &#8220;aye, I am component X&#8221;.</p>
<p>If we do this over a broadcast channel (e.g. a <strong>topic</strong> on a message bus) then each component will receive a list of other components attached to that messaging backbone. We can then build basic behavior around this model, such as: Within Data collectors, pause execution and send alert if you notice that ETL is out of action or not responding (or responding with a bad status). I&#8217;ve yet to do some experiments on this, but I suspect we can do some serious error-recovery mechanism if we adopt this model.</p>
<p>In short, this model could be seen as &#8220;each component watching every other component&#8217;s back&#8221;</p>
<p>Another use of Quorum Sensing would be simultaneous start without explicit trigger. That is, the start of a processing event is not triggered by an administration component, but rather by the each component checking if everyone else is there. But this concept introduces another layer of complexity involved, such as which business rule / use case to trigger, which workflow, and so on.</p>
<p>Anyway, enough speculation for now. When I have experimented with this concept further, I&#8217;ll post more update.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=dd1d05ed-87b3-81be-bf41-d7a67681e532" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2009/08/modelling-distributed-systems-on-nature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

