I would ask the question the other way around. Java is so stable and mature that for every problem, there exists a solid and well maintained framework or library which solves your problem. For me the JS world feels like the wild west sometimes. The language itself is so bare that everything needs a micro package which some random person made and can just decide to take it down or it gets hijacked, things like that. It feels like the entire ecosystem is only held together by tape and glue. This is a backender's perspective on it. Is the Java ecosystem perfect? Of course not, but it feels a lot safer and mature to me. Answer from DJDavio on reddit.com
๐ŸŒ
Reddit
reddit.com โ€บ r/node โ€บ multiprocesing in nodejs vs java
r/node on Reddit: Multiprocesing in nodeJS vs Java
September 16, 2024 -

Hi, I want to do encryption of some specific fields in a MongoDB database with 1 million plus records. For this I was thinking of opting for a multi-process approach, forking multiple processes to perform the encryption in parallel.

My question is: how does nodeJS compare with Java in terms of performance in this aspect? Which one would be faster, and by how much? I tried to Google some performance comparisons but didn't find much.

Any help and input will be greatly appreciated, thanks.

๐ŸŒ
Reddit
reddit.com โ€บ r/java โ€บ is node.js really faster than java?
r/java on Reddit: Is Node.js Really Faster Than Java?
February 3, 2014 -

Issac claims Node.js is faster than Java because it uses on non-blocking calls (not just non-blocking I/O) while Java web apps usually rely on multi-threading.

http://strongloop.com/strongblog/node-js-is-faster-than-java/

๐ŸŒ
Reddit
reddit.com โ€บ r/java โ€บ java vs nodejs
r/java on Reddit: Java vs NodeJS
January 14, 2023 -

Hello everyone!

What Are The advantage and disadvantages of using Java(springboot) instead of NodeJS as the back end of my web application.

Thanks in advance.

Top answer
1 of 5
89
Few off the top of my head. NodeJS should only be picked if your load is almost entirely IO bound. You will see very few of the benefits otherwise. NodeJs codebases tend to scale smoothly until under full load while Java codebases front load a bit more. When under a full load it will depend on what sort of load to determine which one is better/faster. In general nodejs codebases perform better in horizontal scaling situations when you are running many small boxes while Spring boot/Java can better take advantage of vertical scalability. If you have one or two large servers running your application Java may outperform nodejs as it can take advantage of multiple cores when under load. Java is compiled and statically typed which eliminates several categories of bugs and you never have to worry about invalid code. NodeJS codebases require more written tests for the same guarantees and the inclusion of typescript. At the same time if your application does little with the data passing through its system it can feel like types are a burden instead of a boon. Java's tooling and deployment is a bit more complicated than NodeJs. Its changed a bunch over the years and it can be daunting to the inexperienced. Spring boot makes this easy if you follow their doc closely and don't try to figure it out on your own. Spring boot is a collection of libraries primarily centered around spring framework and bring in concepts you may not be familiar with. It would be more accurate to compare it to something like NestJS than NodeJS. You can pick a simpler Java framework to get started as there are many that can compare similarly to something like express in NodeJS. In my opinion, Java's standard API is easier to work with than NodeJS for a number of tasks. You may not encounter this in a simple application though. Spring boot codebases have certain common conventions on organizing code. This is useful to the experienced but can be overwhelming to new developers. tldr; If you are building a small web application that primarily talks to remote services like a DB use nodejs and you will get up and running faster. For larger apps or where performance is critical it would highly depend on what your application is doing for the choice to matter.
2 of 5
63
If you're building a prototype or toy, node is quick to get started with. If you will be running your application for a while and need to actually support it, Java. Source: 15 years or building large scale Java web services and 8 years with nodejs web services.
๐ŸŒ
Reddit
reddit.com โ€บ r/node โ€บ node.js or java for backend? seeking advice for fullstack transition!
r/node on Reddit: Node.js or Java for Backend? Seeking Advice for Fullstack Transition!
August 30, 2024 -

Hey everyone,

I could really use some advice. I've been working as a frontend developer for almost 2 years now, mainly with React, React Native, and Redux. I want to level up and become a fullstack developer, so I'm diving into backend development.

Initially, I thought of learning Node.js since it uses JavaScript, which Iโ€™m already comfortable with. But one of my seniors suggested I should consider Java because itโ€™s more powerful and could lead to better job opportunities.

Here's where Iโ€™m stuck:

  1. Familiarity: I know JavaScript pretty well, so picking up Node.js might be easier and faster for me.

  2. Learning Curve: Iโ€™m a bit of a slow learner, and Java would be completely new territory, meaning Iโ€™d have to start from scratch.

  3. Career Prospects: While Node.js seems like the easier path, Java supposedly offers more robust capabilities and better job prospects.

