Why Node.js is Better than Java

preview_player
Показать описание


I'd concur if I knew what that meant.

Doesn't Java handle it?

Sure, but not as many. And a website loses a customer when they get connection errors.

In a mobile world, people might hit the refresh button once or move on to the next site on their list who offers what they want.

End result, fewer resources needed to handle the same volume of people.

Either they get faster connection times and you get more sales, or you need fewer servers to handle the load.

Both of which look really good to big companies. Why is Java slower?

Java gives each thread a stack, and each stack uses memory. Asynchronous connections prevent the threads from tying the server in knots.

This is interesting because I'd heard that Java was faster.

Java can use non-blocking calls and multi-threading. That programmers don't use it is a whole other discussion.

I've never seen an octopus in customer service.

Рекомендации по теме
Комментарии
Автор

Isn't Node.js an application written in C to listen incoming http requests and send back responses to the clients? and isn't Java a programing language? If so than how are you comparing a web server to a language? Are we creating a new religion here???

jluvsrion
Автор

Node.js uses a thread pool for I/O. These separate threads are all free to run on multiple cores, although the operating system manages this, not you.

nyahhbinghi
Автор

Vert.x beats Node.JS, and allows you to program in Java, JavaScript, Ruby, Python, Groovy, and soon Scala, Clojure, Ceylon and PHP. Vert.x can also use multiple cores instead of Node.JS 's just one core.

JakobJenkov
Автор

how are you comparing node.js to java? its not even comparing apples and oranges its like comparing humans to flour

twiggy
Автор

can you make more compare between these two? like env dev, etc.

HienNguyenTechIO
Автор

It is better for somethings but worse for others. It is perfect for real time communication or networking but Java is better for full business apps or number crunching simulations.

anismatar
Автор

So, Node.js (a framework) is better than Java (the whole language and its ecosystem) because it runs in a single core? This video is so short-minded it's depressing.

cardferr
Автор

I'm Java & JS programmer, who loves NodeJS, but WTF does this have to do with "Java"?

jphedley
Автор

Good video for Cartoon Network, Rush out kids !

shakthi
Автор

would be better if you compare node and salty bagels :)

GabrielEspinozaMusic
Автор

Hi,
Can I use node js in spring boot projects

surajchougala
Автор

This is plain stupid. Comparing shoes with shirts. Also, say hello to akka, finagle and quasar.

MrCuriousVoyeur
Автор

is node horizontal scalable?? I guess no

justkaushik
Автор

I wouldn't use node.js for any large or enterprise projects. LOL

BryanChance
Автор

How about some benchmarks to back up your assertions rather than crap puns & Steven Hawking voice overs? No wonder your vote counts are disabled. Oh & BTW use cluster & you can use multiple cores with Node

StaticSkyTV
Автор

very bad content. what do you mean by single core?

AbhijitGaikwad-gabhi
visit shbcf.ru