5 ms·
The Node event loop (the control plane) is single threaded, but the data plane is multi-threaded, you can easily write C++ bindings to run in the thread pool to
by jorangreef 9y ago
The Node event loop (the control plane) is single threaded, but the data plane is multi-threaded, you can easily write C++ bindings to run in the thread pool to handle CPU intensive work.
- tannhaeuser 9y agoSpeaking of Node in the context of error handling, what are current best practices in Node (other than running node-forever respawning)? Up to v0.12, Node used to have heuristic cleanup code for file handles and other resources on exception domain error handler execution, but the domain API has been deprecated for some time now ([1], [2]). [1]: <https://nodejs.org/api/domain.html> https://nodejs.org/api/domain.html> [2]: <https://github.com/nodejs/node/issues/66> https://github.com/nodejs/node/issues/66>
- ludwigvan 9y agoThis is pretty informative on handling errors in node: https://www.joyent.com/node-js/production/design/errors https://www.joyent.com/node-js/production/design/errors