Node.js is a server side framework for creating server and console applications with JavaScript and suitable for creating Cloud based highly scalable Apps. In practical use Node.js runs on the server in a client-server model. It is a very fast JavaScript implementation. The developers can pay special attention to the scalability of the framework, in particular to allow the large number of simultaneous connections.
Architecture and Modules of Node.js
A special feature of Node.js is that it is client server driven architecture. The result of a Node.js function is always a callback function. For this reason, in Node.js only one thread is needed.
Node.js has a slender core and can be expanded with modules. Node.js has some basic modules, which are compiled directly into the binary package. In addition to the .net module for asynchronous network access includes wrapper for the file system buffers, timers and of a general stream class. Third-party modules can also be used in Node.js has a slender core and can be expanded with modules: Node.js has some basic modules (Core), which are compiled directly into the binary package. In addition to the .net module for asynchronous network access includes wrapper for the file system buffers, timers of a general stream class. Third-party modules can also be used, for example via precompiled files with the file extension .node or in the form of simple JavaScript files. The JavaScript modules follow the CommonJS standard for modules and are thus on an exports variable access to her functions and variables of the corresponding module. Modules can be used for abstraction layers in Node.js.
---
To manage the Node.js modules there are npm package manager, in the repository there are over 5000 packages. This ensures Node.js similar to RubyGems or Python Eggs for installation, updates, and compiling binary modules. The JavaScript modules follow the CommonJS standard for modules and are thus on an exports variable access to her functions and variables of the corresponding module.
Modules can be introduced even in abstraction layers, such as in middleware frameworks.
To manage the modules in Node.js there npm package manager, the repository has over 5000 packages. This ensures Node.js to have similar workflow like RubyGems or Python.
Other Notes on Node.js
Node.js is distributed under MIT License. The official website of Node.js is nodejs.org.