For those of you who have experience with both or have made the transition from frontend to fullstack, what would you advise? Should I go with Node.js for a smoother learning experience, or should I tackle Java for potentially better career opportunities?

Thanks a ton for your help!

Top answer
1 of 5
53
Itโ€™s more about the concepts. Are you familiar with (or do you want to learn) how Spring works? Learning Java is not hard. Itโ€™s dot notation, like JS, but itโ€™s compiled, thereโ€™s strict typing, and much more heavily focused around OOP. How well do you know OOP? How familiar are you with abstraction? If I were you, Iโ€™d stick with something like Nest.JS and focus on learning proper typescript, and then move into Java. If youโ€™re not good with key programming principles, then Java will be brutally hard. If youโ€™re familiar with stuff like OOP, inheritance, polymorphism, abstraction, singletons, factory methods, et al., then Java might be a good challenge! Also, consider time. Do you have the time to learn Java? Or would that time be better spent on learning a solid TS framework, like Nest.JS? Iโ€™d say learn TypeScript properly, and focus on Nest.JS (or some other framework), and then learn Java and port your api to it when you have the time! Good luck either way, bud! [EDIT] career wise, donโ€™t worry. PLENTY of node jobs out there! But be sure to stand out by knowing programming principles, not just node. Iโ€™m a hiring manager. I literally donโ€™t give a fuck if you know how to make an express app. I care that you know how to stream a file, what buffers are, how to find performance issues, database normalization, et al. If you know that, learning a new language becomes a lot easier!
2 of 5
38
You'll pick the concepts faster in the language you alresdy know. Afterwards, you can choose to transition to Java. More Java jobs but at the end of the day, if you know and understand the concepts very well, it doesn't matter what you choose
๐ŸŒ
Reddit
reddit.com โ€บ r/cscareerquestions โ€บ advantages/disadvantages of java vs nodejs for back-end web development, apis, microservices, etc
r/cscareerquestions on Reddit: Advantages/Disadvantages of Java Vs NodeJS for Back-End Web Development, APIs, Microservices, Etc
March 25, 2021 -

Anyone here from a NodeJS and Java (as in Spring/Jax-Rs) backgrounds who can share their opinions of developing RESTful APIs/microservices/cloud applications using Java frameworks compared to equivalent in NodeJS? What advantages would one have developing web ack-ends and microservice based applications in Java vs NodeJS and vice versa?

I am a .Net developer but looking to dive into a second stack mostly to make myself more marketable. I am diving into the cloud world and currently studying to acquire various certs in AWS and eventually may dive into Azure and GCP.

My goal may be to go into DevOps but I am open to other area such as cloud development, Solutions Architect/Systems Architect type roles, etc.

I do want to keep up my software skills to a degree for developing applications for various Cloud services. However, I also have been interested in looking at other avenues for developing microservices, RESTful APIs and planning on learning gRPC and GraphQL.

Even though I know all this is possible with C# and .Net and I do love C#/.Net framework, I know it limits me with the number of jobs available for me. I know learning Java eco-system can be too time consuming at htis point and NodeJs looks like a more real possibility, especially since I have a good knowledge and some experience with Javascript/Typescript.

However, I just like to know people's feelings on utilizing Java and associated web frameworks versus NodeJs. I understand next to Python, Java does dominate the market in web applications. Although , I hear this can be changing and Node's popularity is growing fast.

๐ŸŒ
Reddit
reddit.com โ€บ r/node โ€บ is node js back-end really ๐Ÿคจinferior to java back-end ?
r/node on Reddit: Is Node JS back-end really ๐Ÿคจinferior to Java back-end ?
September 15, 2024 -

Hi folks

I'm a prefinal University students. I like to write the server in Express JS for REST APIs and Apollo GraphQL for graphQL. I use Prisma and mongodb or PostgreSQL, for the db stuff.

But my seniors mocked me, saying are you even a coder if you use NodeJS. Such a childish tech. Use something real like Java Spring Boot.

When I ask why. They don't say anything.

Is there really something lacking which is practical. As of what is I read from sites. Node JS is good for handling multiple users at same time. I even use cluster the inbuilt lib for doing multi instance of server on threads.

Is it security, speed, memory usage. I do not know what exactly is it.

Is there really anything as such, which is practically lacking or should be done as a good practice ?

Thanks in advance.

