Node-JS同时处理多个请求

我创build了一个监听端口8888的服务器:

http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); console.log('start server'); req.on('data', function (data) { var json = null, url_parts = {}; url_parts = url.parse(req.url); json = JSON.parse(data); if (Router.route(url_parts, json, res) === false) { console.log('error with routing'); res.end('error with routing'); return; } console.log('end of request'); res.end('success'); }); }).listen(8888); 

Router.route ,有一个沉重的代码执行。

问题是,当有人访问url http://localhost:8888/SOME_URL另一个调用这个端口,如: http://localhost:8888/SOME_OTHER_URL他必须等待很多时间..

我怎样才能同时处理两个电话?

Tnx为您的帮助!