Why & What is Node.js
JavaScript is famous as client side programming
language. But there is some question as modern time demand.
- 1) Programmer can use as a server side programming language?
- 2) Is there anything which helpful to programmer For less code and more work?
- 3) For data storage and maintenance, we have anything?
Above three are first and prior question
for any newest technology. However there
are many questions but These three are most.
Yes sure All we know the growth of JavaScript
uses and development area is going to be developed very fast because of new
generation of web technologies.
All these are satisfied by the JavaScript
new technology NODE.js because in this you can write programming server and
client side. You don’t need any other programming language for backend. Also
there is very big community for NPM node package manager we can say it same as plug-in
in other language. And for data storage we can use mongodb.
Finally, what is NODE.js
Node.js is a JavaScript runtime it uses the V8
engine developed by Google for use in Chrome. V8 compiles and executes
JavaScript at lightning speeds mainly due to the fact that V8 compiles
JavaScript into native machine code.
The real magic thing behind Node.js is the event
loop or non-blocking I/O model .
Node.js = Runtime Environment + JavaScript Library
Features of Node.js
It’s fast :
synchronously
(blocking) or a old approach taking lot of time
and consumes a lot memory But because of a asynchronously reading and writing to network
connections, reading/writing to the file system, and reading/writing to the
database–all very common tasks in web apps–execute very, very fast in Node.
Nothing
but JavaScript:
It is
nothing but only JavaScript so programmers don’t need to learn any extra
programming language. because most of programmer know JavaScript.
Huge
community:
JavaScript
has a huge community for the JavaScript cast. So any relevant problem can be
solved by many ways. And can get market of Node.js.
Real
time:
For the
application like chat and game, node’s event loop take care of the multi-user
requirement. Websocket is very powerful so two-way communication is fully
realtime.For example socket.io
Streaming
of data:
By old
approach, I/O operations are done by HTTP request and response. Node.js is very
good to handle I/O. People can get benefit of transferring any kind of file
like audio file, video file etc. Node is able to read/write streams in
websocket same as HTTP.
So, The overall result is
o Developement is fast,
o Developers are happy,
o Cost is very low,
o Soution very quicky
(Large community)
No comments:
Post a Comment