Can NODE.JS Server Handle 1M Concurrent Requests? | Real-World App Benchmarking on Dedicated VPS

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


⭐ Timestamps ⭐
00:00 How we'll do Nodejs Benchmarking?
08:36 Getting Started with Benchmarking
12:37 Using autocannon for HTTP Server benchmarking
23:46 What about 1M concurrent requests?
25:39 Creating Custom Benchmarks scripts programmatically using autocannon
34:57 Benchmarking Register-Login API with custom script 10K User registration
49:22 Running basic GET homepage benchmark for 1k concurrency
50:59 Benchmarking 10K Users for 1000 Requests for user
53:20 Is 1M Concurrent requests possible on a 2-Core CPU and 2GB RAM Server?
54:26 Benchmarking Register-Login on the Dedicated VPS Server, is it possible for 1K?
58:41 Why Nodejs is bad for processor-heavy tasks?

⭐Grab the full source code of the App with Benchmarks on Github:

🧭 Watch Tutorial on Designing the website on Figma

🧭 Watch Create a Modern React Login/Register Form with smooth Animations

🧭 Debug React Apps Like a Pro | Master Debugging from Zero to Hero with Chrome DevTools

🧭 Master React Like Pro w/ Redux, Typescript, and GraphQL | Beginner to Advanced in React

🧭 Learn Redux For Beginners | React Redux from Zero To Hero build a real-world app

🧭 Build Login/Register API Server w/ Authentication | JWT Express AUTH using Passport.JS and Sequelize

🧭 Introduction to GraphQL with Apollo and React

Made with 💗 by Coderone
Рекомендации по теме
Комментарии
Автор

If there is a database, it will almost always be the bottleneck.
Caching, indexing, etc helps.
Not the porpouse of this video, but running multi nodejs instances with pm2 or k8s is a good way to scale also.
I'm a software engineer for a bank. We have a lot of unique and concurrent users (I'm not allowed to say the exact number but it is way above the tests of this video) and the main service is powered by node. It is handling well at most cases, with the things I mentioned previously.
It is not the most performant language/VM but is good enough.

LukasSkywalker_
Автор

That was quite interesting and very insightful. Thank you !

williamabboud
Автор

Loved the content man, thank you very much!

lunix
Автор

Seriously underrated channel. But don't worry you are going to get 100k+ in nearby future.

neelthakkar
Автор

I'll rewatch this;
Thanks brother

raymondmichael
Автор

Bro you just rock. This video worth watching really 🔥🔥🔥

mdshadab
Автор

Great job! 👍 Please make a NodeJS scaling tutorial.

akeemovic
Автор

One of the most underrated Youtube channel .

vishutiwari
Автор

Thanks for the video. Could you please suggest which programming language/framework would be the best for handling heavy tasks on the backend side?

ziyaasgarov
Автор

Hi, if we use nodejs cluster, can it do better?

kienang
Автор

Maybe you can run the benchmark on your local machine, so VPS doesn't allocate ram for running benchmark, btw nice video ❤️

gasacchi
Автор

nodejs is not single threaded. Hate it when people make such vids pretending they know it fully. JS is single threaded. Nodejs is not a language, it is a runtime. it makes use of threads too.

adityasethi
Автор

have you tried nodejs cluster combine with worker-thread to load heavy concurrent requests ?

oktachandra
Автор

When you ran benchmark on your server and local machine you were actually utilising only 1 core of the CPU. Would be much better if you scale node at least with pm2 on local machine and VPS as well, then results would be slightly better.

JohnDoe-jizv
Автор

which version of node have you used in this video??

arpitabali
Автор

Could you please make 2 playlists for:
1) nodejs tutorials
2) react/nextjs tutorials ?
Amazing content. thank you

teetanrobotics
Автор

How are you printing the response status and latency in terminal....please reply

dheerajkukreja
Автор

what about clustering to make use of multiple cores

soniablanche
Автор

Would be good if you use multiple threads.

heMech
Автор

Shouldn't you run benchmark on your server(Sever api endpoint) from your local machine instead of logging in to ssh?

sumitsharma