Joke Collection Website - Blessing messages - What is node.js?
What is node.js?
Node is a development platform that makes JavaScript run on the server, making JavaScript the same as PHP, Python, Perl and Ruby? A scripting language equivalent to the server language. Released in May 2009 and developed by Ryan Dahl, its essence is to encapsulate the Chrome V8 engine.
Node optimizes some special use cases and provides an alternative API, which makes V8 run better in a non-browser environment. V8 engine executes Javascript very quickly and has excellent performance. Node is a platform based on Chrome JavaScript runtime, which is used to conveniently build a network application with fast response and easy expansion. Do nodes use event-driven and non-blocking I/O? This model is lightweight and efficient, and it is very suitable for running data-intensive real-time applications on distributed devices.
Extended data:
Node uses a series of "non-blocking" libraries to support event loops. In essence, it provides an interface for resources such as file system and database. When sending a request to the file system, there is no need to wait for the hard disk (addressing and retrieving files), and the non-blocking interface will notify the node when the hard disk is ready.
This model simplifies the access to slow resources in an extensible way, which is intuitive and easy to understand. Especially for users who are familiar with DOM events such as onmouseover and onclick, there is a feeling of deja vu.
- Related articles
- Will HONOR's messages be deleted directly after being intercepted? How come?
- I bought Apple 6plus, sent a few short messages, and my phone crashed, and there was no response. Why?
- Advantages and disadvantages of mobile ec20 module
- How to push student information on smart platforms for primary and secondary schools
- How to use NFC function of Xiaomi mobile phone?
- What is a mobile association number and how to cancel it?
- 1Is it true that 99 yuan applied for "global black card"?
- Recently, I bought a car and got a loan. How did I receive the message of successful car rental?
- Is there no information prompt for the first mortgage deduction?
- I bought a new mobile phone card and received a verification message from Alipay in the middle of the night.