Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jetty httpclient


On Fri, Dec 13, 2013 at 1:08 PM, kim young ill <khiemu@xxxxxxxxxxxxxx> wrote:
> hi there,
> is there any reason the httpclient should be used in a servlet ? would
> putting it in a custom(Proxy)-handler make it lightweighter & what need to
> be consider there (threading...)?

Jetty 9 already ships a proxy module (see jetty-proxy) that uses
HttpClient to perform asynchronous calls to backend servers.
So if you need a proxy, it's already there.

If you want to write your own, then yes HttpClient is a very scalable
solution because it is completely asynchronous.

Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.

Back to the top