Ruby on Rails - 分布式任务
我计划编写一个 Rails 应用程序,它将任务分配给不同计算机上的多个工作人员。我正在尝试审查可用的不同技术/宝石,但我无法确定哪种组合最适合我的需求。
这是我目前所知道的;应用程序需要具有容错能力并且不会丢失任务(即使工作线程被强制关闭)。任务数量并不多,但每个任务所需的时间会有所不同(可能相对较短或可能需要较长时间)。
我已经看到 Celery for python 做了一些非常接近我需要的事情,但我想在 Ruby 中尝试一下,如果有任何工作线程被杀死,它可以在 RabbitMQ 中重新排队任务。任何信息将不胜感激。谢谢你!
I am planning on writing a rails application which will distribute tasks to several workers on different computers. I am trying to review the different technologies/gems available to use and I'm having trouble deciding which combination best suites my needs.
Here's what I know so far; The application will need to be fault tolerant and not lose tasks (even if the worker is forcibly turned off). The number of tasks isn't high, but the amount of time each task will take will vary (it could be relatively short or may take a long time).
I've seen Celery for python do something very close to what I need, but I'd like to give this a try in Ruby where it can requeue tasks in RabbitMQ if any worker is killed off. Any information would be greatly appreciated. Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是我了解的很多,但是你看过Resque吗?
This is not something I know a lot about, but have you looked at Resque?