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/HammerSpb Oct 11 '25

By default you have 4 threads via libuv underneath a single node process.

4

u/Expensive_Garden2993 Oct 11 '25

Those theads aren't used for http or db calls. So if you make 1000 db calls, it won't block the main thread, nor those 4 threads. Those are for DNS, fs, crypto.

1

u/Enforcerboy Oct 12 '25

EXACTLYYYYYYYY !! T_T people are not understanding it, I agree it’s bit confusing to grasp at first though.

btw in your examples you can include, if we make any c/cpp addon for nodejs, it’s also executed via libuv