Why is node. js so popular? Why node. js is so popular
- 2020-03-30 04:28:50
- OfStack
Node.js is a server technology used to build and run Web applications, similar to what ASP.NET, Ruby on Rails, or the Spring framework does. It USES JavaScript as the main development language, has a built-in lightweight Web server, and a large number of Node package management (NPM) plug-ins, so you can shape your Web applications to suit your own needs, such as adding MVC features, adding Restful services, OAuth, or SSL security.
Reuse of language
Technologies like ASP.NET or Spring require developers to learn a new server-side language, such as C#, VB.NET, or Java. Node.js USES JavaScript on both the server and the client side, which means that developers only need to use one language at each level.
Easy transition for developers
It is a fact that JavaScript is a language that Web developers are familiar with, and most people know or have used JavaScript a bit. So it's easy for a Web developer to transition from other technologies to node. js.
lightweight
Node.js USES an event-driven architecture, which means that everything done on it, every single call and operation, is a series of asynchronous callbacks. This makes node.js run on a single thread, unlike other Web technologies, where each client request generates a new thread for processing. This is the essence of non-blocking I/O.
It is common to use object database simplicity like MongoDB in node. js applications. Unlike traditional SQL databases, MongoDB USES a document-based model instead of a relational model, and it USES objects like JSON instead of tables. This is perfect for ORM lovers.
Services can be hosted anywhere
Above is a personal summary of why node.js is so popular, if there is a omission, please correct.
Node. js is really a development tool