What is Node.Js? A JavaScript run time environment running Google Chrome Js V8 engine a.k.a. server-side solution for JS Compiles JS, making it really fast Runs over the command line Designed for high concurrency Without threads or new processes Never blocks, not even for I/O Uses the CommonJs framework Making it a little closer to a real object-oriented language Why Node.Js? Non Blocking I/O V8 Javascript Engine Single Thread with Event Loop 40,025 modules Windows, Linux, Mac 1 Language for Frontend and Backend Active community Concurrency: The Event Loop Instead of threads Node uses an event loop with a stack Alleviates overhead of context switching Thread Vs. Event Driven Thread lock application/request...
Categories