Beto de Castro Moreira

67%
Flag icon
It is worth mentioning that threads can be a possible alternative to processes when running CPU-bound tasks. Currently, there are a few npm packages that expose an API for working with threads to userland modules; one of the most popular is webworker-threads (https://npmjs.org/package/webworker-threads). However, even if threads are more lightweight, full-fledged processes can offer more flexibility and a better level of isolation in the case of problems such as freezing or crashing.
Node.js Design Patterns: Master a series of patterns and techniques to create modular, scalable, and efficient applications
Rate this book
Clear rating
Open Preview