# Reverse Ajax with RoR - what is the best option?

**URL:** <https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757>\
**Category:** Rails\
**Created:** [September 16, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757 "2008-09-16T21:29:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 16, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757/1 "2008-09-16T21:29:28Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 16, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757/2 "2008-09-16T21:45:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 16, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757/3 "2008-09-16T22:07:01Z")

</div>

On Tue, Sep 16, 2008 at 3:44 PM, Bill W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 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

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 16, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757/4 "2008-09-16T23:42:17Z")

</div>

Hi Jason,

Jason R. wrote:

> On Tue, Sep 16, 2008 at 3:44 PM, Bill W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> 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

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 20, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757/5 "2008-09-20T20:41:07Z")

</div>

Hi,

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

Cheers.

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 17, 2008, 11:42am UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757/6 "2008-09-17T11:42:54Z")

</div>

Thanks guys!

This requires extra investigation (from my side at least 🙂

Comparison between juggernaut and comet

> **[Purchase Intent Data for Enterprise Tech Sales and Marketing | TechTarget](https://www.techtarget.com/)**
>
> Identify, influence and engage active buyers in your tech market with TechTarget's purchase intent insight-powered solutions. Activity matters.

Juggernaut is good:

> **[railspikes.com](http://ww38.railspikes.com/2007/6/27/juggernaut)**
>
> Ruby on Rails

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

There is also this cometd stuff:  
[http://cometdproject.dojotoolkit.org/](http://cometdproject.dojotoolkit.org/)

Any thoughts will be helpfull!

Cheers.

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 21, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/reverse-ajax-with-ror-what-is-the-best-option/148757/7 "2008-09-21T14:10:40Z")

</div>

On 20 Sep 2008, at 20:41, Pod C. wrote:

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

You could also consider Juggernaut: [http://juggernaut.rubyforge.org/](http://juggernaut.rubyforge.org/)

Best regards

Peter De Berdt
