Skip to content

Commit ea8bae6

Browse files
weltonrodrigogsmet
andcommitted
Properly document and unify the default REST Client connection pool size
Comment from Guillaume: The default REST Client connection pool size for RESTEasy Classic was 50, but the one for Quarkus REST is 20. Given most of the time, the limit factor will be the responsiveness of the server, not the speed of the implementation, I think we should be conservative and keep the same values. Co-authored-by: Guillaume Smet <[email protected]>
1 parent 055f883 commit ea8bae6

File tree

2 files changed

+3
-1
lines changed
  • extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config
  • independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl

2 files changed

+3
-1
lines changed

extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientsConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public interface RestClientsConfig {
150150
* <p>
151151
* Can be overwritten by client-specific settings.
152152
*/
153+
@WithDefault("50")
153154
Optional<Integer> connectionPoolSize();
154155

155156
/**
@@ -542,6 +543,7 @@ default Optional<String> uriReload() {
542543
/**
543544
* The size of the connection pool for this client.
544545
*/
546+
@WithDefault("50")
545547
Optional<Integer> connectionPoolSize();
546548

547549
/**

independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class ClientImpl implements Client {
8989
private static final Logger log = Logger.getLogger(ClientImpl.class);
9090

9191
private static final int DEFAULT_CONNECT_TIMEOUT = 15000;
92-
private static final int DEFAULT_CONNECTION_POOL_SIZE = 20;
92+
private static final int DEFAULT_CONNECTION_POOL_SIZE = 50;
9393

9494
final ClientContext clientContext;
9595
final boolean closeVertx;

0 commit comments

Comments
 (0)