# Nginx : Reverse Proxy + Redis

**URL:** <https://www.ruby-forum.com/t/nginx-reverse-proxy-redis/236463>\
**Category:** NGINX\
**Created:** [September 5, 2013, 7:27am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-redis/236463 "2013-09-05T07:27:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [September 5, 2013, 7:27am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-redis/236463/1 "2013-09-05T07:27:40Z")

</div>

Hi,

I have an existing Nginx setup up and running to get an reverse proxy  
working with caching support(Nginx InMemory). I have integrated it with  
LUA to get some  
customizations for changing request as per some biz rules. The system is  
used for serving XML out the reverse proxy being a SOA server.

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

Was wondering how to move ahead with the approach/design. Also from an  
implementation point too.

I am a kind of newbie here.

Regards,  
Shubham
