c10k paradigm

Alexandre Riveira alexandre at objectdata.com.br
Tue Apr 16 15:11:08 UTC 2013

> "lock slowness" - which version of Ruby is this?
ruby 1.9.3p385 (2013-02-06 revision 39114) [i686-linux]
> Did you modify your app to use app.deferred? + TryDefer as I pointed
> you to in the other message?
>> Could it be that  the controllers  of the  rails  would run without
>> party  pool  threads  only with  EventMachine  (C10K) while others
>> would use the  controller  with  EventMachine thread pool  (erp)?
> That should allow some rails controllers to use threads
> (app.deferred? => true) while others do not use threads
> (app.deferred? => false).  Keep in mind this is not a very common
> configuration, so not many people have experience with it in
> production.

Your suggestion seems to be better, but I'm sorry I did not understand 
where I put this method, the controller would be as below?

class HomeController < ApplicationController
   def deferred?


Alexandre Riveira

More information about the rainbows-talk mailing list