tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Re: Design Question
Date Fri, 05 Aug 2011 21:05:24 GMT
On Fri, Aug 5, 2011 at 1:37 PM, Christopher Schultz
<chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mohit,
>
> On 8/5/2011 1:59 PM, Mohit Anchlia wrote:
>> This switch calls HttpClient Post calls using thread pools to send
>> the request to other systems.
>
> Uh, why not use an HTTP proxy instead of using HttpClient. Squid, Apache
> httpd, countless LBs, and many others have this capability without you
> having to re-write this type of logic. Those products will be faster,
> more configurable, and less buggy than your own hand-rolled code.

I agree but the problem is that I need to perform some kind of merge
of responses and validation checks on the response before returning to
client. Also, need to route to appropriate host based on query string
values. In essense we need control over it. It's not just the proxy.
>
>> One way is to put this code in Valve of existing system and invoke
>> Http call if request is bound to the new system otherwise just call
>> .invoke to the next in chain, is this the good way? I personally
>> don't like it.
>
> I think using Java for this is a mistake.

why?

>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk48VH8ACgkQ9CaO5/Lv0PAk9ACfbZx8zoKJ15URnlZmjV0LYeKB
> L0kAn1wlOq33dV6DlXAmfYVgyKqFZ1/P
> =bJzo
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message