<div dir="ltr"><div><div><div><div><div>Hi all!<br><br></div>I'm researching possible approaches to development of asynchronous GridFS module for Nginx (because the existing one blocks the main Nginx thread).<br><br></div>I've read the source codes of most modules from <a href="https://www.nginx.com/resources/wiki/modules/" target="_blank">https://www.nginx.com/resources/wiki/modules/</a> and found that all of asynchronous modules (e.g. Postgres or Mongo) implement the database protocol by itself working with upstream. Is it the only way? I would like to use mongo-c-driver (<a href="https://github.com/mongodb/mongo-c-driver" target="_blank">https://github.com/mongodb/mongo-c-driver</a>) but I need an example how to embed it into Nginx event loop to make non-blocking module.<br><br></div>Could you suggest any module that uses the same approach or some manual about it?<br><br></div>Best regards<br></div><div>Alexander<br></div></div>