I want to setup a reverse proxy to 5 web servers. All the requests that the reverse proxy receives will have a unique id (UID) in the http request query string. I have a database that contains the UID -> web server mappings.
I'm not sure if this is reasonably possible. I'd like the reverse proxy do the following: 1. a request comes in 2. check cache for UID, if not found load it from the database 3. forward the request to the appropriate web server
FYI- I can't encode the server id into the UID, since the mapping might change but the uid will not.
Is something like this possible with perlbal or some other tool? I don't mind if I need to do some scripting to make this happen. I'm just not sure what my options are or what other people have done to solve this problem.
any input is greatly appreciated!!!