<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi!<br><br><div>> Date: Sat, 30 Nov 2013 14:37:04 -0800<br>> Subject: Re: Help on designing using multiple location/upstream modules<br>> From: agentzh@gmail.com<br>> To: nginx-devel@nginx.org<br>> <br>> Hello!<br>> <br>> On Sat, Nov 30, 2013 at 11:05 AM, Reetesh Ranjan wrote:<br>> > Thanks for the help! Going by the documentation of the lua-nginx-module on<br>> > its subrequest handling it looks really promising for my use case.<br>> <br>> Great :)<br>> <br>> > I am<br>> > currently writing the Sphinx2 upstream module.<br>> <br>> BTW, you could also build a lua-resty-sphinx2 library atop ngx_lua's<br>> nonblocking cosocket API instead of writing an upstream C module. You<br>> can check out the lua-resty-mysql or lua-resty-redis libraries for<br>> examples:<br>> <br>> https://github.com/agentzh/lua-resty-mysql<br>> <br>> https://github.com/agentzh/lua-resty-redis<br>> <br>> The ngx_lua cosocket API is more flexible and much easier to use :)<br>> That way you also don't have to use nginx subrequests at all ;)<br><br>I was already midway writing the upstream module, and completed it. It was a great exercise anyway for looking into guts of nginx upstream state machine. :) I would look at the lua ones next. I am sure the learning obtained here and the eventual approach I had to take would be useful to build lua-resty-sphinx2.</div><div><br></div><div>Looking forward to be part of the great openresty bundle! :)<br><br>> > Would get back with questions<br>> > in case I have any on using the lua-nginx-module for achieving what I need<br>> > to do.<br>> ><br>> <br>> You're recommended to post ngx_lua related questions to the<br>> openresty-en mailing list:<br>> <br>> https://groups.google.com/group/openresty-en<br>> <br>> That way we can see your mails sooner rather later :)<br>> <br>> Best regards,<br>> -agentzh<br>> <br>> _______________________________________________<br>> nginx-devel mailing list<br>> nginx-devel@nginx.org<br>> http://mailman.nginx.org/mailman/listinfo/nginx-devel<br></div> </div></body>
</html>