Skynet

          ---------- ---------- 我的新 blog : liukaiyi.cublog.cn ---------- ----------

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            112 Posts :: 1 Stories :: 49 Comments :: 0 Trackbacks

          首先 好東西
            http://kr.github.com/beanstalkd/


          其次 真的是好東西 支持 java , python ,perl,ruby,erlang 和我不知道的 語言
            官方的原文介紹:
          $ ./beanstalkd -d -l 10.0.1.5 -p 11300

          This starts up beanstalkd as a daemon listening on address 10.0.1.5, port 11300.

          Use It

          Here’s an example in Ruby (see the client libraries to find your favorite language).

          First, have one process put a job into the queue:

          beanstalk = Beanstalk::Pool.new(['10.0.1.5:11300'])

          beanstalk.put('hello')

          Then start another process to take jobs out of the queue and run them:

          beanstalk = Beanstalk::Pool.new(['10.0.1.5:11300'])

          loop do

          job = beanstalk.reserve

          puts job.body # prints "hello"

          job.delete

          end





          Thanks

          Many thanks to memcached for providing inspiration for simple protocol design and for the structure of the documentation. Not to mention a fantastic piece of software!




          整理 www.aygfsteel.com/Good-Game
          posted on 2009-10-28 19:21 劉凱毅 閱讀(2395) 評(píng)論(0)  編輯  收藏 所屬分類: python集群開發(fā)消息隊(duì)列
          主站蜘蛛池模板: 丹东市| 巴林右旗| 额济纳旗| 措勤县| 无锡市| 永嘉县| 合水县| 淮南市| 黄梅县| 库车县| 阿拉尔市| 洪江市| 梧州市| 喀什市| 甘肃省| 和政县| 巩留县| 遂宁市| 宜都市| 东安县| 梨树县| 金门县| 嘉定区| 朝阳市| 三原县| 平湖市| 中卫市| 定日县| 田东县| 启东市| 海晏县| 绍兴县| 崇文区| 安陆市| 楚雄市| 凤山市| 恭城| 麦盖提县| 连城县| 株洲县| 广水市|