简体   繁体   English

Ruby on Rails-分布式任务

[英]Ruby on Rails - Distributed Tasks

I am planning on writing a rails application which will distribute tasks to several workers on different computers. 我正在计划编写一个Rails应用程序,该应用程序会将任务分配给不同计算机上的多个工作人员。 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. 我已经看到Celery for python所做的事情与我需要的非常接近,但是我想在Ruby中尝试一下,如果有任何工人被杀死,它可以在RabbitMQ中重新排队任务。 Any information would be greatly appreciated. 任何信息将不胜感激。 Thank you! 谢谢!

这不是我所了解的很多,但是您是否看过Resque?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM