Utilising more cores in node
Since nodejs uses single thread , if I deploy my application in AWS with autoscaling enabled, won't it increase cost , since it uses only single core of the instance?
1 Reply
depends what instance you use - if the instance only has 1 core, then node can utilise 100% of the instance's cpu
it's not entirely true that nodejs uses a single thread anyway - your javascript will only run single-threaded, but nodejs itself can start more threads to handle stuff like io in the background