|
|
|
|
|
by eyelidlessness
1594 days ago
|
|
If your workload is actually CPU-heavy, Node’s solutions for this are several: - worker threads
- child processes/IPC
- native bindings (n-api/gyp/etc)
- WASM/WASI Maybe so many as to cause choice/research paralysis. If you’re primarily interested in writing JS/TS, worker threads are a great option. And for most use cases you don’t need to worry about shared memory/atomics, postMessage has surprisingly good performance characteristics. |
|