Monday, June 25, 2012

Leveraging HttpComponent's ClientRequestFactory


Context

In any sizable system built these days you are going to want to maximize your performance for any connectivity to remote services.  In todays systems, web services are a common resource for carrying out business processes and accessing data.  Unfortunately, establishing a connection to the remote server can be a time-consuming process.  Using a connection manager that can pool connections and keep them alive is a quick score to reducing the connection overhead.  The keep-alive feature is suitable for internal systems however external service providers will probably not allow you to maintain long term connections to their servers.

Recipe

The recipe for configuring the HttpComponentsClientRequestFactory is rather complex in terms of Spring configuration files.




No comments:

Post a Comment