If you wanted to use gridfs, you could have a really simple script that
nginx proxied to (or via fastcgi) that did the gridfs stuff. You’d get
caching from the proxy module and avoid blocking. Not ideal, but it
should
work fine. A simple thing in perl/ruby/C, etc.
I will rethink my idea, but GridFS/MongoDB replication maintains
so nice instead of rsync copy jobs
Given the popularity of MongoDB, I’m sure it won’t be too long before an
Nginx non-blocking module appears for it. This would probably happen
quicker if the Mongo guys provided a async client C library. I would
suggest contacting them or finding an appropriate forum asking them
about an async client. The more people that mention it to them, the
quicker they’re likely to get one done.
If you’re looking for a clustered filesystem, you might also want to
consider MogileFS - there’s an Nginx module for that (which I’m pretty
sure is non-blocking).
If you wanted to use gridfs, you could have a really simple script that
nginx proxied to (or via fastcgi) that did the gridfs stuff. You’d get
caching from the proxy module and avoid blocking. Not ideal, but it
should
work fine. A simple thing in perl/ruby/C, etc.
Hello Brian,
thanks for your answer. Yes, that sounds interesting, i will try such a
setup with node.js which should non-blocking too, an use the nginx
proxy_cache function.
Elena,
would you please share your experiences with us? it’s been 3 ears and
now we
(a small startup) want to create a production solution that can scale.
Mongo still didn’t release asynchronous driver and we want to go down
nginx+nodejs script for gridfs (nginx-gridfs proejct also no longer
supported).
Thanks Roberto,
since we are not using python in our stack I just realized that we can
keep
async script\route as part of our play application and only add
proxy_cache
nginx configuration for this route. I think we can even leave it without
the
same app server and application, would be simpler to maintain and we can
always scale it by adding a few more app servers just for image
processing
if needed.
Elena,
would you please share your experiences with us? it’s been 3 ears and now
we
(a small startup) want to create a production solution that can scale.
Mongo still didn’t release asynchronous driver and we want to go down
nginx+nodejs script for gridfs (nginx-gridfs proejct also no longer
supported).