<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[张宴的博客]]></title> 
<link>http://zyan.cc/index.php</link> 
<description><![CDATA[Web系统架构与底层研发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[张宴的博客]]></copyright>
<item>
<link>http://zyan.cc/httpsqs_1_6/</link>
<title><![CDATA[轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Cache与存储]]></category>
<pubDate>Thu, 21 Apr 2011 10:12:37 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/</guid> 
<description>
<![CDATA[ 
	　　[文章作者：张宴 本文版本：v1.0 最后修改：2011.04.21 转载请注明原文链接：<a href="http://blog.zyan.cc/httpsqs_1_6/" target="_blank">http://blog.zyan.cc/httpsqs_1_6/</a>]<br/><br/>　　HTTPSQS（HTTP Simple Queue Service）是一款基于 HTTP GET/POST 协议的轻量级开源简单消息队列服务，使用 Tokyo Cabinet 的 B+Tree Key/Value 数据库来做数据的持久化存储。<br/><br/>　　<span style="font-size: 14px;"><span style="color: #FF0000;">项目网址</span>：<a href="http://code.google.com/p/httpsqs/" target="_blank">http://code.google.com/p/httpsqs/</a></span><br/>　　<span style="font-size: 14px;"><span style="color: #FF0000;">使用文档</span>：<a href="http://blog.zyan.cc/httpsqs/" target="_blank">http://blog.zyan.cc/httpsqs/</a></span><br/>　　<span style="font-size: 14px;">使用环境：</span>Linux（同时支持32位、64位操作系统，推荐使用64位操作系统）<br/>　　<span style="font-size: 14px;">软件作者：</span>张宴<br/><br/>　　队列（Queue）又称先进先出表（First In First Out），即先进入队列的元素，先从队列中取出。加入元素的一头叫“队头”，取出元素的一头叫“队尾”。利用消息队列可以很好地异步处理数据传送和存储，当你频繁地向数据库中插入数据、频繁地向搜索引擎提交数据，就可采取消息队列来异步插入。另外，还可以将较慢的处理逻辑、有并发数量限制的处理逻辑，通过消息队列放在后台处理，例如FLV视频转换、发送手机短信、发送电子邮件等。<br/><br/>　　<strong>HTTPSQS 具有以下特征：</strong><br/><br/>　　● 非常简单，基于 HTTP GET/POST 协议。PHP、Java、Perl、Shell、Python、Ruby等支持HTTP协议的编程语言均可调用。<br/>　　● 非常快速，入队列、出队列速度超过10000次/秒。<br/>　　● 高并发，支持上万的并发连接，<a href="http://www.kegel.com/c10k.html" target="_blank">C10K</a>不成问题。<br/>　　● 支持多队列。<br/>　　● 单个队列支持的最大队列数量高达10亿条。<br/>　　● 低内存消耗，海量数据存储，存储几十GB的数据只需不到100MB的物理内存缓冲区。<br/>　　● 可以在不停止服务的情况下便捷地修改单个队列的最大队列数量。<br/>　　● 可以实时查看队列状态（入队列位置、出队列位置、未读队列数量、最大队列数量）。<br/>　　● 可以查看指定队列ID（队列点）的内容，包括未出、已出的队列内容。<br/>　　● 查看队列内容时，支持多字符集编码。<br/>　　● 源代码不超过800行，适合二次开发。<br/><br/><hr/><br/>　　<strong>HTTPSQS 1.6 版本更新内容：</strong><br/><br/>　　<strong>一、服务器端：</strong><br/><br/>　　<strong>1、修正了定时将内存缓冲区内容同步到磁盘，有时候出现段错误，导致进程崩溃的BUG。</strong>感谢以下网友的反馈：<br/><br/>　　<a href="http://zyan.cc/attachment/201104/httpsqs_bug1_1.png" target="_blank"><img src="http://zyan.cc/attachment/201104/httpsqs_bug1_1.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　<a href="http://zyan.cc/attachment/201104/httpsqs_bug1_2.png" target="_blank"><img src="http://zyan.cc/attachment/201104/httpsqs_bug1_2.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　<a href="http://zyan.cc/attachment/201104/httpsqs_bug1_3.png" target="_blank"><img src="http://zyan.cc/attachment/201104/httpsqs_bug1_3.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><hr/><br/>　　<strong>2、修正了判断队列已满，遗漏的一种情况。</strong>感谢以下网友的反馈：<br/><br/>　　<a href="http://zyan.cc/attachment/201104/httpsqs_bug2_1.png" target="_blank"><img src="http://zyan.cc/attachment/201104/httpsqs_bug2_1.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　<a href="http://zyan.cc/attachment/201104/httpsqs_bug2_2.png" target="_blank"><img src="http://zyan.cc/attachment/201104/httpsqs_bug2_2.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><hr/><br/>　　<strong>3、改为父子进程模式，生产环境稳定性更高。</strong><br/><br/>　　<strong>4、改进了 ps 命令查看 httpsqs 的用户体验：</strong><br/><br/>　　<a href="http://zyan.cc/attachment/201104/httpsqs_m_w.gif" target="_blank"><img src="http://zyan.cc/attachment/201104/httpsqs_m_w.gif" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><hr/><br/>　　<strong>5、增加了密码校验功能（通过以下启动参数设置密码，通过URL参数“/?auth=密码”访问）：</strong><br/><br/>　　<a href="http://zyan.cc/attachment/201104/httpsqs_auth.gif" target="_blank"><img src="http://zyan.cc/attachment/201104/httpsqs_auth.gif" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><hr/><br/>　　<strong>6、改为静态编译，编译完成后的 HTTPSQS 二进制文件，运行不再依赖 Libevent、Tokyocabinet 动态链接库。</strong><br/><br/><hr/><br/>　　<strong>7、HTTPSQS 旧版本如何升级到 HTTPSQS 1.6 版本：</strong><br/><br/>　　HTTPSQS 1.6 版本完全兼容以前版本：编译安装 HTTPSQS 1.6，替换旧的 HTTPSQS，然后“kill httpsqs的进程ID”，按原来的启动参数启动 HTTPSQS 即可，数据完全兼容。<br/><br/><hr/><br/>　　<strong>二、客户端：</strong><br/><br/>　　<strong>1、客户端代码不再集成在 HTTPSQS 源码包中，可通过链接自行查看。</strong> <br/><br/><hr/><br/>　　<span style="font-size: 14px;"><span style="color: #FF0000;">HTTPSQS 1.6 版本的详细使用说明，请访问：</span> <a href="http://blog.zyan.cc/httpsqs/" target="_blank">http://blog.zyan.cc/httpsqs/</a></span><br/><br/><br/>Tags - <a href="http://zyan.cc/tags/httpsqs/" rel="tag">httpsqs</a> , <a href="http://zyan.cc/tags/http/" rel="tag">http</a> , <a href="http://zyan.cc/tags/queue/" rel="tag">queue</a> , <a href="http://zyan.cc/tags/queues/" rel="tag">queues</a> , <a href="http://zyan.cc/tags/sqs/" rel="tag">sqs</a> , <a href="http://zyan.cc/tags/memcacheq/" rel="tag">memcacheq</a> , <a href="http://zyan.cc/tags/memcachedb/" rel="tag">memcachedb</a> , <a href="http://zyan.cc/tags/activemq/" rel="tag">activemq</a> , <a href="http://zyan.cc/tags/starling/" rel="tag">starling</a> , <a href="http://zyan.cc/tags/amazonsqs/" rel="tag">amazonsqs</a> , <a href="http://zyan.cc/tags/tokyocabinet/" rel="tag">tokyocabinet</a> , <a href="http://zyan.cc/tags/simple/" rel="tag">simple</a> , <a href="http://zyan.cc/tags/service/" rel="tag">service</a> , <a href="http://zyan.cc/tags/%25E9%2598%259F%25E5%2588%2597/" rel="tag">队列</a> , <a href="http://zyan.cc/tags/%25E7%25AE%2580%25E5%258D%2595%25E9%2598%259F%25E5%2588%2597/" rel="tag">简单队列</a> , <a href="http://zyan.cc/tags/%25E6%25B6%2588%25E6%2581%25AF%25E9%2598%259F%25E5%2588%2597/" rel="tag">消息队列</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8212</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>huqq &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 21 Apr 2011 10:57:12 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8212</guid> 
<description>
<![CDATA[ 
	又更新了 顶一下
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8213</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>enjoy &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 21 Apr 2011 13:08:41 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8213</guid> 
<description>
<![CDATA[ 
	感谢发布，要去试用下：）
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8214</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>cha369 &lt;eyou80@gmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 21 Apr 2011 15:11:20 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8214</guid> 
<description>
<![CDATA[ 
	这个要顶，俺反应的问题也解决了
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8227</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>kalso &lt;kalso@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sat, 23 Apr 2011 06:22:44 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8227</guid> 
<description>
<![CDATA[ 
	顶起<br/>佩服啊佩服
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8229</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>quis &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 24 Apr 2011 02:05:14 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8229</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8230</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>吕滔 &lt;admin@lvtao.net&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 24 Apr 2011 03:35:20 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8230</guid> 
<description>
<![CDATA[ 
	这个必须得来支持了。。<br/>哈哈。。<br/><br/>因为马上就要用它了
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8235</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>Roderic &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 24 Apr 2011 10:55:16 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8235</guid> 
<description>
<![CDATA[ 
	一直在生产环境用httpsqs，没想到之前的一条回复，还是最终引起了老大的重视，感谢更新，生产环境已更新到最新版！
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8236</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>性感美女写真 &lt;372492394@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 25 Apr 2011 01:43:53 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8236</guid> 
<description>
<![CDATA[ 
	又是个高手···
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8241</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>美女 &lt;mzjinke01@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 25 Apr 2011 07:30:20 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8241</guid> 
<description>
<![CDATA[ 
	知之为知之，不知为不知·········我不是这方面的料，呵呵！菜鸟只可远观······
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8243</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>中药材 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 25 Apr 2011 14:16:58 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8243</guid> 
<description>
<![CDATA[ 
	好文章，学习了！！！！！！！！！
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8247</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>清凉美女 &lt;419524847@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 26 Apr 2011 07:24:33 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8247</guid> 
<description>
<![CDATA[ 
	谢谢楼主的大方分享
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8250</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>夜路黑人 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 27 Apr 2011 01:30:42 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8250</guid> 
<description>
<![CDATA[ 
	你好，我看来看去都不明白这队列有什么用，能把它在肖遥网的应用流程说一遍吗？
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8251</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>性感美女写真 &lt;372492394@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 27 Apr 2011 07:50:52 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8251</guid> 
<description>
<![CDATA[ 
	怎么没更新呢&nbsp;&nbsp; 期待ING··
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8258</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>美女超人 &lt;752656160@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 29 Apr 2011 02:24:57 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8258</guid> 
<description>
<![CDATA[ 
	我看到我 名字里面的两个字~··
]]>
</description>
</item><item>
<link>http://zyan.cc/httpsqs_1_6/#blogcomment8263</link>
<title><![CDATA[[评论] 轻量级开源简单队列服务 HTTPSQS 1.6 版本发布]]></title> 
<author>美女超人 &lt;752656160@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sat, 30 Apr 2011 01:28:47 +0000</pubDate> 
<guid>http://zyan.cc/httpsqs_1_6/#blogcomment8263</guid> 
<description>
<![CDATA[ 
	又更新了 顶一下
]]>
</description>
</item>
</channel>
</rss>