Skip to content

jinchi2013/node-js-cluster-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-js-cluster-practice

cluster.fork is implemented on top of child_process.fork()

The extra stuff that cluster.fork brings is that, it will enable you to listen on a shared port.

So yeah, use cluster for web servers and child_process for workers

cluskter.fork() as an implementation if child_process.fork(), the clusters can communicate with the parent via IPC and pass server handles back and forth

IPC: inter-process communication

So we have HTTP/HTTPS/NET => cluster

So a worker would be => child-process

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published