Get the latest tech news

Why is spawning a new process in Node so slow?


At Val Town we spawn a lot of processes. We're working on making it faster

The simplest thing we can do spawn more processes and run an http server per-process using Node’s cluster module. I’d ideally find a way to keep the single thread execution model of javascript and still make spawns fast. I’m familiar with Unix Domain Sockets where you have a file called (eg) something.sock and you can listen on it and connect to it just like a network address.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of node

node

Photo of new process

new process

Related news:

News photo

German team extracts battery-grade lithium from geothermal water | The new process could provide an alternative to more conventional ‘dirty’ methods of extracting lithium.

News photo

Scientists grow diamonds from scratch in 15 minutes thanks to groundbreaking new process

News photo

Chinese chipmaker launches 14nm AI processor that's 90% cheaper than GPUs — $140 chip's older node sidesteps US sanctions