Q:

Node.js function without callback

I have a node.js server. When a user requests a page I call a function that pulls some info from db and services the request. Simple function with callback then execute response.send
I need to perform secondary computation/database updates which are not necessary for rendering the page request. I don't want the user to wait for these secondary ops to complete (even though they take only 200 ms.)
Is there a way to call a function and exit gracefully without callback?

A:

You can simply do something like this
app.get('/path', function(req, res){
    getInfoFromDatabase();   // get info from the database
    res.render('myview', {info: data});

    // perform post render operations
    postRenderingCode();
    return;
});

