Learn the 1th chapter of node. JS Introduction Nodejs

Source: Internet
Author: User

What is node. js?

node. JS is a Web application framework built on Google Chrome's JavaScript engine (V8 engine). The latest version of this is: v0.12.7 (the version that was written during this tutorial). The definition file for node. JS on the official website reads as follows:

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.

The node. JS self-contained runtime environment can be interpreted and executed on the basis of JavaScript scripts (this is similar to the Java bytecode of the JVM). This runtime allows JavaScript code to be executed on any machine other than the browser. Because this runtime is on node. js, JavaScript is now available on the server and executed.

Node. JS also offers a rich library of JavaScript modules that greatly simplifies the research and development of Web applications using node. js.

node. js = Run environment + JavaScript library node. js attribute
    • The asynchronous and event-driven APIs of the node. JS Library are all asynchronous and non-blocking. It mainly refers to node. JS-based servers that do not wait for the API to return data. After the server moves to the next API call, node. js occurs after the event notification mechanism helps the server get a response from the previous API call.

    • Very fast built-in Google Chrome's V8 JavaScript engine, the node. JS Library code execution is very fast.

    • Single-threaded but highly extensible-node. JS uses a single-threaded model with circular events. The event mechanism helps the server respond in a non-blocking manner and makes the server highly extensible, rather than creating a thread limit to handle the requested legacy server. node. JS uses a single-threaded program, but can provide a much larger number of requests than traditional servers such as the Apache HTTP server.

    • No buffering-the app for node. JS never uses buffering any data. These applications simply output data in blocks.

    • License Agreement-node. JS is published under the MIT agreement

Who is using node. js?

The following is an exhaustive list of projects, applications and companies that are using node. js, which are listed on the GitHub wiki link: EBay, General Electric, GoDaddy, Microsoft, PayPal, Uber, Wikipins, Yahoo!, Yammer and more and more join to continue expanding this list: projects using Nodejs, apps and companies

Concept

Describes some of the important components of node. js, which we will discuss in detail in subsequent chapters.


Where can I use node. js?

The following are the areas where node. JS proves its perfect technology partner.

    • I/O bound application

    • Data flow Applications

    • Data-intensive real-time applications (DIRT)

    • Applications for the JSON API

    • Single page Application

Where do you want to avoid using node. js?

It is not recommended that you use node. js for CPU-intensive applications.

Learn the 1th chapter of node. JS Introduction Nodejs

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.