Node.js · Senior · Question 60 of 75
What is the main trade-off of cluster round-robin vs. letting the OS distribute connections?
- ✓Correct answer: Round-robin (default on most platforms except Windows) balances load more evenly; OS distribution can leave some workers busier
- 2OS distribution is always faster and has no downsides
- 3Round-robin only works with HTTPS
Explanation
With round-robin the primary accepts connections and passes them to workers. It's controlled by cluster.schedulingPolicy or NODE_CLUSTER_SCHED_POLICY.