title: NodeJS and Threads in 2015
body: <p>I want to have a while(1) forever loop to communicate with devices [TCP] in parallel. Idea is to start threads for each IP Address [TCP Connection] and have them communicate forever. Currently number of devices i have to support is 200+
  Questions are  </p>
  
  <ol>
  <li><p>NodeJS how to implement the while(1) strategy and as its event based how to gauge the timeout and response timings.  </p></li>
  <li><p>NodeJS will be able to handle 200+ threads? i have done this before in Windows application and it worked properly i'm having a server class machine [16 cores] </p></li>
  <li><p>Any best practices suggested  </p></li>
  <li><p>Should i just keep the NodeJS to handle web traffic and move the communication server [TCP and Thread] code to in some navtive language?</p></li>
  </ol>