Abstract
There are a lot of detractors out there arguing against the use of Node.js, many of which arguments are rooted in the myth that Node.js-based systems have to be single-threaded. Nothing could be further from the truth—and with the cluster module, we can effortlessly fork a Node.js process to create multiple processes. Yes, each process will still be single-threaded and be blocked by inapt synchronous code or some laborious processes (such as hashing of passwords). However, the whole system, now consisting of a few processes, won’t be blocked.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Azat Mardan
About this chapter
Cite this chapter
Mardan, A. (2014). Multithreading with Clusters. In: Pro Express.js. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0037-7_13
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0037-7_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0038-4
Online ISBN: 978-1-4842-0037-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books