catwarrior / catwarrior.github.io

This is my knowledge base.
0 stars 0 forks source link

Nodejs knowledge base #5

Open catwarrior opened 8 years ago

catwarrior commented 8 years ago

found a blog post mentioned websocket loadblance on MMORPG http://goldfirestudios.com/blog/136/Horizontally-Scaling-Node.js-and-WebSockets-with-Redis

catwarrior commented 8 years ago

Don’t use synchronous functions

If you are using Node.js 4.0+ or io.js 2.1.0+, you can use the --trace-sync-io command-line flag to print a warning and a stack trace whenever your application uses a synchronous API.

catwarrior commented 8 years ago

nginx Proxy

nginx.conf.txt

catwarrior commented 8 years ago

for web performance test https://github.com/newsapps/beeswithmachineguns https://github.com/M6Web/websocket-bench

catwarrior commented 8 years ago

dont-transpile-javascript-for-node-js!!!!! http://vancelucas.com/blog/dont-transpile-javascript-for-node-js/

catwarrior commented 8 years ago

babel-node for developing use.