Any tips/tricks/suggestions? I heard many good things about Node.js and finally gave it a try. I would like to know about the tricks that are known to improve performance of a Node.js web app.
Also you should always use cluster module for production Node.js apps. It forks your parent Node.js process to spawn child/worker processes and uses round robin algorithm (v0.12) to distribute incoming connections evenly among the workers. So, if you are using a multi core VPS to deploy your app you should take advantage of cluster.
The Dev Community
Free, friendly and inclusive platform for developers
Or connect with