Did I understand correctly: If I use
clusterpackage, does it mean that a new node instance is created for each created worker?What is the difference between
clusterandworker_threadspackages?
Did I understand correctly: If I use cluster package, does it mean that
a new node instance is created for each created worker?
What is the difference between cluster and worker_threads packages?
Effectively what you are differing is process based vs thread based. Threads share memory (e.g. SharedArrayBuffer) whereas processes don't. Essentially they are the same thing categorically.
SharedArrayBuffer)