ACA JS311 Week 7
What is the preferred method of resolving unhandled exceptions in Node.js?
The preferred method is to add a layer between the application and the Node.js process which is called the domain. By having the application running in a separate domain, you can handle exceptions at the domain level, before they reach the process level which allows for a safe environment.
How does Node.js support multi-processor platforms, and does it fully utilize all processor resources?
Clustering allows you to create virtual instances of your node server with as many CPU-cores you have to support multi-processor platforms.
What is typically the first argument passed to a Node.js callback handler?
Node Js core modules, as well as most community-published modules, follow a pattern where the first argument to any callback handler is an error object.