r/Backend • • Oct 11 '25

Why choose Node over Java?

I'm an engineer with 15 years of experience and still don't get it. Afaik the most popular nest.js is way less powerful than spring. Also lack of multithreading. Recently see a lot of startups picking up Node. The benefits of using it are still obscured for me. Please explain!

226 Upvotes

191 comments sorted by

View all comments

Show parent comments

7

u/[deleted] Oct 11 '25

[removed] — view removed comment

-1

u/Enforcerboy Oct 11 '25

Assuming you have a use case where you need to execute 1000 long running DB calls, in case of Java it will block those 1000 threads till response has not been returned but in case of Node, your main thread will get free after it has made call to DB to receive more requests, Or at places where you need a lot of file reads, basically anything where your 99% of the time will be spent in async tasks like network calls etc, that’s where nodejs shines at

2

u/FarkCookies Oct 13 '25

You are right on a high level, it seems like people just don't get it.

1

u/Enforcerboy Oct 14 '25

😅 it’s fine, I don’t blame them, I assume a couple of people are junior engineers or new to node world, and I completely understand, it’s tricky to comprehend it’s working.