3 ms·
There are threads and processes and both have their pros and cons. Yes it is great that Node has multi-process support out of the box, but what about when threa
by rpedela 13y ago
There are threads and processes and both have their pros and cons. Yes it is great that Node has multi-process support out of the box, but what about when threads are a better solution? In my opinion, there is a place for a multi-threading support even if it is not the "Node way".
- bcoates 13y agoShort of rewriting the whole system around a threaded model, the only reason to use threads over processes in Node is to make the IPC faster. This means that ultimately supporting threads is an optimization that has to compete for cost-benefit with all the other possible optimizations for Node to support.