Will PM2 work with Node.js net API?
问题 Background I need to make a server app that listens to several TCP connections. This app must be lightweight and the TCP connections will come from GPS devices ( not from browsers, so I can't use WebSockets for example ). Research To make sure this scales properly to thousands of devices I need to take full advantage of all the machines CPUs. According to my research I found 2 ways of doing it: Create a net server and use the native cluster API Node.js provides Create an app and use PM2 to