Pergunta de entrevista da empresa SourceFuse

How nodejs is better then java ?

Resposta da entrevista

Sigiloso

17 de dez. de 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.