Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server side javascript - General [duplicate]

Possible Duplicate:
What is node.js?
Usages of Node.js - What obstacles is it aiming to provide a ramp for?

What is the correct scenario to use server side javascript? like node.js What kind of problems it solves?

like image 458
Tony Avatar asked Nov 13 '22 12:11

Tony


1 Answers

  • Node.js solves the problem of serving many concurrent users from I/O based servers.
  • By I/O I mean that little to none computation is done in the request response cycle from the server part.
  • By concurrent I meany that thousands of users can keep a connection open with the server.
  • Having a persistent connection allows real time communication, the server can push over the opened connection, in a sense this way the server can be thought of as initiating the communication (comet, server push).

All this allows having a large user-base with little server resources and real-time communication (chat etc).

like image 121
clyfe Avatar answered Nov 16 '22 04:11

clyfe