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.
看着 Kue(https://github.com/LearnBoost/kue)我有点困惑,我是否可以在同一个节点进程中生产和消费作业,还是需要在单独的节点进程中启动消费者?
我需要在没有任何 HTTP 请求阻塞的情况下将一些 CPU 繁重的任务(生成 PDF)卸载到作业队列。
我想你回答了你自己的问题。;-) 是的——至少在生产中,您的工作进程应该与服务 HTTP 请求的进程分开。在开发过程中,也许你想简化你的生活,让一切都在一个进程中运行,但即便如此,我还是推荐单独的进程。