
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
@polka/cluster
Advanced tools
Intialize and run a HTTP cluster; not limited to Polka!
Accepts a Polka app, a programmatic Polkadot app, or any HTTP handler and runs it as a Node.js cluster.
For more information on Node.js clustering, please read How it Works :bow:
$ npm install --save @polka/cluster
const polka = require('polka');
const cluster = require('@polka/cluster');
const cors = require('cors')({ origin:true });
const { PORT=3000 } = process.env;
const app = (
polka()
.use(cors)
.use('/items', require('./items'))
.get('/alive', (req, res) => {
res.end('OK');
})
);
cluster(app, 4).listen(PORT);
Returns: http.Server or Object
If handler was an application, then it is returned. Otherwise a new http.Server instance is returned.
Type: Function or Object
The HTTP handler function to run, which will be attached to the http.Server as its requestListener.
Similarly, handler may be an Object so long as it exposes a listen method.
This means that you may pass in entire Polka, Polkadot, or Express applications!
Type: Number
Default: os.cpus().length
The size of the cluster. Put differently, your application will run on <size> threads.
By default, your cluster will spawn one Worker per thread. For example, "most" modern Intel-based CPUs have two threads per CPU core, meaning that a quad-core CPU will have 8 threads... making 8 the default cluster size for this example.
Important: Your
sizevalue will not exceed the value determined byrequire('os').cpus().length
Any issues or questions can be sent to the Polka repository.
However, please specify that your inquiry is about @polka/cluster specifically.
MIT © Luke Edwards
FAQs
Intialize and run a HTTP cluster
We found that @polka/cluster demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.