dthtvwls / wsmax

1 stars 1 forks source link

Use multiple cores #2

Open dthtvwls opened 9 years ago

dthtvwls commented 9 years ago

Nginx should be able to handle the front end.

http://nginx.org/en/docs/http/websocket.html http://nginx.org/en/docs/http/load_balancing.html

jessetane commented 9 years ago

Nice to know that nginx shouldn't be a bottleneck irl. For testing on instance sizes with more cores it would be really interesting to know how adding processes affects things. I am tempted to think that unless the server is actually doing a lot of "work" in the node process itself, network would become a bottleneck before cpu. Just a hunch tho.

dthtvwls commented 9 years ago

It would be interesting to find out. I'm also curious to find out how nginx behaves as it's a rather dumb reverse proxy and I don't fully understand what it will do with the upgraded WS connections.