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.
我有一个问题是什么更好地提高应用程序的性能。我有一个 Node-Sails 应用程序,它有一个构建图像的过程,这个过程需要几秒钟才能完成,所以它会减慢服务器的速度。
我可以节点克隆 Sails 应用程序(使用 pm2 之类的东西)以使用 CPU 的所有内核,并且我可以使图像创建方法使用 CPU 的不同内核。但我不是 100% 确定哪种方法更好,性能和可扩展性。
我倾向于克隆 Sails 以使用所有内核,因为我相信这样会更有效率,你的意见是什么,为什么?
谢谢!