0
考虑到socketcluster和strongloop都具有集群功能,在strongloop PM上使用socketcluster而不是socket.io部署应用程序是否合适?在stronloop上部署socketcluster.io
考虑到socketcluster和strongloop都具有集群功能,在strongloop PM上使用socketcluster而不是socket.io部署应用程序是否合适?在stronloop上部署socketcluster.io
在引擎盖下strong-pm正在使用strong-supervisor进行过程控制,该过程控制使用由Node核心提供的cluster功能。
SocketCluster的文档并没有立即显现,但socketcluster代码很清楚地表明它使用了集群。
群集的文档明确指出cluster.fork()
只能从群集主节点调用。由于强监督者仅在群集工作进程中运行应用程序,因此socketcluster框架将无法启动工作人员。
TL; DR:no,socketcluster和strong-pm不兼容,因为它们使用相同的群集功能。