[Rails] Re: a small doublt

2008-10-12 Thread Pokkai Dokkai
Thanks for all your reply now i understand. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: a small doublt

2008-10-08 Thread Robert Walker
is a single thread(ruby green thread) created for everyone request? I'm going to go out on a limb here since no others have responded, but my understanding (at least in the current version of Rails) is no. I don't believe than a thread is created at all. It is my understanding that the Rails

[Rails] Re: a small doublt

2008-10-08 Thread Michael Sofaer
Yes, mongrel_cluster is the way to go if you want to handle multiple concurrent requests. I recommend nginx over Apache for load balancing them, if you have the choice. Threading is indeed hard, but it helps immensely with scaling problems. That being said, Ruby threading is not very good at

[Rails] Re: a small doublt

2008-10-08 Thread Frederick Cheung
On 8 Oct 2008, at 18:22, Michael Sofaer [EMAIL PROTECTED] wrote: Yes, mongrel_cluster is the way to go if you want to handle multiple concurrent requests. I recommend nginx over Apache for load balancing them, if you have the choice. Threading is indeed hard, but it helps immensely with

[Rails] Re: a small doublt

2008-10-08 Thread Frederick Cheung
On 8 Oct 2008, at 17:32, Robert Walker [EMAIL PROTECTED] s.net wrote: is a single thread(ruby green thread) created for everyone request? I'm going to go out on a limb here since no others have responded, but my understanding (at least in the current version of Rails) is no. I don't

[Rails] Re: a small doublt

2008-10-08 Thread Robert Walker
Of course to see the most benefit you'll need a ruby implementation with native threads, like jruby. Or Ruby 1.9 YARV if I'm not mistaken? Frederick Cheung wrote: On 8 Oct 2008, at 18:22, Michael Sofaer [EMAIL PROTECTED] wrote: ...snip... Fred -- Posted via http://www.ruby-forum.com/.

[Rails] Re: a small doublt

2008-10-08 Thread Frederick Cheung
On 8 Oct 2008, at 19:52, Robert Walker wrote: Of course to see the most benefit you'll need a ruby implementation with native threads, like jruby. Or Ruby 1.9 YARV if I'm not mistaken? IIRC ruby 1.9 is a bit special - threads are mapped to native threads, but there's some giant mutex