Node.js Question:

Tell me how to decide when to use Node.js?

Tweet Share WhatsApp

Answer:

You did a great job of summarizing what's awesome about Node.js. My feeling is that Node.js is especially suited for applications where you'd like to maintain a persistent connection from the browser back to the server. Using a technique known as "long-polling", you can write an application that sends updates to the user in real time. Doing long polling on many of the web's giants, like Ruby on Rails or Django, would create immense load on the server, because each active client eats up one server process. This situation amounts to a tarpit attack. When you use something like Node.js, the server has no need of maintaining separate threads for each open connection.

Download Node.js PDF Read All 15 Node.js Questions
Previous QuestionNext Question
Is Node.js on multi-core machines?Can we use jQuery with Node.js?