Rails - sync - Faye, Juggernaut, Cool.io, simple old eventmachine

I need synchronization and selective overload. It looks like the following options are available: Faye, Juggernaut, Cool.io, a plain old eventmachine

Any suggestions? What are the most popular, especially in the RoR community?

Thanks for any explanation around your suggestion.

+4
source share
2 answers

I just implemented Juggernaut in one of my applications, and I think this is awesome. It uses Redis for its pub / sub and Socket.IO functions to maximize browser / mobile phone support.

Here is a discussion comparing him to Fairy. I don't think Faye uses Socket.IO, which is one of the reasons I chose Juggernaut. I also liked the simplicity of the Juggernaut, as it matched my particular use case.

Juggernaut uses Node.js for its server, which makes it easily scalable and provides a Ruby stone that makes publishing posts to Redis a piece of cake.

Here's a quick setup post on Ubuntu 10.04.

You can also watch Pusher , which is a service that does all this for you.

+5
source

I used http://socket.io/ in a pilot project to constantly update web clients (for example, in a chat application). The ruby โ€‹โ€‹server implementation is done here: https://github.com/markjeee/Socket.IO-rack . It is somewhat raw, but it works fine. It is based on Thin, Rack, and EventMachine and requires redis to work.

The big advantage is the number of protocols available, so even if you have an old browser, it should just work. I have not done any tests, but based on the ingredients, it should be fast enough.

0
source

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


All Articles