3 ms·
Speaking 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
by tannhaeuser 9y ago
Speaking 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