I'm trying to understand the benefit of using the async methods in this lib.
In node.bcrypt.js, the async methods use threads under the hood to keep the expensive computations out of the main Node process.
By contrast this lib uses nextTick/setImmediate which just delays the expensive computation until the current call stack has completed. Doesn't this mean that several users logging in in quick succession could lock up the application?
If so is there a recommended way to mitigate this issue (e.g. using child_process or similar)?
I'm trying to understand the benefit of using the async methods in this lib.
In
node.bcrypt.js, the async methods use threads under the hood to keep the expensive computations out of the main Node process.By contrast this lib uses
nextTick/setImmediatewhich just delays the expensive computation until the current call stack has completed. Doesn't this mean that several users logging in in quick succession could lock up the application?If so is there a recommended way to mitigate this issue (e.g. using
child_processor similar)?