<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[kakapo's nest]]></title> 
<link>http://www.kakapo.cn/blog/index.php</link> 
<description><![CDATA[My Technical Knowledge Management System]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[kakapo's nest]]></copyright>
<item>
<link>http://www.kakapo.cn/blog/read.php?169</link>
<title><![CDATA[利用Gearman架构分布式lamp计算服务]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Gearman]]></category>
<pubDate>Wed, 28 Jul 2010 05:36:00 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?169</guid> 
<description>
<![CDATA[ 
	Gearman是一种分布式的计算技术，一种可以发送任务给其他服务器，或者进程的通用的应用框架，比消息队列系统,web service更高级。<br/><br/>特点：开源，简单快速，多语言支持，跨平台，无单点故障<br/><br/>用途：<br/>1、搭建分布式的应用环境；<br/>2、整合多语言的系统；<br/>3、提供同步或者异步的队列机制；<br/>4、提供并行计算支持<br/><br/>架构图<br/><a href="http://www.kakapo.cn/blog/attachment.php?fid=16" target="_blank"><img src="http://www.kakapo.cn/blog/attachment.php?fid=16" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>Gearman本身不做计算，只是启用了守护进程接收来自client端和worker端的消息，它并不push消息，而是等着client端和worker端来pull，并可持续的保存消息队列。<br/><br/>流程图<br/><a href="http://www.kakapo.cn/blog/attachment.php?fid=17" target="_blank"><img src="http://www.kakapo.cn/blog/attachment.php?fid=17" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>worker其实不一定需要一直是作为守护进程去接收来自server端的消息，任何时候启动worker，它都可以主动去server端接收任务，并处理。这可以理解为异步的过程。这跟web service是有很大的区别。<br/><br/><br/>负载均衡设计图<br/><a href="http://www.kakapo.cn/blog/attachment.php?fid=18" target="_blank"><img src="http://www.kakapo.cn/blog/attachment.php?fid=18" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><br/>Yahoo! 和Digg 于2008年对Gearman用C进行重写，并开发了很多语言的client和worker的APIs，并且还支持MySQL的UDF。<br/>安装和使用都非常简单，直接看快速入门，虽然是英文，也是很容易理解；<br/><br/>快速入门 <a href="http://gearman.org/index.php?id=getting_started" target="_blank">http://gearman.org/index.php?id=getting_started</a><br/><br/>官网:http://gearman.org<br/><br/><br/><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E5%2588%2586%25E5%25B8%2583%25E5%25BC%258F" rel="tag">分布式</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=distributed" rel="tag">distributed</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E5%25B9%25B6%25E8%25A1%258Cparallel" rel="tag">并行parallel</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E5%2586%2597%25E4%25BD%2599redundance" rel="tag">冗余redundance</a>
]]>
</description>
</item>
</channel>
</rss>