Hello!
On Fri, Aug 1, 2014 at 3:29 AM, ashish adhav wrote:
> I am thinking of moving my webapp to openresty.
> Can I use languages like C / C++ instead of LUA ?
>
Yes. For C/C++, there are two options:
1. Write NGINX C/C++ modules directly and plug them into OpenResty via
./configure --add-module=PATH. The ngx_lua module itself is
implemented this way as well.
2. Write C/C++ dynamic libraries (.so) and load/call them directly
from within Lua via the FFI API: http://luajit.org/ext_ffi.html This
way you use Lua just as the top-level glue.
Regards,
-agentzh