Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare and contrast Node.js and Servlets 3.1 nonblocking IO

Node.js uses the nonblocking nature of Javascript. On the other hand, Servlets 3.1 introduced nonblocking IO in Java EE 7.

Please explain technical similarities and differences between these two as far as nonblocking and scalability are concerned.

like image 987
siva636 Avatar asked Dec 19 '25 03:12

siva636


1 Answers

Servlet 3.1 is multithreaded and async stream processing model hence parallel processing of tasks takes place. NodeJS is single async threaded model.

Performance wise both are having the almost same implications. But together they can perform what an enterprise application looks for. But i havent really tried it though i would also like to see some samples on this. I found more information here

like image 125
Raghuveer Avatar answered Dec 21 '25 19:12

Raghuveer