Skip to main content

LOTD #3: Rails 2.2 going multi-threaded

Posted by arungupta on August 19, 2008 at 6:26 AM PDT



Rails 2.2 is
slated to href="http://weblog.rubyonrails.org/2008/8/16/josh-peek-officially-joins-the-rails-core">become
multi-threaded. What does it mean for
JRuby users ? Charles Nutter explains it:



href="http://blog.headius.com/2008/08/qa-what-thread-safe-rails-means.html">Q/A:
What Thread-Safe Rails Means



One of the key points from the blog is:



Rails deployments on
JRuby will use 1/Nth the amount of memory they use
now, where N is the number of thread-unsafe Rails instances currently
required to handle concurrent requests. Even compared to green-threaded
implementations running thread-safe Rails, it willl likely use 1/Mth
the memory where M is the number of cores, since it can parallelize
happily across cores with only "one" instance.




NetBeans
development and GlassFish
deployment already provide an href="http://developers.sun.com/appserver/reference/techart/rails_gf/">ideal
environment for Rails deployment.



All previous entries in this series are archived at href="http://blogs.sun.com/arungupta/tag/lotd">LOTD.



Technorati: lotd
rubyonrails
jruby href="http://technorati.com/tag/ruby">ruby href="http://technorati.com/tag/netbeans">netbeans
glassfish

Related Topics >>