Posts

Showing posts from May, 2021

Node.js

Image
 Nodejs About Nodejs As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. In the following "hello world" example, many connections can be handled concurrently. Upon each connection, the callback is fired, but if there is no work to be done, Node.js will sleep.  This is in contrast to today's more popular concurrency approach, which employs OS threads. Thread-based networking is wasteful and complex to implement. Furthermore, because there are no locks, Node.js users are not concerned about deadlocking the process. Because almost no function in Node.js does I/O directly, the process never blocks. Scalable systems are very feasible to develop in Node.js because nothing blocks. Getting started with Nodejs The installer package supplied on the NodeJS official website makes the installation of NodeJS and NPM simple. Download the installer from the Nodejs package Run the installer. Follow the installer steps, agree to t...