Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Is the cluster of node.js for cpu multi-core or for multi-server?

Is the cluster of node.js for cpu multi-core or for multi-server?

Problem

Just wonder the Cluster of node.js is for cpu multi-core or for multi-server?

For the multi-core in the same cpu or multi-cpu in a same server, their communication speed is enough high to pub-sub.

But when the servers locate different place, how to gurantee the communication speed?

I mean when using cluster for node.js, what is difference of the 4 cases:

1.multi-core

2.multi-cpu in same server

3.servers in same local network

4.servers locate different place(different local network)

your comment welcome

Problem courtesy of: arachide

Solution

  1. Multi-core on the same server.

If you want node processes on different servers to collaborate, you'll have to manage it yourself.

Solution courtesy of: Munim

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Is the cluster of node.js for cpu multi-core or for multi-server?

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×