Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advantages of node.js in comparison with other web technologies [closed]

Tags:

node.js

As I understand, node.js is useful for Java Script programmers, who can now develop in server-side. Besides, some Java Script code can be ported from client-side to server-side.

Are there any other advantages for node.js in comparison with other server-side technologies (Java web frameworks, RoR, Django, etc.) ?

like image 278
Michael Avatar asked Jun 26 '11 13:06

Michael


People also ask

What benefits does node js have compare to other back end technologies?

Considering the speed of the development, Node. js works is that it makes you string together different components, ease the process and flexibility of building entire application. The availability of Node. js developers are less compared to other technologies as it has come to common in recent years.

How node js is different than traditional web technologies?

js compared to traditional web server-IIS. Node provides a high performance, asynchronous event-based server. Node. js is event-based and uses single thread for its event loop, which allows developers to use asynchronous interfaces to do I/O operations.

What is node JS and its advantages and disadvantages?

Node. js is an open-source platform as well, which increases flexibility that helps in building real-time network applications. It offers the developers asynchronous, event-driven I/O APIs. It runs on a single-threaded event-based loop, so all executions become non-blocking.


1 Answers

Package management

Compared to Java's Maven node.js package management system(npm) is the best ever. To me that alone should be enough to switch. The packages I recommend you to check out:

  • express
  • socket.io
  • node_redis
  • mongoose
  • everyauth

You can search for packages using http://search.npmjs.org/

Fast

node.js is very fast(event-loop non-blocking) and also has very speedy native bindings(C). For example node_redis(C binding) benchmarks:

PING: 20000 ops 46189.38 ops/sec 1/4/1.082
SET: 20000 ops 41237.11 ops/sec 0/6/1.210
GET: 20000 ops 39682.54 ops/sec 1/7/1.257
INCR: 20000 ops 40080.16 ops/sec 0/8/1.242
LPUSH: 20000 ops 41152.26 ops/sec 0/3/1.212
LRANGE (10 elements): 20000 ops 36563.07 ops/sec 1/8/1.363
LRANGE (100 elements): 20000 ops 21834.06 ops/sec 0/9/2.287

Active development/community

Ryan Dahl is working very very hard on his project. Also node.js now has active support(sponsor) from for example Joyent. The community is growing rapidly

like image 103
Alfred Avatar answered Oct 08 '22 03:10

Alfred