Yes, child processes or webworkers (which usually implemented using child processes anyway).
Fibers run in the same thread, so this isn't really a solution.
It depends on the app though. Sometimes you can just spawn a lot of instances in a cluster using something like pm2, and while one blocks, clients can use others.
01.09.2014, 06:45, "Sanjeev Koranga" <[email protected]>:
--So if an app is doing lot of crypto, would you advice using child processes/fibers/webworkers for running crypto functionality?
On Saturday, August 30, 2014 4:29:28 PM UTC-7, mscdex wrote:On Friday, August 29, 2014 8:02:25 PM UTC-4, Sanjeev Koranga wrote:When I use the node crypto module, does it block the event loop while processing or spawn a different thread in C++?
Currently there are no non-blocking counterparts to the existing functions in the built-in crypto module for node, except for `randomBytes()`/`pseudoRandomBytes()` which run in a separate thread if a callback is passed to those functions.--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/0980ed05-2d1b-4430-bfbd-e5e011c48410%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/2569201409541169%40web12m.yandex.ru.
For more options, visit https://groups.google.com/d/optout.
