Tuesday, 2 February 2016

First express.js production deployment, how bad of a job am I doing?

Hi,I posted this question on http://ift.tt/Mwq0An but would really value the opinions found in this thread as well.I am deploying my first Express.js app. Here is how I am doing it:Nginx forwards all traffic to where my node server is listeningpm2 used to run the serverWhen I created my server, I used the cluster module. Now that its time for production I see that pm2 offers clustering.I would appreciate any insight I can get on either of these questions.How bad is my server logic found in the stack exchange post?Should I rewrite the server, removing the cluster module and let pm2 handle the clustering? Does anyone know the difference?I am really set on making mistakes and learning from them, so if anyone can help me here I would really appreciate it.

Submitted February 03, 2016 at 04:37AM by monkeymensch

No comments:

Post a Comment