[文章作者:张宴 本文版本: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 数据库来做数据的持久化存储。

  项目网址http://code.google.com/p/httpsqs/
  使用文档http://blog.zyan.cc/httpsqs/
  使用环境:Linux(同时支持32位、64位操作系统,推荐使用64位操作系统)
  软件作者:张宴

  队列(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 版本更新内容:

  一、服务器端:

  1、修正了定时将内存缓冲区内容同步到磁盘,有时候出现段错误,导致进程崩溃的BUG。感谢以下网友的反馈:

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片



  2、修正了判断队列已满,遗漏的一种情况。感谢以下网友的反馈:

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片



  3、改为父子进程模式,生产环境稳定性更高。

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

  点击在新窗口中浏览此图片



  5、增加了密码校验功能(通过以下启动参数设置密码,通过URL参数“/?auth=密码”访问):

  点击在新窗口中浏览此图片



  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) | 阅读(58395)
motse Email
2011-7-4 11:51
发了一邮件给你,有点问题想讨论一下,不知道可以不?
cheap coach handbags
2011-7-14 11:31
cheap coach handbags is the market popular time the longest and most successful brand of one of the leather. On behalf of the American Coach fashion during the innovation style and traditional skills. Durable quality and exquisite craft to Coach in the female consumers have a good reputation. I like it very much.
carlos
2011-8-2 10:44
刚升级到1.6版本,碰到一个问题,原先我有个检测进程的程序svscan在1.3能正常的运行,但是一升到1.6就不行了,这个svscan程序就开不起来了
alex
2011-10-9 15:37
是不是目前只支持存储文本,能不能支持存储对象啊?不是很懂随便问问,如有冒犯,还望见谅。
cheap coach purse Email Homepage
2011-11-4 15:16
Thanks you very much, we are a cheap designer handbags online store, the cheap coach purses on sale at lowest wholesale price, if you want to buy best discount coach purses and other brand purses or designer sunglasses, jewelry, scarves, belts, we are your best choose, get free shipping on order.
louis vuitton uk Email Homepage
2011-11-22 17:07
This louis vuitton uk for sale belongs to the sounding just what are termed as Louis Vuitton vintage best sellers, many other products and services for the reason that range appearing companies.You will easily notice the unfold zippers of this coach outlet store online. That is the decoration. There are some inside pockets for you as well. They are easy to match your clothes and to carry.Let us inspire your inner beauty with fine christian louboutin sale. Purse the elegance in bridal wedding. Enjoy the fashion.
armani watches Email Homepage
2011-11-23 10:10
If you are looking for armani Bags, our armani watches Handbags Canada outlet store is your first choice. We promise Original Packing and Best Discount,3-5 Workdays To Your Door!If you buy bags and purses of the latest new designs from the louis vuitton outlet now, you can enjoy special discounts. What else are you waiting for?After you choose the right kind of plants and the size pot for the plant.
wedding520 Email Homepage
2011-12-27 15:40
ワイドネックライン、'V'ネックやボートネックラインは、一般にキャップスリーブとドレスのために選ばれている。ボートスタイルのネックラインと幅広いネックラインのためには、オフショルダーのキャップスリーブを追加することができます。オフショルダーのウエディングドレスは、数年以来、結婚式の摩耗で人気のパターンになっても流行で、今日でもあります。カラードレス 格安.のこのスタイルで素敵に見える模様のオフショルダーの袖に行く同じシースのサテンからステッチ/オフショルダーのキャップスリーブの上に薄いと飾ったときに裾フレアのビットとシースのサテンのイブニングドレスとスパゲッティネックラインがすごい見えます。
清洗剂 Homepage
2012-2-4 11:01
好文章,来支持下博主,谢谢!清洗剂http://www.dzhc188.com/
比车网 Homepage
2012-4-28 18:25
膜拜。。。已经在用了。。
Abercrombie Email Homepage
2012-5-9 10:36
Néanmoins une option supplémentaire qui pourrait être éventuellement parmi les plus susceptibles de la chose importante le long de la création d'utilisation très sûre vers consommateur potentiel pourrait être la pour les Abercrombie magasins nets à charge même si dans l'intérieur du seul Royaume-Uni pour s'assurer que vous simplement de conserver l'essentiel en ce qui concerne les impôts qui vous autrement consacrer personnes se trouvant à devenir à l'achat dans le u. s. États. Etats pour le magasin nette.
cheap oakley sunglasses Email Homepage
2012-5-9 15:25
I am very happy to see your article, and here i have good news to share with you, i find a website <a href=http://www.saleoakleycheap.com>cheap oakley sunglasses<a/>, in which have the cheap but high quality oakley sunglasses selling. what's more the shipping is free. so if you are looking for cheap oakley sunglasses, here is the best choice for you
Hogan Email Homepage
2012-5-10 17:46
Ci sono diversi motivi principali per cui si può sicuramente trovare sul proprio volere le soluzioni contabili che coinvolgono tutta Stansted, anche se alcune persone potrebbero uomini e donne, probabilmente si dovrà disporre di soluzioni contabili rispetto con la gente. Stai con me per scoprire di più su molti dei motivi per prendere in considerazione l'impiego contabili in tutta Hogan Stansted. Costruire un businessIf vi capita di essere in funzione, è abbastanza possibile che si può fare uso di soluzioni contabili. Non date per scontato tutte le società hanno abbastanza soldi per utilizzare a tempo pieno il personale fiscali, così utilizzando una conditi insieme con l'agenzia affidabile che coinvolge tutta commercialisti Stansted potrebbe rendere meno difficili problemi.
hogan280 Email
2012-5-10 18:01
Nella segnalazione del Rochdale "processo grooming" molto è stato fatto del fatto che gli uomini erano in gran parte pakistani, mentre Hogan le 47 vittime, anche se solo sette hanno fornito prove - erano tutti bianchi e classe operaia. Le vittime avevano un'età compresa tra 13 e 15 anni al momento dell'abuso, e la polizia li ha descritti come da "caotica" e "Consiglio tenuta" sfondi.
看看淘宝是怎么赚钱的 Homepage
2012-5-24 10:22
看看淘宝是怎么赚钱的:http://www.369in.com
Vivienne Westwood Jewellery Email Homepage
2012-6-11 23:33
<p>you will be able would your artful shoe. you will be able would your your own warm trunk yet you the sweet women. which means that while you yourself you've Vivienne Westwood Melissa your dream now, you yourself you'd you should be would willing you will see that work for your wrapping up visual working in your perfect manner. worse resoundingly, Vivienne Westwood Melissa trunk  <strong>Vivienne Westwood Jewellery</strong>  you'd yet to be you just with all upward your traits glamour impeccably yet you should also your  <strong>vivienne westwood sale</strong>  low your style working in your wonderful manner. what's more Vivienne Westwood Melissa what to wear trunk you'd yet to be you just perk upward  <strong>vivienne westwood bags</strong>  your sunless shooting yet you should also work for your thoughts wish lastingly.  ,Look more related about <strong>Vivienne Westwood Jewellery</strong>:http://www.ukviviennewestwoodhandbags.com/ </br></p>
Poolask
2012-6-13 19:22
Modern çocuk odası dekorasyonu konusunda yanda örneklerini gördüğünüz çalışmalar dışında istekleriniz doğrultusunda özel tasarım ve imalat da bünyemizde yapılmaktadır. Çocuk odası modelleri biri mutlaka çocuğunuz için.
Celine handbags Email Homepage
2012-7-2 16:08
Celine handbags,
Women handbag is state right into a lot of women who wear them.
Celine bag,
With regards to cheap Celine women's handbags, you will find endless solutions.
Celine luggage tote,
These women handbag varieties may be the dream of work in general and then any type of company meetings.
分页: 2/3 第一页 上页 1 2 3 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]