thom4parisot / nodebook

📖 Livre publié aux Éditions Eyrolles • Première édition : Node.js v10 et npm v6.
https://apprendre-nodejs.fr/v1/
Other
304 stars 73 forks source link

Comment paralléliser les traitements ? #224

Open DirtyF opened 6 years ago

DirtyF commented 6 years ago

Des outils en ligne de commande tirent parti de la possibilité de paralléliser les traitements.

Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file. — https://github.com/avajs/ava/blob/master/readme.md

DavidBruant commented 6 years ago

https://www.researchgate.net/publication/228683178_Three_layer_cake_for_shared-memory_programming Dans ce modèle, JS :

Ce n'est pas une force de JS/Node. Mais c'est intéressant de le dire et pousser les gens qui veulent vraiment vers Rust ou C++ (ptet Go, je connais moins)