Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个工人正在运行后台工作。这个工人的方法大约有 100 行。在 Rails for Workers 中优化和移动代码到不同文件的一般做法是什么。
你只需要做一些新的课程并要求你的工人。
我喜欢使用 resque,但这里的问题是我们为每个工作人员加载所有环境,所以工作人员本身非常慢。我认为关于这个的好主意是只加载你真正需要的类。