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

5

u/pokatomnik Oct 11 '25

Java has no syntax sugar, but node+typescript has. Multithreading can be done with web workers, but is needed only when you write cpu-bound code (which is a rare case for microservices). In addition to that, Typescript is much simpler and has no boilerplate. Try to compare node with Kotlin instead.

1

u/Enforcerboy Oct 11 '25

I would disagree with usage of worker threads for everything, they are not as flexible as native threads.

1

u/pokatomnik Oct 14 '25

I agree. Web workers are limited as much as possible and inconvenient.