浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  12653 随笔 :: 2 文章 :: 617 评论 :: 608万 阅读

matadon/mizuno

Mizuno is a set of Jetty-powered running shoes for JRuby/Rack.

To use Mizuno with your Rack app:

gem install mizuno
cd /path/to/my/rack/app
mizuno

...and you're off and running. You don't need to set up a Java web
container for your Rack application to run under JRuby, because Mizuno
works just like Mongrel, WEBRick, Thin, or any other standard Rack
handler.

Mizuno is the fastest option for Rack applications on JRuby:

Mizuno: 6106.66 req/s (mean)
Jetty (via jruby-rack): 2011.67 req/s (mean)
Mongrel: 1479.15 req/sec (mean)

Mizuno also supports asynchronous request handling, via the Java Servlet
3.0 asynchronous processing mechanism

All the speed comes from Jetty 7; Mizuno just ties it to Rack through
JRuby's Ruby/Java integration layer.

Note that Mizuno is NOT a direct replacement for jruby-rack or Warbler,
because it doesn't produce WAR files or make any attempt to package a
Rack application for installation in a Java web container.

There's also a few features that I have yet to implement:

  1. Route Jetty's logs into Rack::Logger.
  2. Add hooks for realtime monitoring of server performance.
  3. Fast restarts of the Rack application.

Mizuno is licensed under the Apache Public License, version 2.0; see
the LICENSE file for details, and was developed on behalf of
Mad Wombat Software

Jetty is dual-licensed under the Eclipse and Apache open-source
licenses
, and its
development is hosted by the Eclipse
Foundation

 


posted on   lexus  阅读(174)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示