title: Nginx and Node.js server - multiple tasks
body: <p><strong>UPDATE</strong></p>
  
  <p>I have a few questions about the combination of Nginx and Nodejs.</p>
  
  <p>I've used Nodejs to create my server and now I'm facing with an issue about catching the server for an actions (writing, removing and etc..).
  We are using Redis to lock the server when there are requests to the server, for example if a new user is doing a sign up action all the rest of the requests are waiting until the process is done, or if there is another process (longer one) all the other requests will wait longer.</p>
  
  <p>We thought about creating a Load balancer (using Nginx) that will check if the server is locked, and if the server is locked it will open a new task and won't wait until the first process is done.</p>
  
  <p>I used this <a href="https://futurestud.io/tutorials/how-to-use-nginx-as-a-load-balancer" rel="nofollow noreferrer">tutorial</a> and created a dummy server, then I've struggled with the idea of do this functionality of opening a new ports.</p>
  
  <p>I'm new with load balancing implementation and I will be happy to hear your thoughts and help.</p>
  
  <p>Thank you.</p>