Re: How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread ajaybodhe
Thanks @wandenberg. Can you clarify more on, what do you mean by getting the value from "config" : But, if you want to get the value from your "config" and use it there, Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252501,252506#msg-252506 __

How to call redis2-nginx-module or any other module from another module

2014-08-12 Thread ajaybodhe
redis2-nginx-module is written with all location configs. Does it mean that the module can only be called from browser with some url? If I want to introduce new module into reuest processing path & call redis2-nginx-module to fetch data from redis how I can do it? Posted at Nginx Forum: http://fo

CPU Intensive Tasks inside Nginx Module

2014-08-12 Thread ajaybodhe
Hello, I am writing an application server as Nginx standard module, This code is supposed to perform some CPU intensive tasks. If the single thread/master-process in Nginx doing event-loop is stuck inside this part then throughput/performance of server would drop. What is the way to execute this?

How to write async http web client inside nginx code?

2014-08-12 Thread ajaybodhe
I am writing an application server whose code will be written as nginx module (c/c++). This server is supposed to send HTTP Requests to other servers & wait for response from them for 200-400ms. If I use libcurl to make http calls then the single thread of nginx will be blocked & event loop will n