node. JS Learning

Source: Internet
Author: User

What is node. js?

What is node. js?

node. JS is a server side platform built on Google Chrome's JavaScript engine (V8 engine). node. JS was developed by Ryan Dahl in and it's latest version is v0.10.36. Defintion of node. js as put by it official documentation is as follows:

node.js is a JavaScript engine (V8 engine) built on Google Chrome. node. JS was developed by Ryan Dahl in 2009 and is currently the latest version of v0.10.36. In the official documentation for node. JS, this is how it is defined:

node.js? is a platform built On chrome ' s JavaScript runtime for easily building fast, scalable network applications. node. JS uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive R Eal-time applications that run across distributed devices.

node.js is a JavaScript runtime built on Chrome, designed to be quickly built and extensible for Web applications. node. JS uses an event-driven model, non-blocking IO model, so it is lightweight and efficient and works perfectly in distributed scenarios where data-intensive implementations are implemented.

node. JS is a open source, Cross-platform Runtime environment for Server-side and networking applications. node. JS applications is written in JavaScript, and can be run within the node. JS Runtime on OS X, Microsoft Windows, and Linux.

node. JS is an open source, cross-platform, server-side runtime environment and network application. node. JS app Development is written in JavaScript and can run in the node. JS runtime Environment, whether OS x,windows or Linux.

node. JS also provides a rich library of various JavaScript modules which eases the developement of Web application using N Ode.js to a great extents.

Node. JS also offers a rich variety of underwear models written by JavaScript that make Web applications much easier to develop on a large scale.

node. js = Runtime Environment + JavaScript Librarynode.js is a combination of runtime environment and JavaScript underwear
Features of node. js

Features of node. js

Following is few of the important features which is making node. js as the first choice of software architects.

Some of the most important features that make node. js the preferred software architecture are listed below.

  • asynchronous and Event driven  all APIs of the node. JS Library is aynchronous, which is non-blocking. It essentially means a node. js based server never waits for a APIs to return data. Server moves to next APIs after calling it and a notification mechanism of Events of node. JS helps server to get response F Rom the previous API call.

    asynchronous event-driven: All the API's underwear for node. JS is asynchronous and non-blocking. It basically means that a server built with node. JS will never have to wait for the API to return data. Service Area after an API call is made, the next API call continues, and node. js lets the server get the return result of the previous API call through the event notification mechanism.

  • Very Fast  being built on Google Chrome ' s V8 JavaScript Engine, node. JS Library is Very fast in code Execution.

    very fast: Built on the V8 JavaScript engine, node. JS's code execution is particularly efficient.

  • single threaded but highly scalable  -node. JS uses a single threaded model with event looping. Event mechanism helps server to respond in a non-bloking ways and makes server highly scalable as opposed to traditional s Ervers which create limited threads to handle requests. node. JS uses a single threaded program and same program can services much larger number of requests than traditional serve R like Apache HTTP Server.

    single-threaded but highly scalable: node. JS uses a single-threaded model with an event polling mechanism. The event mechanism helps the server to respond to a nonblocking approach, making the server more scalable than the traditional method of creating a fixed thread to respond to requests. node. JS runs with a single thread, and handles more requests than traditional servers compared to traditional Apache HTTP servers.

  • No buffering -node. JS applications never buffer any data. These applications simply output the data in chunks.

    No buffering: the node. JS app does not cache any data. These applications will simply block out the data.

  • License -node. JS is released under the MIT License.

    License: node. JS distribution, following the MIT license.

Who Uses node. js?

Following is the link on GitHub wiki containing a exhaustive list of projects, application and companies which are using node. js. This list include EBay, General Electric, GoDaddy, Microsoft, PayPal, Uber, Wikipins, Yahoo!, Yammer and the list Continues.

Many well-known companies are using node. js

    • Projects, applications, and Companies Using Node

Concepts

Concept

The following diagram depicts some important parts of node. js which we'll discuss in detail in the subsequent chapters.

Depicts some of the important components of node. js. We will discuss these composition details in the subsequent section been interfering.

Where to use node. js?

Where to use node. js

Following is the areas where node. JS is proving itself a perfect technology partner.

The following demonstrates that node. JS is a perfect technology partner.

  • I/O bound applications

    IO-intensive applications

  • Data Streaming Applications

    Data flow Applications

  • Data Intensive Realtime Applications (DIRT)

    Data-intensive real-time applications

  • JSON APIs Based Applications

    Application based on JSON as API

  • Single Page applications

    A simple Web application

Where is the use of node. js?

where node. js does not apply

It is not a advisable to use node. js for CPU intensive applications.

Using node. JS is not recommended for CPU-intensive applications


node. JS Learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.