The Technology of Node.js

1123 Words3 Pages

Technology Report on Node.js

Q1. What is the selected technology? (Basic concepts, definitions, features)

Traditionally websites were made using HTML and CSS. Over the time when websites became heavier and complicated, scripting languages like PHP, Python, and Perl were used with front end developed in previous mentioned technologies (HTML and CSS). JavaScript was introduced and made the web pages more interactive. With time and increased usage, jQuery was introduced. These were libraries of JavaScript functions used frequently in the web pages. But still people using these technologies were called “JavaScript User” and not “JavaScript Developer”. Node.js allows you to run JavaScript code on server side, outside the browser.
Node.js is a platform built on Chrome's JavaScript runtime. It uses Google’s V8 VM, same runtime environment for JavaScript used by Chrome. Features like event-driven, nonblocking I/O model make it ideal for data-intensive, real-time applications running across distributed devices.
The asynchronous nature of the scripting language and being identical to JavaScript are key assets, which makes it much easier to express concurrency in the application.

Event Driven, Single Thread.
Most important concept of Node.js is that it is event driven and it runs its event on a single thread. That means that there are several events in the event loop but only one will function at a time. An event might send a callback to another event but only one event will occur. This saves multithreaded overhead. A request comes at node.js web server and it is handled to a listener object to process the response. Meanwhile the web server will remain ready to accept any new requests. The previous response handling will remain in a que...

... middle of paper ...

...e used to share code between the browser and backend. JavaScript is on its way to become a really universal language.

And the last reason is raw speed. V8 is constantly pushing the boundaries in being one of the fastest dynamic language interpreters on the planet. In addition to that, node's I/O facilities are really lightweight, fully utilizing the system's I/O capacities as possible.

Package management - Node Package Manager (NPM)
Node Package Manager is the basis of deployment systems for Node.js and underlies the many PaaS (platform-as-a-service) providers for Node.js, making it easy to deploy smaller applications between providers. NPM can help get benefit by getting and managing thousands of open source packages so one does not have build everything all by self.

Q5. How to use this technology (procedure, tips and guidelines)

Syntax
Tutorial
Demo video

More about The Technology of Node.js

Open Document