Hello,
I want to call some C code from LUA modules.
I am handling all async IO in LUA like redis, http upstream.
Then the response will be passed on to C function which will do CPU consuming operations & return result back.
C code may need to access Nginx standard data(eg: ngx_http_request_t *) as well.
I see there are three ways to do it Lua BInding, Lua Interface & Luajit ffi.
Whats the difference in each approach?
If I use Luajit FFI, will the Nginx standard data(eg: ngx_http_request_t *) be available in C code?
Can someone provide the example?
Thanks.