reel-rack is a simple Rack adapter for Reel, the "evented" web server based on Celluloid::IO: https://github.com/celluloid/reel-rack https://github.com/celluloid/reel https://github.com/celluloid/celluloid-io Reel is based on an "evented" core similar to Goliath, but using Celluloid's core architectural components instead of EventMachine. Both systems use Fibers to "smooth over" the sort of callbacks you'd ordinarily run into in frameworks like EventMachine or Node.js, however unlike the em-synchrony system on which Goliath is based, Celluloid provides duck types for Ruby's socket classes, allowing "evented" operation of existing Ruby network libraries. Best of all, it can now run Rails! In the past we've held off on suggesting using Rails on top of Reel, primarily because the small stack size of Fibers on Ruby (MRI) 1.9 were not large enough to support the stack size of a Rails application and all its Rack middleware. This has been addressed in MRI 2.0, which now supports large Fiber stacks that should be suitable for running Rails. Give Reel on Rails a try and let us know how it goes!
on 2013-09-10 17:47