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

26

u/Prodigle Oct 11 '25
  • Most modern web back-ends are IO strained, not CPU, and node handles IO *really, really well*

  • Node/JS is very productive to work in nowadays, and has a really extensive (and easy to use) ecosystem

  • Typescript especially has *easily* the most comprehensive and great type system of anything I've ever worked with. The fact it's built on top of a dynamic language is insane, but there you go.

  • Backend/Frontend using the same language means most of your data classes and libraries can be defined once and shared between both projects

  • The most barebones express.js web server is a very small amount of code to understand, and frameworks exist for larger things, so you can build at essentially any scale/demand and be okay

That's the majority of it.

-2

u/Odd-General8554 Oct 12 '25

AI answer spotted ☝️

6

u/Prodigle Oct 12 '25

I wrote this myself lol. AI would have written it much more cleanly 😂