jpos / jPOS-EE

jPOS Extended Edition
http://jpos.org
GNU Affero General Public License v3.0
107 stars 152 forks source link

HttpQuery: increasing default number of connections... #233

Closed barspi closed 3 years ago

barspi commented 3 years ago

...and supporting maxConnections property

The Apache HTTP Client lib that this participant depends on, has a low number of concurrent connections (5 in the current version). This limits the concurrency of HttpQuery, especially when talking to slow remote endpoints and may badly impact the performance of transaction processing under higher loads.

This PR increases the default to 25, and allows the value to be configured in with the maxConnections property.

This value can be overridden by a Java System Property that may be passed to the java process like: java -Dhttp.maxConnections=xxx