Why is Node. js so popular? Why is Node. js popular? Why is node. js popular?
Node. js is a server technology used to build and run Web applications, which is similar to the work done by ASP. NET, Ruby on Rails or Spring framework. It uses JavaScript as the main development language. It has a lightweight Web server and a large number of plug-ins for Node package management (NPM, you can create Web applications as needed, such as adding MVC features, adding Restful services, OAuth, or SSL security.
Repeated use of languages
A technology like ASP. NET or Spring requires developers to learn a new server language, such as C #, VB. NET or Java. Node. js uses JavaScript on both the server and client, which means developers only need to use one language at each layer.
Easy developer Transformation
The fact is that JavaScript is a well-known language for Web developers. Most people know JavaScript or how many times they have used it. Therefore, it is very easy for a Web developer to transform from other technologies to Node. js.
Lightweight
Node. js uses the event-driven architecture, which means that everything and every independent call and operation on it are a series of asynchronous callbacks. This makes Node. js run on one thread, which is different from other Web technologies. Each client request generates a new thread for processing. This is exactly the essence of non-blocking I/O.
Support for object databases
In Node. it is very common to use object databases such as MongoDB in js applications. Unlike traditional SQL databases, MongoDB uses document-based models rather than relational models, it uses objects like JSON instead of tables. This is suitable for those who love ORM.
Widely supported by IDE and code editor
JavaScript has been around for a long time. Therefore, IDES such as Visual Studio and Eclipse support JavaScript code prompts and highlighting, in addition, code editors such as NotePad ++ and Sublime Text also support these features.
Services can be hosted anywhere
Some Web servers and cloud service providers support Node. js Web applications. Here are a few examples, including Google, Microsoft IIS, Heroku, Microsoft Azure, and Amazon (AWS.
The above is the reason why node. js is so popular. If you have any omissions, please correct them.
Node. js is a powerful developer ~