Any time you want to do this sort of long-polling, Node.js is a great option. ![]() This means you can create a browser-based chat application in Node.js that takes almost no system resources to serve a great many clients. When you use something like Node.js, the server has no need of maintaining separate threads for each open connection. This situation amounts to a tarpit attack. 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. Using a technique known as "long-polling", you can write an application that sends updates to the user in real time. ![]() 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. You did a great job of summarizing what's awesome about Node.js.
0 Comments
Leave a Reply. |