doing database write after the response
<p>I have a web service that receives requests from users and returns some json. I need to save the json string in the database so for the moment, the write query occurs before the response is sent back.</p>

<p>Is there a way to send the response first and then do the write query, after the response left the web service?</p>

<p>Thanks.</p>
