3 ms·
I think in the real world there are a variety of cases that benefit from parallel operatio... -Anything dealing with disk I/O like copying or reading files -Se
by scriby 15y ago
I think in the real world there are a variety of cases that benefit from parallel operatio...
-Anything dealing with disk I/O like copying or reading files
-Sending / receiving from S3 or other file repository
-Making a request to external web services as part of a request
-Working with document DBs like Mongo where instead of a join you can do one query per table in parallel
I would love it if you could check out asyncblock and see if you like how it helps manage control flow with fibers. It would be easy to integrate with what you have already. We use asyncblock in a very large node based application, and it's really helpful for keeping business logic straightforward and simple.
Another possibility would be using node-sync (https://github.com/0ctave/node-sync https://github.com/0ctave/node-sync) if you prefer their approach.