[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: nginx and lua for web scripting
- From: Craig Barnes <craigbarnes85@...>
- Date: Sun, 23 Sep 2012 16:48:48 +0100
On 23 September 2012 14:38, NU-g.lister <g.lister@nodeunit.com> wrote:
> ... I am still
> having an issue understanding what is the role of Lua with openresty I
> thought it is to write extended directives etc. For the server not dynamic
> web pages and content. I wish to generate primarily JSON but still it seems
> like I need CGI.
>
> TIA,
> george
>
The ngx_lua module can do anything you can do with CGI and a few
things you can't. It's also considerably faster. If you need to
generate a JSON response from a database query, OpenResty makes it
incredibly easy[1].
[1]: https://github.com/agentzh/rds-json-nginx-module/blob/master/README#L12