Nexus Weblogging
ChinaonRails
You are here ChinaonRails > 架构 > > 非阻塞的IO stack性能

bd7lx


58.278%

disconnected
登录后回复主题 | 跳到回复(13)

非阻塞的IO stack性能

... by bd7lx ... 3 月 19 天前 ... 386 次点击

http://oldmoe.blogspot.com/2008/08/case-for-nonblocking-ruby-stack.html



EventMachine + Evented PostgreSQL + Fibers


http://chinaonrails.com/q/EventMachine

同步、异步、阻塞和非阻塞的概念

在进行网络编程时,常常见到同步、异步、阻塞和非阻塞四种调用方式:
http://zhanjun.net/?q=node/7

1 - 8-21 8:37
bd7lx 楼主 深圳
http://www.espace.com.eg/neverblock



NeverBlock is a Ruby library that allows developers to write non-blocking, concurrent code in a transparent manner. Meaning that you will keep coding in your traditional ways while you get the benefit of non-blocking IO operations.

如何做到的呢?
是Ruby1.9 Fibers (Coroutines)发挥出神威!

可扩展的日子,快点来吧,让铁道来拥抱

3 - 8-25 8:32
bd7lx 楼主 深圳
http://www.espace.com.eg/neverblock/blog/2008/08/24/neverblock-and-activerecord-concurrent-db-access-without-threads/

AR活动记录的新连接方式,多线程连接


PostgreSQL的AR新adapter

下载
http://github.com/espace/activerecord-neverblock-postgresql-adapter/tree/master
4 - 8-26 8:31
bd7lx 楼主 深圳
http://www.rubyinside.com/neverblock-easy-non-blocking-io-in-ruby-1083.html

eSpace得到了普遍的关注,这个来自古老埃及的web2.0开发团队
5 - 8-29 8:41
bd7lx 楼主 深圳
Using Ruby Fibers for Async I/O: NeverBlock and Revactor

http://www.infoq.com/articles/fibers-neverblock-revactor

Infoq的引线穿针把NeverBlock and Revactor联系起来



http://chinaonrails.com/topic/view/431.html

Neverblock也支持了mysql
http://www.espace.com.eg/neverblock/blog/2008/08/28/neverblock-mysql-support/
6 - 9-1 10:45
bd7lx 楼主 深圳
http://github.com/espace/mysqlplus/tree/master

a new MySQL driver.
Mysqlplus.

The driver builds on the original MySQL C extension but adds
two important features

1 - Asynchronous command processing support
2 - Threaded access support (a nice side effect of feature #1)
7 - 9-4 9:19
bd7lx 楼主 深圳
http://oldmoe.blogspot.com/2008/09/building-never-blocking-rails-making.html



neverblock得到了广泛的关注

应该记住这个来自埃及和拳王一样的名字

阿 里

提升速度12x
8 - 9-4 9:46
IceskYsl 深圳
其使用的是PostgreSQL和ruby1.9,性能非常可观,值得期待。
mysql版本的mysqlplus也已经发布,接下来就是需要等待ruby1.9和rails2.2的到来。
10 - 9-16 11:24
404 深圳
InfoQ被封了?不挂代理打不开。。。
给版主Gtalk留言了还没消息-_-#
11 - 9-16 12:57
bd7lx 楼主 深圳
http://github.com/tqbf/asymy/tree/master

里面提到

另一个致力于为Ruby的MySQL连接增加异步操作能力的工程是Asymy
13 - 11-14 11:25
bd7lx 楼主 深圳
http://oldmoe.blogspot.com/2008/11/ruby-networking-on-steroids.html

Expect the socket support to be officially added to NeverBlock soon.
看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
电子邮件或昵称
密码
© 2007 A Jesse Cai Production   -   About   -   京ICP备07020911号
a site powered by Project Babel