-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in clustering mode (automatic / flagged) #3672
Comments
@waqasmughal what do you envision this looking like? How would you distinguish between the cluster master and workers? I'm wary of introducing too much magic - cluster already does a lot of things under the hood. Regarding workers, there is an initial PR to add them to core in #2133. |
Would this be better as an npm module? I think there's a larger thing behind this where adding what is most convenient / intuitive to core isn't necessarily what is good or sustainable for Node.js. :s better docs? |
What would you change in the docs? I don't think this would be a good thing to have in core, but wanted to hear @waqasmughal's thoughts first. |
Hi , For Example http.createServer(function(request, response) {
}).listen(8888); |
Welcome to Node! We do just about everything asynchronously over here (meaning you don't need to spawn a bunch of server processes like you would in Java). Your long running task should be done asynchronously to avoid blocking your server. Built in clustering wouldn't really help here. The cluster module just spawns child processes, which you've already said isn't an option. If you want help architecting your project, you might want to ask over at https://github.com/nodejs/help. I'm going to close this for now. |
why not add built in clustering mode rather than manual . like node auto detect no of cpus and utilize all cpu cores . or better to integrate node-threads-a-gogo as core for hybrid app
https://github.com/xk/node-threads-a-gogo
The text was updated successfully, but these errors were encountered: