Rails - 同步 - Faye、Juggernaut、Cool.io、普通的旧 eventmachine
我需要同步并且有太多的选择。似乎可用的选项包括:Faye、Juggernaut、Cool.io、普通的旧 eventmachine
有什么建议吗?什么是最受欢迎的,尤其是在 RoR 社区中?
感谢您对您的建议进行任何解释。
I have a need for syncing and have choice overload. It seems like the options available include: Faye, Juggernaut, Cool.io, plain old eventmachine
Any suggestions? What are the most popular, especially in the RoR community?
Thanks for any explanation around your suggestion.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚在我的一个应用程序中实现了 Juggernaut,我认为它非常棒。它使用 Redis 来实现其 pub/sub 功能,并使用 Socket.IO 来最大限度地提高浏览器/移动支持。
这里有一个将其与 Faye 进行比较的讨论。我不相信 Faye 使用 Socket.IO,这是我选择 Juggernaut 的原因之一。我还喜欢 Juggernaut 的简单性,因为它符合我的特定用例。
Juggernaut 使用 Node.js 作为服务器,使其易于扩展,并提供 Ruby gem,使将消息发布到 Redis 变得轻而易举。
这是快速帖子在 Ubuntu 10.04 上进行设置。
您还可以查看 Pusher,这是一项可以为您完成这一切的服务。
I just implemented Juggernaut in one of my apps and I think it's awesome. It uses Redis for its pub/sub features and Socket.IO to maximise browser/mobile support.
Here's a discussion comparing it with Faye. I don't believe Faye uses Socket.IO which is one of the reasons I chose Juggernaut. I also liked the simplicity of Juggernaut as it matched my particular use case.
Juggernaut uses Node.js for its server making it easily scalable and provides a Ruby gem that makes publishing messages onto Redis a piece of cake.
Here's a quick post on setting it up on Ubuntu 10.04.
You could also look at Pusher which is a service that does it all for you.
我在一个试点项目中使用了 http://socket.io/ 来持续更新 Web 客户端(例如在聊天应用程序中) )。 ruby 服务器实现在这里: https://github.com/markjeee/Socket.IO-rack< /a>.它有点“原始”,但工作正常。它基于Thin、Rack和EventMachine,需要redis进行操作。
最大的优势是可用协议的数量,因此即使您使用的是旧浏览器,它也应该可以正常工作。我还没有做过任何基准测试,但根据成分,它应该足够快。
I've used http://socket.io/ in a pilot project for continuously updating web clients (like in chat application). The ruby server implementation is here: https://github.com/markjeee/Socket.IO-rack. It is somewhat 'raw' but works OK. It is based on Thin, Rack and EventMachine and requires redis for operation.
The big advantage is the number of available protocols so even if you have an old browser it should just work. I haven't done any benchmarks but based on ingredients it should be fast enough.