node. js in My eyes

Source: Internet
Author: User

function
1. Internet Browser (IE, FireFox, Chrome)
Ability to provide a basic set of JavaScript language interpreters and execution environments.


2. Web server (Apache)
The built-in HTTP module can be used to impersonate the Apache server or to impersonate a client to initiate an HTTP request;
The built-in net module is more low-level, can be used to simulate the socket server, can also impersonate the client to initiate a socket request.


features
1. Using JavaScript as the primary programming language for the module, but not limited to JavaScript, node. JS can actually extend the module (text or binary) in any language.
2. Node. JS is managed in the form of a module that can be a file or a package (directory) that manages the module in the form of a package that allows for the independence and scalability of the module.
3. Node. JS has a packet manager Npm-node package Manager, similar to the Apt-get command under Ubuntu, for managing and publishing extension modules.
4. According to the author, node. JS is designed to achieve "high-performance Web server", so the main advantage of node. JS isEvent-based mechanismAndAsynchronous IO Operations, these two points are also the cornerstone of implementing a high-performance server.
5. The FS module has a powerful file-handling capability that is strictly limited in the browser-based JavaScript runtime (for security reasons).
6. The buffer object and the stream object are useful for resolving the relationship between stream-binary-text.
7. The HTTP module and the net module have the strong network operation ability, can realize the service side and the client program under the Http/socket protocol.
8. With a strong process management capability, processes are global objects, not built-in modules, so they can be used directly from anywhere.

node. js in My eyes

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.