[文章作者:张宴 本文版本:v1.0 最后修改:2011.04.21 转载请注明原文链接:http://blog.zyan.cc/httpsqs_1_6/]

  HTTPSQS(HTTP Simple Queue Service)是一款基于 HTTP GET/POST 协议的轻量级开源简单消息队列服务,使用 Tokyo Cabinet 的 B+Tree Key/Value 数据库来做数据的持久化存储。


  队列(Queue)又称先进先出表(First In First Out),即先进入队列的元素,先从队列中取出。加入元素的一头叫“队头”,取出元素的一头叫“队尾”。利用消息队列可以很好地异步处理数据传送和存储,当你频繁地向数据库中插入数据、频繁地向搜索引擎提交数据,就可采取消息队列来异步插入。另外,还可以将较慢的处理逻辑、有并发数量限制的处理逻辑,通过消息队列放在后台处理,例如FLV视频转换、发送手机短信、发送电子邮件等。

  HTTPSQS 具有以下特征:

  ● 非常简单,基于 HTTP GET/POST 协议。PHP、Java、Perl、Shell、Python、Ruby等支持HTTP协议的编程语言均可调用。
  ● 非常快速,入队列、出队列速度超过10000次/秒。
  ● 高并发,支持上万的并发连接,C10K不成问题。
  ● 支持多队列。
  ● 单个队列支持的最大队列数量高达10亿条。
  ● 低内存消耗,海量数据存储,存储几十GB的数据只需不到100MB的物理内存缓冲区。
  ● 可以在不停止服务的情况下便捷地修改单个队列的最大队列数量。
  ● 可以实时查看队列状态(入队列位置、出队列位置、未读队列数量、最大队列数量)。
  ● 可以查看指定队列ID(队列点)的内容,包括未出、已出的队列内容。
  ● 查看队列内容时,支持多字符集编码。
  ● 源代码不超过800行,适合二次开发。

  HTTPSQS 1.6 版本更新内容:










  4、改进了 ps 命令查看 httpsqs 的用户体验:




  6、改为静态编译,编译完成后的 HTTPSQS 二进制文件,运行不再依赖 Libevent、Tokyocabinet 动态链接库。

  7、HTTPSQS 旧版本如何升级到 HTTPSQS 1.6 版本:

  HTTPSQS 1.6 版本完全兼容以前版本:编译安装 HTTPSQS 1.6,替换旧的 HTTPSQS,然后“kill httpsqs的进程ID”,按原来的启动参数启动 HTTPSQS 即可,数据完全兼容。


  1、客户端代码不再集成在 HTTPSQS 源码包中,可通过链接自行查看。

  HTTPSQS 1.6 版本的详细使用说明,请访问: http://blog.zyan.cc/httpsqs/

技术大类 » Cache与存储 | 评论(56) | 引用(0) | 阅读(58394)
Oakley vault Email Homepage
2012-7-2 16:12
When the term sunglasses come up in any conversation, it is generally very quickly followed by the brand name of Oakley Vault. They have been one of the leading manufacturers of Oakley Sunglasses for years and they are by far the most popular brand that is sought after on Oakleyvault20l2.com today.
coachoutlet Email Homepage
2012-8-5 21:44
coach outlet online http://www.coachoutlets2u.org/.
lirourou77 Email Homepage
2012-9-5 13:03
in a new mechanism of system to replace the old in medicine have medical mechanism, which is the cheap designer handbags      
cattle nets", and click "online voting" found that, the original vote is paid, 1 yuan 1 ticket.

"If you have to vote online, by pay treasure, net silver or cell phone pays fee." HeXianSheng cheap designer clothes        
said, let people will choose the doctors like this is a good thing, but if will pay it is stale, "so, mean who's money, who can election?"

【 operation 】 can buy tickets into batch quantity
discount designer handbags        

According to HeXianSheng provide web site, reporter found "purple cattle nets", "popular activities" column in the article 1 is: ningxiang county "open the door the medical" advanced unit and "top ten doctors, top ten nurses, top ten technicians" selection activities to officiall
Coach Email Homepage
2012-11-3 14:32
"The Coach Outletengines that will likely power the J-31 we do know a bit mor.Coach Outlet  Those engines were actually revealed at the Zhuhai showCoach Outlet in 2008," Fisher said referring to an annual China air show. He beCoach Outletlieves the new J-31 engine is undergoing preliminary
磨延城 Email Homepage
2013-10-21 18:03
django Email Homepage
2013-11-30 19:12
Uggs Sale the ideal idea Coach Outlet Online  enough time to search for many of reduction Ugg boot. Like big portions? If you began ready your apartment, Coach Outlet  it's always best to consider the most effective way direct to the stage it could be to utilise your inventory throughout Coach Factory Outlet  concern, or maybe you basically won't destination stuff not enough.we're anti- whitening tray because Coach Outlet Online  i will be enjoy just get germ dog breeders
Steven Email Homepage
2015-3-19 02:24
Thank you for this post Weight Loss Tea
steven Email Homepage
2015-3-20 05:32
应用公园 Homepage
2015-11-27 15:18
Economics Writing Services Homepage
2020-3-9 20:52
Many students opt to buy custom economics writing services since most writing companies are good in economics essay writing services and economics coursework writing services.
Personal Statement Writing Services Homepage
2020-5-14 13:09
Personal statement & editing services have become very popular for students searching for college admission writing services as they engage the best online Personal Statement Writing Services. https://researchpapers247.com/personal-statement-writing-services/
Paramedic Science Writing Services Homepage
2020-7-22 19:20
Paramedic science assignment writing services have become very popular for students paramedic coursework writing services as they engage the best online Paramedic Science Writing Services.https://researchpapers247.com/paramedic-science-writing-services/
Online Article Review Writing Services Email Homepage
2020-8-24 17:57
Custom article review writing services are not hard to come across for those in need of Online Article Review Writing Services and article review service online.
Article Review Writing Service Email Homepage
2020-9-21 19:04
Professional articles review services are essential and they have become very popular for those seeking custom article review writing help since most of them seek Article Review Writing Service.
分页: 3/3 第一页 上页 1 2 3 最后页
昵称   密码   游客无需密码
网址   电邮   [注册]