哪个持久&用于跨域(> 2)数据交换的轻量级队列消息传递与 Rails 集成?

发布于 2024-08-26 05:37:50 字数 479 浏览 3 评论 0原文

我正在寻找适合我需求的消息系统。你能帮助我吗 ?

  • 目前,不会有大量数据需要处理,但我不想以后受到限制......
  • 机器不仅仅是 Web 服务器,因此消息传递工具应该是轻量级的,即使处理不是速度非常快。
  • 当服务器上的某些数据发生变化时,所有服务器都应该拥有该信息并在本地进行处理。 (我应该在每个服务器上为每个服务器创建一个通道吗?)
  • 前端是在 Rails 上编写的,因此为了简化开发,有一个 gem/插件来管理通信和发送的数据非常重要。

此时:

  • RabbitMQ + workling 似乎符合我的需求。这是一个正确的选择吗?
  • ActiveMQ让我害怕,因为Java(我确实不太了解Java,但在我看来它是CPU消耗大户)
  • 其他人似乎没有他们那么成熟。

可能会有很多开发使用这种技术,所以我不能走错路!

谢谢你的帮助。

I'm looking for the right messaging system for my needs. Can you help me ?

  • For now, there won't be a huge amount of data to process, but I don't want to be limited later ...
  • The machines are not just web servers, so the messaging tool should be lightweight, even if processing is not very speed.
  • When some data change on a server, all servers should have the information and process it locally. (should I create one channel per server on each of them ?)
  • The frontend is written on Rails, so it is important, in order to simplify the development, that there is a gem / plugin to manage communications and data sent.

At this time :

  • RabbitMQ + workling seems to fit my needs. Could this be a right choice ?
  • ActiveMQ make me afraid, because of Java (I really don't know very well Java, but it seems to me to be big CPU consumer)
  • Others don't seem to be as mature as them.

There might be lot of development using this kind of technology, so I can't go to the wrong way !

Thank you for help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终遇你 2024-09-02 05:37:50

顺便说一句,我也非常喜欢 beanstalkd 协议 - 还有 Gearman http://gearman.org/
beanstalkd 和 Gearman 都会同步发送到代理 - 这很好 - ActiveMQ 也这样做 - 但它是可选的。有很多选择 - 但我的建议是根据您的环境测试替代方案,看看哪一个最适合。

I really like the beanstalkd protocol too btw - there is also Gearman too http://gearman.org/
Both beanstalkd and Gearman do synchronous sends to the broker - which is goodness - ActiveMQ does that too - but its optional. Lots of choices - but my advice would be to test the alternatives with your environment and see which one fits the best.

や莫失莫忘 2024-09-02 05:37:50

我认为您已经找到了 2 个主要产品。

您还可以查看这两种产品,它们可以在一定程度上满足您的需求:

https://www.memcached.org/

http://kr.github.com/beanstalkd/ - 这个库的优点 -它是用 C 语言编写的,因此快速、简单,并且已在大型应用程序的生产中使用 - 减少了响应时间。您还可以将其钉在您想要的任何后台数据交换协议上——soap、xml-rpc、json,因为这一切都将异步完成,并且您可以合并您的代码,因为库本身非常简单——请查看示例第一页。

我只能谈论 beanstalkd 你 - 因为这是我唯一稍微熟悉的一个 - 它被用在我们的一个项目中。我无法对其他产品发表赞成或反对意见。

I think you hit the 2 major products out there .

you can also check out these 2 products that would satisfy your needs somewhat:

https://www.memcached.org/

http://kr.github.com/beanstalkd/ - the advantage of this lib - it's in C, so it's fast, simple and it's been use in production for big apps - reducing response time. You can also nail it to any data exchange protocol you want in the background - soap, xml-rpc, json, since it all will be done asynchronously and you can incorporate your code, since the lib itself is very simple - check out example on the first page.

I can only talk about beanstalkd thou - since that's the only one I'm slightly familiar with - it was used in one of our projects. I can't comment for or against on other products.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文