Nodejs and its robust concepts
Non-blocking I/O
Non-blocking is one of the important Concepts of Nodejs. One of the main operations of Nodejs is to handle browser requests as it is a server-side framework. In conventional input/output systems, the server blocks other or concurrent requests until the response (the HTML page) of the previous request has arrived. This server-blocking issue is called blocking I/O. In order to process the current request, the browser has to wait in a rotating circle manner. Unlike the traditional model, Nodejs doesn’t follow such kind of principle in the Input/output system. If a request seems to take a longer time to load, Nodejs sends that particular request in an event loop. Such a request goes ahead to handle the next request in the call stack. As soon as the processing of pending requests is done, Nodejs interferes with getting the response on the browser. Read: 5 ways to make HTTP requests in NodejsPrototype
JavaScript is a prototype-based language, which means that each object has a prototype chain. Prototypes are the sophisticated concepts of Nodejs(JavaScript). Every JavaScript object is merging to a prototype object from which it can inherit properties. In general, JavaScript has a predefined Object prototype linked with objects. Creating an object in JavaScript and then augment the own objects from it. This is called prototypical inheritance and is implemented via the prototype. The best feature of this particular system is that many objects can share the same methods on a prototype object. Each of which conserves memory and enables easy code reuse. And each prototype is a delegate object, which means that the property lookup which contains its own prototype. Before commencing a new object, one must select an object that should be of its own prototype.Read More: What are the basic primitives of Nodejs?



