Joke Collection Website - Blessing messages - What is node.js?

What is node.js?

Is Node.js a Chrome V8 engine? JavaScript? Running environment. Node.js uses an event-driven non-blocking I/O model.

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.