Question:

Can we share sockets between processes to enable load balancing over server cores in NodeJS?

Answer:

Yes

Child processes can be spawned by using our child_process.fork() API, and are designed to be easy to communicate with. Built upon that same interface is the cluster module that helps us to share the sockets bettween processes to enable load balancing over server cores.


Keywords:

© 2017 QuizBucket.org