Hacker News new | ask | show | jobs
by manuscreationis 5007 days ago
Do you think the server would perform more effectively if they had enabled the Cluster configuration (assuming the server has multiple cores)?

I'm fairly new to toying around with Node, so i'd be interested to know if there are fairly obvious or simple reasons for poor performance here

2 comments

Looks like the maximum number of clients is limited to 20 in the code: https://github.com/n01se/1110/blob/master/server.js#L44
that would certainly help but it's just not running on a very powerful server, it's nothing to do with the language.
It's nothing to do with the language, it's to do with the threading model. It's a much argued about topic nowadays: one approach give peace of mind to programmers, and the other one gives peace of mind to users.
Makes sense