Hello!
On Wed, Sep 4, 2013 at 10:32 PM, shubham srivastava wrote:
> Now what I want is to have the below setup working with Redis Cache. (
> Reason of using Redis is to keep the response broked up in way that the
> next requests can use exploit even partial data from earlier responses.
> I would merge the responses back to send the final xml. )
>
> Request -> Check Redis Cache(Not Found) -> Go_To_Actual_Upstream Server
> -> Save_Response_Back_To_Redis(asynch) -> Send the result back to client
>
You can take a look at the ngx_srcache module which can work with Redis:
http://wiki.nginx.org/HttpSRCacheModule
And you can customize the settings of ngx_srcache with ngx_lua too.
Regards,
-agentzh