[jetty-users] Request forwarding to services on different JVMs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jetty-users] Request forwarding to services on different JVMs

wsharten
I need to forward requests for different virtual hosts (ABC.COMDEF.COM, etc.) to different JVMs (service for ABC.COM, service for DEF.COM, etc.) on the same machine.  Can Jetty (8) be used like Apache's mod_proxy this way?  How? Any advantages or disadvantages? 

They need to be different JVMs for security and start/stop/crash isolation from each other. Requests need to all come to port 80 (or all to ssl port 443) because non-standard ports are often blocked for our users. Services could listen for 'forwards' on their own ports internally, if that would help.

Ideas?

Thanks.

_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-users] Request forwarding to services on different JVMs

Mike Pilone

You might want to look at using the ProxyServlet on the front end (http://download.eclipse.org/jetty/stable-8/apidocs/index.html?org/eclipse/jetty/servlets/ProxyServlet.html). I found a few bugs with it a while back so I ended up writing my own but I believe that most of the issues have been resolved. We use it as a simple reverse/routing proxy in our test environments to route specific request paths to a bunch of backend servers. In production we use Cisco load balancers to do the same thing.

 

You may also want to check-out HAProxy  (http://haproxy.1wt.eu/). I've used it before in other production environments and it was rock solid and very flexible.

 

-mike

 

* | Mike Pilone | Software Architect, Distribution | [hidden email] | o: 202-513-2679  m: 703-969-7493

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Bill Harten
Sent: Sunday, January 15, 2012 10:07 PM
To: [hidden email]
Subject: [jetty-users] Request forwarding to services on different JVMs

 

I need to forward requests for different virtual hosts (ABC.COMDEF.COM, etc.) to different JVMs (service for ABC.COM, service for DEF.COM, etc.) on the same machine.  Can Jetty (8) be used like Apache's mod_proxy this way?  How? Any advantages or disadvantages? 

 

They need to be different JVMs for security and start/stop/crash isolation from each other. Requests need to all come to port 80 (or all to ssl port 443) because non-standard ports are often blocked for our users. Services could listen for 'forwards' on their own ports internally, if that would help.

 

Ideas?

 

Thanks.


_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users