Domanda di colloquio di SourceFuse

How nodejs is better then java ?

Risposta di colloquio

Anonimo

17 dic 2018

Node.Js follows a single threaded structure where a Loop(Event Loop) reads all the incoming requests to the server and processes them concurrently. Where as Java follows a multi threaded structure where each incoming request on the server is delegated a separate thread to process it. This feature makes nodejs servers handle far more network requests as compared to Java servers.