r/programming • • Apr 26 '16

Node.js v6.0 released

https://nodejs.org/en/blog/announcements/v6-release/
132 Upvotes

79 comments sorted by

View all comments

0

u/[deleted] Apr 27 '16

[deleted]

12

u/ruinercollector Apr 27 '16
  1. Concurrency doesn't mean threads.

  2. Parallelism doesn't mean threads.

  3. The idea is that you push computationally intense work (i.e. what you might actually want threads for) to another process and possibly even another machine or set of machines instead of bogging down your web server. This is pretty good practice even on a web platform that does let you spin up threads (e.g. ASP.NET)

  4. If you actually need threads and really really want this work in your web server process, you can write a C or C++ module for that particular piece.

2

u/kuikuilla Apr 27 '16

So just to get the request/response loop going due to being blocked by some CPU intensive function execution, I'm supposed to fork another process? Madness.