On Sun, Apr 15, 2012 at 1:01 PM, Markus Walther <firstname.lastname@example.org> wrote:
> I have reason to study openresty (a nice package - thanks so much for
> providing this to the community!) again.
Glad you like it :)
> Sofar, I did not see any module to talk to couchdb efficiently.
AFAIK, CouchDB uses the REST-style HTTP protocol. So you can use a
non-blocking HTTP client in ngx_lua to talk to CouchDB efficiently.
One option is to use ngx_proxy + ngx.location.capture, another is to
use a Lua library based on the ngx_lua cosocket API.
Here's some examples:
> I'm inclined to give this a shot using your lua module - but do you
> have any quick suggestions on how to best approach this?
You can take a look at
It's a good start.
or other lua-resty-* libraries like lua-resty-redis,
lua-resty-memcached, and lua-resty-mysql :)
> Thanks a lot in advance, Markus
> PS: We had some email conversation in the past, which where very
> helpful. This encourages me to come back this time.
Thanks for your trust :)
P.S. I've cc'd the openresty mailing list so the whole team can see
our discussion here: http://groups.google.com/group/openresty