# Server push for rails? or do I need java?

**URL:** <https://www.ruby-forum.com/t/server-push-for-rails-or-do-i-need-java/89125>\
**Category:** Rails\
**Created:** [March 17, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/server-push-for-rails-or-do-i-need-java/89125 "2007-03-17T14:38:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [March 17, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/server-push-for-rails-or-do-i-need-java/89125/1 "2007-03-17T14:38:03Z")

</div>

Hi!

Almost for sure lots of you guys know Comet, also referred to as an  
‘server-push technology’.

The moste efficient ‘server push’ solution I know is jetty + nio +  
continuations –

```
unfortunately you must use Java for it!!!!!

```

Also there is Juggernaut for Rails, but it’s useless for me because of  
firewall restrictions (you need at least another port which is not 80,  
even  
443 is a problem) and Flash Plugin in mandatory.

So, does anybody know if there is an implementation that saves me from  
using  
Java for the web UI??

Please _whine_

I am so sick of Java web frameworks… _aaargghh_

Regards  
Peter

---

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [March 17, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/server-push-for-rails-or-do-i-need-java/89125/2 "2007-03-17T16:30:20Z")

</div>

Peter E. wrote:

> So, does anybody know if there is an implementation that saves me from  
> using  
> Java for the web UI??

Look up how GMail’s Chat does it. I have heard they leave the Ajax  
socket  
open.

BTW if \>90% of the installed computers have Flash, what’s wrong with  
using  
it?

–  
Phlip  
[Redirecting...](http://www.greencheese.us/ZeekLand) ← NOT a blog!!!

---

<div class="post-metadata">

**Author:** ![peterbe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Post date:** [March 18, 2007, 1:52am UTC](https://www.ruby-forum.com/t/server-push-for-rails-or-do-i-need-java/89125/3 "2007-03-18T01:52:24Z")

</div>

On 3/17/07, Phlip [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> BTW if \>90% of the installed computers have Flash, what’s wrong with using  
> it?

Flash itself is not a problem. But firewall and NAT are two main  
problems when using Juggernaut. If somebody can bounce UDP packets  
through flash code, the way Skype and gtalk do for punching holes in  
firewall, it may as well work. But i don’t think its viable.

On the other hand, on mongrel list, long time back, somebody tried to  
implement a basic comet kinda thingy. He reported it sorta worked,  
but couple of problems were/are there.

I think basecamp also uses some kinda push to implement chat through  
web interface. I am not sure, how they are doing it. Or I am not  
even totally sure, if they are pushing the messages to the browser.
