I create express.js example by WebMatrix. I want to create a api to get result from myfunction. If first request case is complicated and spend many time and the second request case is simple, the second request have to wait the first request finish. Can I do something that the second request can return data faster than first request?
app.post('/getData', function(req, res) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
var case= req.body.case;
var json = myfunction(case);
res.json(json);
});