Correct way of using non-blocking operation in request handler