Node.js - Cluster Module
Consider this Node.js cluster code snippet:
What will happen when you visit
const cluster = require('cluster');
const http = require('http');
if (cluster.isPrimary) {
cluster.fork();
cluster.fork();
} else {
http.createServer((req, res) => {
res.end('Worker ' + process.pid);
}).listen(8000);
}What will happen when you visit
http://localhost:8000 multiple times?