Reverse Ajax with RoR - what is the best option?

Hi,

I would like to introduce reverse ajax to one of my projects.
Anyone has any opinions on what is the best approach for a serious
deployment? Comet, Juggernaut, orbitd, cometd, ...?

I would appreciate opinions on this issue.

Thanks!

comopasta Gr wrote:

I would like to introduce reverse ajax to one of my projects.
Anyone has any opinions on what is the best approach for a serious
deployment? Comet, Juggernaut, orbitd, cometd, ...?

I would appreciate opinions on this issue.

Client-polling is easy enough with periodically_call_remote. I don't
believe that Rails' architecture would support Server-pushing. Maybe
somebody will correct me though.

HTH,
Bill

I've used juggernaut in a few places now and it works great. Very
simple to setup and run.

I'd recommend staying away from any library that does this via
persistent HTTP connections, as those are known to be quite resource
heavy on both web browsers and web servers.

Jason

Hi Jason,

Jason Roelofs wrote:

>
> I don't believe that Rails' architecture would support Server-pushing.
> Maybe somebody will correct me though.

I've used juggernaut in a few places now and it works great. Very
simple to setup and run.

Thanks for correcting me! This looks _very_ interesting.

Best regards,
Bill

Thanks guys!

This requires extra investigation (from my side at least :slight_smile:

Comparison between juggernaut and comet
http://ajaxian.com/archives/juggernaut-comet-for-rails

Juggernaut is good:
http://railspikes.com/2007/6/27/juggernaut

Juggernaut is bad:
http://orbited.org/blog/2007/08/juggernaut-is-a-bad-idea/

There is also this cometd stuff:
http://cometdproject.dojotoolkit.org/

Any thoughts will be helpfull!

Cheers.

Hi,

Does anyone have any opinion on the approach described here?
http://www.danielcadenas.com/2008/08/reverse-ajax-and-prototype.html

Cheers.

You could also consider Juggernaut: http://juggernaut.rubyforge.org/

Best regards

Peter De Berdt