NodeJS Fundamentals
So today was all about brushing my concepts of NodeJS fundamentals from Pluralsight. Here is what I learned :
- NodeJS, in a nutshell, is an event driven server side javascript. Unlike traditional backend languages like Java and C#, which rely on multiprocess or multithreaded architecture to support concurrent requests, NodeJS relies on a single threaded event loop.
- This event loop serves one request and then internally triggers and listens for events. This makes it hugely scalable, because no resources are waiting for something to happen.
- The downside is that if any request triggers unhandled error, the whole application crashes.
For centralized package management, there is a "Node Package Manager" or `npm` for short, which can be used to easily install, update and share node modules and packages. The "package.json" file is responsible for storing all the information about the application, including all the dependencies that are installed via `npm install`.
Comments
Post a Comment