简体   繁体   中英

Rails worker optimization

I have couple of worker running background job. The method in this workers are like ~100 lines. What are general practices in optimizing and moving code to different files in Rails for Workers.

您只需要参加一些新的课程,并要求在您的工作人员之上。

I like to use resque, but the problem here is what we load all environment with each worker, so worker natively are very slow. I think the good idea about this is to load only class what you really need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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