rubyonrailsin

A Ruby and Rails talk

Thursday, March 25, 2010


Re: [Rails] complex alternative to Ajax polling ..

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

The problem with this seems to be that it won't work with rails
because each http request is serial.

And it would tie up a Mongrel/Passenger child during the request...
 
 How can I do this or which rails books, blogs, or websites might have
examples ? Can webrick or event machine be usefull here ?

I'd definitely say go with Event Machine.  I'm having great success using it for highly concurrent short lived requests (serving out of a cache and regenerated behind the scenes) - managing about 4,500 requests/second per process (and we run 1 process per CPU core and it scales fine!).

From my understanding of the architecture, it should also work for lots of open connections that aren't doing anything (non-blocking select based sockets).

Good luck.

Cheers,


Andy

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive