开发者

Running background jobs in Rails 3

How is the best way to run a background job to convert video formats in Rails 3. I am using FFmpeg. I would like for the script to execute immediately after the video mode开发者_如何转开发l is saved. Thanks in advance.


delayed_job is one of the more popular methods. I would recommend it.

Video: http://railscasts.com/episodes/171-delayed-job


Resque is another popular alternative to Delayed_Job. Both are well trusted so it could just come down to your own personal preference.

Note that as far as I know, the delayed_job I've linked to on Github is the more standard version used now even though it is a fork of the original. That was something that confused me when I first looked at it.


Sidekiq (based on Celluloid and Redis) is well worth taking a look at as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