Hello!
On Thu, Jan 7, 2016 at 7:08 PM, srihari jonnalagadda wrote:
> I'm a newbie to nginx and lua.Trying to write a module which should be able
> intercept a incoming request.
> Lets say, actual request is intended to go to server A.I have to make a rest
> call to another server B before and after sending it to A. Have seen
> echo_location in nginx-echo-module which is trying to register a callback to
> a subrequest which works for me.But came across Lua concepts.Which one
> should I prefer in terms of effeciency? plain nginx running subrequests or
> lua-resty.what are the pros and cons of using them.
>
lua-resty-* libraries based on cosockets are the future. Subrequests
have many complications and limitations but fine for simple usage.
Regards,
-agentzh