๐ŸŒ
DEV Community
dev.to โ€บ codenameone โ€บ comment โ€บ 1hofa
NodeJS isn't more performant than Java. That's a common misconception. It's g... - DEV Community
Async Java frameworks includes the benefits of threading and the throughput of NodeJS. This will be resolved by project Loom which is fast approaching production. Project loom essentially turns threads "partially" green. That would mean you can code synchronously in Java using threads and the simpler stream IO. But the OS won't allocate a thread per Java thread.
Find elsewhere
๐ŸŒ
Reddit
reddit.com โ€บ r/programming โ€บ what makes node.js faster than java?unprofessional test cases
r/programming on Reddit: What makes node.js faster than java?Unprofessional test cases
January 18, 2015 - However if you use non-blocking IO in Java, it absolutely annihilates NodeJS. From my own (relatively unprofessional) benchmarks in Scala, it easily handles several times more requests per second.
๐ŸŒ
Reddit
reddit.com โ€บ r/webdev โ€บ java/ spring boot or nodejs/ typescript? why?
Java/ Spring Boot or NodeJS/ Typescript? Why? : r/webdev
May 17, 2023 - I/O heavy app -> go for nodejs (or spring webflux), CPU intensive -> any multithreaded language. Edit: all I want to say is as a developer you should be technology agnostic and not dependent on a certain stack. ... Worker threads mislead me. You cannot share memory with the main thread in a worker โ€œthreadโ€. There are no memory handling tools in JS because itโ€™s meant to be single threaded and non-blocking. ... Java if you want a job (even if its not the trend anymore, its wildly used and youll find it in LOTS of jobs, and node TS if you actually want to like what you do
๐ŸŒ
Reddit
reddit.com โ€บ r/developersindia โ€บ should i do backend in nodejs or java ?
r/developersIndia on Reddit: Should I do Backend in NodeJS or Java ?
April 4, 2023 -

Should I do Backend in NodeJS or Java ?

I am enrolled in a NodeJS backend course. I am also doing a full stack course, should i learn in java backend or nodejs backend ? If I learn java backend in this full stack I will have knowledge of how backend in both works or Should I do in nodejs right now and java afterwards

The full stack course has an option for me to choose from Java or NodeJS.

Also I have 45 days time, after which I have to join my company. My motive is to switch company before joining this one as it's a service based.

What should I do ?

๐ŸŒ
Reddit
reddit.com โ€บ r/programming โ€บ comparing node.js vs jvm frameworks performance
r/programming on Reddit: Comparing Node.js vs JVM frameworks performance
December 8, 2011 - In the like-to-like second test, Node.js got effectively identical performance to the JVM. Now consider that V8 is just about 3 years old, versus Hotspot which is about 12, and Node.js is all dynamically typed JS while this framework is written ...
๐ŸŒ
Medium
apuravchauhan.medium.com โ€บ node-js-vs-java-web-performance-benchmark-analysis-scaling-insights-de2ce3998d18
Node.js vs Java Web Performance: Benchmark Analysis & Scaling Insights | by Apurav Chauhan | Medium
April 26, 2025 - Frameworks: NestJS (Node.js) and Spring Boot with Tomcat (Java) ... /hello-cpu: Performing CPU-intensive calculations (Fibonacci sequence(25), recursive implementation)
๐ŸŒ
Silvrback
rclayton.silvrback.com โ€บ speaking-intelligently-about-java-vs-node-performance
Richard Clayton - Speaking Intelligently about "Java vs Node" Performance
March 14, 2016 - I think a final point to make is that performance isn't everything; and those of us in the know should make a point of emphasizing that. However, I'm going to humor the performance argument by explaining the process and concurrency model differences between both languages to answer any high level questions you might have. Java applications tend to be ran as a single process.
๐ŸŒ
TechMagic
techmagic.co โ€บ blog โ€บ node-js-vs-java-what-to-choose
Node.js vs Java โ€“ What to Choose? โ€” TechMagic
Multiple threads can run simultaneously without affecting each other. Compared to Node, it allows for more efficient use of system resources and can improve application performance.
๐ŸŒ
Peerbits
peerbits.com โ€บ blog โ€บ nodejs-vs-java-backend-development-comparison.html
Node.js vs Java: Which is Better for Backend Development?
In summary, both Java and Node.js have their own set of advantages and disadvantages, and it is important to understand them in order to make an informed decision for your next project. In terms of speed, Node.js tends to perform better while Java excels in stability and security.
๐ŸŒ
Simform
simform.com โ€บ home โ€บ the simform blog โ€บ comparing nodejs vs java: your backend tech stacks explained
Comparing Nodejs vs Java: Your Backend Tech Stacks Explained
January 31, 2025 - Nodejs vs Java comparison based on crucial parameters such as app architecture, app size, modularity, performance, UX, community and more.