Fork vs Cluster — Which allows parent/child to pass data by reference?
up vote
0
down vote
favorite
I'm a bit confused about the difference between clusters and child processes.
From what I gathered, clusters are used for CPU-related perks; but it seems that they support passing objects to the processes? I'm currently using spawn/fork, which only supports passing strings.
Use case
— I need to be able to create a child process and pass an object to it by reference (i.e, no stringification).
Is this possible?
node.js cluster-computing child-process
add a comment |
up vote
0
down vote
favorite
I'm a bit confused about the difference between clusters and child processes.
From what I gathered, clusters are used for CPU-related perks; but it seems that they support passing objects to the processes? I'm currently using spawn/fork, which only supports passing strings.
Use case
— I need to be able to create a child process and pass an object to it by reference (i.e, no stringification).
Is this possible?
node.js cluster-computing child-process
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm a bit confused about the difference between clusters and child processes.
From what I gathered, clusters are used for CPU-related perks; but it seems that they support passing objects to the processes? I'm currently using spawn/fork, which only supports passing strings.
Use case
— I need to be able to create a child process and pass an object to it by reference (i.e, no stringification).
Is this possible?
node.js cluster-computing child-process
I'm a bit confused about the difference between clusters and child processes.
From what I gathered, clusters are used for CPU-related perks; but it seems that they support passing objects to the processes? I'm currently using spawn/fork, which only supports passing strings.
Use case
— I need to be able to create a child process and pass an object to it by reference (i.e, no stringification).
Is this possible?
node.js cluster-computing child-process
node.js cluster-computing child-process
asked Nov 10 at 21:57
Karric
303213
303213
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243810%2ffork-vs-cluster-which-allows-parent-child-to-pass-data-by-reference%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown