|
|
|
|
|
by badminton1
3253 days ago
|
|
What all these tutorials omit is the tradeoffs JavaScript and node incur in order to be simple and friendly. - In JavaScript: no type annotations, numbers are floating point numbers, garbage collected, no multi-threading in the language spec. There are some ways to workaround these limitations, but they're not a part of the language. - The concurrency model of node, based on libuv event loop. This dictates what node is good for and what is not good for. Short lived tasks = good. Long lived tasks = bad (service degradation + cascading failures bad) |
|