I just get interest in node.js.
If everything is execute "non-blockingly", when does it flush the result to the client(browser), if I want to get result from db, post to other server, and return the result get from other server, do I need to put callback inside a callback like this?
var dbquery = db.query(function(result){
var postToServer = otherServer.post(result.id,function(networkResult){
render(networkResult)
})
})
Or can be handle "more gracefully"?