Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we use Node.js cluster using single core processor?

Tags:

node.js

I have a node.js application which receives multiple requests concurrently from clients. If this application is running on a server with a multi-core processor, we can reap the advantages of Node.js cluster to scale-up the application by creating multiple workers which can actually be executed in parallel on a muti-core processor to manage the load.

With Node.js being single-threaded and if my application is running on a server having a single CPU, can we use cluster to scale-up the application?

like image 718
Prem Avatar asked Mar 28 '26 17:03

Prem


1 Answers

Intel cores usually have hyper-threading, allowing two threads per core at (slightly?) slower performance. Even with a single core, you should be able to reap those benefits.

like image 78
Ouroborus Avatar answered Apr 01 '26 10:04

Ouroborus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!