Forward http request to other server that will respond to the original requester using java servlets -
i have problem have several servers sending httprequests (using round robin decide server send to) several servers process requests , return response.
i have broker in middle examines request , decides server forward responses can big response sent original requester , not passed through broker. kind of proxy way understand proxy data sent through proxy. possible?
i'm working legacy code , rather not change way requests , responses processed put in middle can smarter routing of requests.
all done using httpservletrequest/response , servlets running on embedded jetty web servers.
thank you!
what you're after broker component using client's ip address when connecting target server. called ip spoofing. sure want implement yourself? intricacies of network implementation of such solution quite daunting. consider using software has option builtin, such haproxy. see these blog posts.
Comments
Post a Comment