How Nodejs server differ from normal server

148 views
Skip to first unread message

G Prathap

unread,
Aug 13, 2014, 11:15:24 AM8/13/14
to nod...@googlegroups.com
This is interview questions. I dint perform it really well.Because in Nodejs server we can create http server as well as tcp/ip base server.If somebody elaborate about this it is  really  helpful for me. 

Luca Morandini

unread,
Aug 13, 2014, 6:28:43 PM8/13/14
to nod...@googlegroups.com
Define "normal" server...

Anyway, my 2c:

The main thing about Node.js is that it is single-threaded, but all I/) operations
execute asynchronously: this sets Node.js apart from, say, JEE application servers.

This model, coupled with the simplicity and speed of adding more server instances
(clustering), make for a more resilient and easier concurrency model than the Java
one (good luck with Threads in Java, even piping two streams is a challenge).

Actually, Node,js was designed to work in a networked environment, hence the
simplicity of developing networked servers/clients, and since Node,js is quick to
start and low on memory consumption, it lends itself well to decomposing an
application into small services, rather than concentrating then in one big
Application Server (guess what is the more resilient model).

Hope this helps,

Luca Morandini
Data Architect - AURIN project
Melbourne eResearch Group
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini

// ravi

unread,
Aug 13, 2014, 6:28:43 PM8/13/14
to nod...@googlegroups.com
On Aug 13, 2014, at 11:15 AM, G Prathap <ggee...@gmail.com> wrote:
This is interview questions. I dint perform it really well.Because in Nodejs server we can create http server as well as tcp/ip base server.If somebody elaborate about this it is  really  helpful for me. 


Assuming you were asked that question in those very words -- “How does NodeJS server differ from normal server?” — that’s a terrible question. I would have asked the questioner to define both “normal server” and “NodeJS server”.

—ravi


farzam khojasteh niya

unread,
Aug 14, 2014, 1:18:14 AM8/14/14
to nod...@googlegroups.com
I think that, NodeJS WebServer or other tech WebServer are the right phrase. 
any way 
NodeJs server ruining in easy way and doesn't need extra initial configuration to run a simple web server. Indeed we write 5 line code to start a web server and It performance is very good at asynchronous web application but the security and some other firewall content are a big question for me in these webserver (I'm some newbie at Nodjs right ) 
 Apache, Tomcat, IIS, ... WebServers, Initial configuration to start webServer  a little bit annoying, the Client count, connection, Hardware abilities ... is a serious content that we have to decide about them when we want to run these type of servers 
at last,
I think every service has it own condition and about that we have to chose the solution. 

farzam khojasteh niya

unread,
Aug 14, 2014, 1:58:05 AM8/14/14
to nod...@googlegroups.com
I mean "asynchronous i/o & real time  web application
Reply all
Reply to author
Forward
0 new messages