Rails 3: Real-time Server Load?

I am trying to write a Rails 3 application in which a server can transfer data to multiple clients in real time.

I heard about Juggernaut, but I also heard that it does not work with Rails 3. I tried APE (AJAX Push Engine), but I was not very lucky with it.

I am very new to Rails. I cannot find many manuals that deal with real-time pushing, and Rails 3. I was looking for a free, simple (if possible) solution for this. If anyone could point me in the right direction, I would really appreciate it.

+6
source share
5 answers

Check out Faye: http://faye.jcoglan.com/ - I hear really good things about it.

If you are looking for a hosted solution, I have used Pusher http://pusher.com/ in the past and have loved it. I converted a site that used an ajax poll for the pusher after about 30 minutes.

+5
source

You can try juggernaut to do what you want.

Github repository: https://github.com/maccman/juggernaut Example application with juggernaut: https://github.com/maccman/holla

Enjoy :)

+1
source

Have you looked at http://socket.io ? It manages the push functions for Juggernaut, if I remember correctly.

There seems to be a library for Rails here: https://github.com/markjeee/Socket.IO-rack - it says 2.3+, which I assume 3 is fine (although I'm not a guy from Ruby, so I would not know).

0
source

According to Pusher’s suggestion, RMSN is an abbreviation for substitution that I wrote with NowJS. https://github.com/leppert/RMSN

0
source

Starting with Rails 4, you can also use Entangled:

https://github.com/so-entangled/rails

Basically, it synchronizes all data between client and server in real time through web sockets. It is easy to configure, so give it a try.

0
source

Source: https://habr.com/ru/post/897129/


All Articles