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

57

u/Enforcerboy Oct 11 '25

Mostly startups pick node is because there is an enormous talent pool of node devs compared to that of spring ( or java ) , secondly being someone who transitioned to nest from spring, yes nest isn’t that popular but it also has fair enough ecosystem.

From an Engineer’s POV, Node isn’t build for anything CPU intensive or anything which could block it’s main thread, yes it provides you worker threads option but they aren’t that useful ( in my opinion ) , if you have any task that could block the CPU then in node more often you will have to go with event based approach.

Where Node really shines is for I/O ops, but from what I remember, they are bringing something similar to Java as well where IO calls won’t block the thread execution.

And personally I prefer Java if I know that my usecase will involve a lot of looping tasks , and I know project is gonna grow very significantly and I know that my app would receive very high traffic but for POC, MVP, or even production grade apps where I have enough resources to scale my containers, I like node (nestjs) it’s faster for me to work in.

2

u/Desperate-Credit-164 Apr 13 '26

I have a question. I hope you can help me out.

For an event-driven, serverless system (a mobile app) with few users, low workload for heavy tasks (almost nonexistent), and a very small development team (3 devs) but with critical tasks for the medical sector (an app for monitoring hospital alarms), which is the better choice from a professional standpoint? Java or Node? Spring Boot or NestJs?

Thanks in advance.

1

u/Enforcerboy May 04 '26

For your usecase I would pick NestJs, doing the same in spring would be of too much hassle,

Although paradigm wise both of them are same, but I tend to like docs of Nestjs more.