It uses the V8 virtual machine and implements the CommonJS specifications under MIT.
Node.js contains an integrated HTTP server library, which makes it possible to run a web server without the need for external software like Apache or lighttpd, and to better control how the web server works.
Node.js is more and more popular as a server platform, it is used by Groupon, SAP, LinkedIn, Microsoft, Yahoo !, Walmart, Rakuten, Sage and PayPal
Node.js works with an evaluation model of a single executing thread using asynchronous entries and outputs that can run simultaneously on several up to hundreds of thousands, without incurring costs associated with contexto.6 This change Design Sharing A single execution thread among all requests meets the needs of highly competitive applications, in which each operation that performs inputs and outputs must have a callback function. A disadvantage of this approach is the single runtime thread that Node.js requires cluster7 scales additional modules the application with the number of processing cores of the machine on which it runs.
Node.js contains libuv to handle asynchronous events. Libuv is a layer of abstraction of network and file system functionality in Windows systems and POSIX-based systems such as Linux, Mac OS X and Unix.
Third-party modules can extend Node.js or add a level of abstraction, various middleware implementation utilities for use in Web applications, such as connection frameworks and express. Although the modules can be installed as individual files, usually installed using the Node Manager (NPM) package that will facilitate compilation, installation and update management packages and dependencies. In addition, modules that do not install the default directory for Node modules will need to use a relative path to find them. The Node.js wiki provides a list of several available third-party modules.
Uniform development between client and server
Node.js is registered with the operating system and whenever a client establishes a connection, a callback is executed. Within the Node.js runtime environment, each connection receives a small allocation of dynamic memory space without having to create a thread ejecución.10 Unlike other event-driven servers, loop event management Node .js is not explicitly called but is enabled at the end of each execution of a callback function. The event management loop is complete when there are no more events to participate.
Three points are reflected in this code:
- a module charger
- the native presence of an HTTP library
- the asynchronous aspect of language
Node.js is used at the heart of the Palm webOS operating system.
At the end of 2014, in disagreement with the role of the company Joyent, several of the main developers of node.js decide to forker this one and then creates io.js. A year later, they decide to merge again with node.js.
In August 2017, node.js is forked again and several contributors create ayo.js
Frameworks for Node.js
Mean.js and Mean.io
1 thought on “Introduction to Node JS”
I found this one pretty fascinating and it should go into my collection. Very good work! I am Impressed.
Hire Node.Js App Developers