Re: nginx custom module multi process help

2016-06-16 Thread de_nginx_noob
I will definitely join the google group and check out Lua. Thanks for your help! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267611,267654#msg-267654 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx custom module multi process help

2016-06-16 Thread itpp2012
Theoretically yes, it all depends how and by what means this data is collected and if you need to wait for some parts, have a look at the example Urls I send before or join the openresty forum on googlegroups with some example code/description what your after. nb. a Lua cache is an in-memory cache

Re: nginx custom module multi process help

2016-06-16 Thread de_nginx_noob
If the external server that I'm getting the data from doesn't have a relational database (and instead responds to udp requests), will I still be able to cache multiple fields from one udp request using Lua so that I can access them in the conf file later? Can you clarify what you mean by Lua cache?

Re: nginx custom module multi process help

2016-06-15 Thread itpp2012
Why not use Lua, collect the data from your variables, run the query (and optionally store them in a Lua cache) and process it all real-time, none-blocking and without any (extra) module. Examples: http://stackoverflow.com/questions/25955869/how-do-i-use-mysql-for-dynamic-doc-root-with-nginx https

nginx custom module multi process help

2016-06-15 Thread de_nginx_noob
Hi, I'm new to nginx development and I have to work on a custom nginx module. The module is designed to provide a list of variables for the user to use in the nginx.conf file. Whenever those variables are used, the module makes a udp request to a helper server to get the correct value of that var