Reverse Proxy Java

14,795

Solution 1

Undertow provides an embeddable reverse proxy server that can be changed programatically at runtime.

If you want to operate at a higher level via an API then there is Backflow. It supports adding/removing proxy backends using REST calls.

Solution 2

As far as I can see, http://www.membrane-soa.org/service-proxy/ supports all your requirement:

Membrane has a WebUI where you can add and remove proxy connections at runtime, e.g. forward incoming request on port 80 for a virtual host to a target host:port

Membrane can be run as standalone application or deployed in an application server.

Membrane is an Open Source project under the ASF 2.0 License

Share:
14,795

Related videos on Youtube

F.O.O
Author by

F.O.O

Likes Cloud Computing, and Large scale systems in general.

Updated on June 04, 2022

Comments

  • F.O.O
    F.O.O almost 2 years

    I am working with a Java web application and I would like to have a reverse proxy masking some of my internal endpoints.

    Requirements:

    1. The reverse proxy maps need to be modifiable at runtime e.g if we move some components to another server we should be able to modify the mapping such that new requests are routed to this endpoint.
    2. This must be embeddable to a standard servlet container like Jetty.

    Most of the Java Reverse Proxies out there such as J2EP require mapping information available prior to starting the application.

  • beresfordt
    beresfordt about 9 years
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.