Skip to content
Snippets Groups Projects
Commit 94ac90b0 authored by Hicham Barhoumi's avatar Hicham Barhoumi Committed by Makhtar DIAGNE
Browse files

[TECH] Add pooling for httpClient for better performance

parent a8ce4d56
No related branches found
No related tags found
1 merge request!1Feature/design/1
......@@ -193,7 +193,6 @@ public class BaseRestClientFactory implements RestClientFactory {
? new PoolingHttpClientConnectionManager(socketFactoryRegistry)
: new PoolingHttpClientConnectionManager();
LOGGER.debug("Pool configuration {}", poolConfig);
if (poolConfig != null) {
connectionManager.setMaxTotal(poolConfig.getMaxTotal());
// Default max per route is used in case it's not set for a specific route
......
......@@ -81,10 +81,10 @@ public class RestClientConfiguration {
/**
* total pool size for httpClient
*/
private int poolMaxTotal = 10;
private int poolMaxTotal = 20;
/**
* pool size per route(host)
*/
private int poolMaxPerRoute = 10;
private int poolMaxPerRoute = 20;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment