computation - Node.js: What is most efficient way to delegate CPU-heavy work? -
every single book, tutorial , course out there says node.js doesn't handle heavy cpu computation haven't crossed 1 suggest solution.
do think idea deal said computation problem writing separate worker in technology better handles , consume results node via - - rest api?
- any suggestions on how handle this?
- what do?
- did solved problem?
the main advantages of node.js platform written support asynchronous io right beginning. gives productivity of javascript server-side development.
this has being said, since language has dynamic type system , runtime jit compililing , specific static-compile time optimization extremly helpfull cpu-bound tasks cannot done.
i wrote joke, when thought again, there nothing wrong rewiting specific cpu bound tasks in c/c++ , link addon mechanism. the platform direct there
further read: https://nodejs.org/api/addons.html
Comments
Post a Comment