NeverBlockの周辺の動き
最近、
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.
LL futureの講演者控え室で、まつもとさん、高橋さんから、
その辺の話を伺う機会がありましたが、
NeverBlockはRuby-1.9普及の引き金になるかもしれない。
なぜなら、NeverBlockはRuby-1.9のFiberに依存したライブラリで、
Ruby-1.9が無いと利用できないからだ。
Building the Never Blocking Rails, Making Rails 12X Faster
They told you it can't be done, they told you it has no scale. They told you lies!
What if you suddenly had the ability to serve mutliple concurrent requests in a single Rails instance? What if you had the ability to multiplex IO operations from a single Rails instance?
No more what ifs. It has been done.
NeverBlockを使うとRailsが12倍速くなるらしい。
MySQLPlus: A Non-Blocking MySQL Driver for Ruby 1.8 and 1.9
MySQLPlus is billed as a new general purpose MySQL driver that supports "threaded access and async operations"
NeverBlockを使うために作られたMySQL用の新しいドライバらしい。
See Also