Hi Nginx Mailing List,<div><br></div><div>I&#39;m in the process of creating a nginx module that serves files from a file system within mongoDB.</div><div><br></div><div>Code is here: <a href="http://github.com/mdirolf/nginx-gridfs">http://github.com/mdirolf/nginx-gridfs</a></div>
<div><br></div><div>Basically we embed our C-driver into the module and talk to mongoDB that way.</div><div>When the handler is called, it retrieves a file chunk by chunk from mongoDB and serves it.</div><div><br></div><div>
I would be very grateful if someone would be able to clear up a few things for me, as I still haven&#39;t fully wrapped my head around nginx&#39;s internals...</div><div><br>Do I save anything by calling ngx_http_output_filter() for each chunk of data.<br>
</div><div>If the call to mongoDB blocks the worker process, would it be just the same to call ngx_http_output_filter() once for the whole file?<br>Might there be a faster way to accomplish this task?</div><div><br></div>
<div>Thanks in advanced!</div><div><br></div><div>Christopher</div><meta http-equiv="content-type" content="text/html; charset=utf-8">