Skip to content

Commit

Permalink
increase connections for request
Browse files Browse the repository at this point in the history
  • Loading branch information
aacitelli committed Oct 11, 2022
1 parent b23dac3 commit c7723cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public class CosmosDBConfiguration extends AbstractCosmosConfiguration {
CosmosClientBuilder getCosmosClientBuilder() {
AzureKeyCredential azureKeyCredential = new AzureKeyCredential(key);
DirectConnectionConfig directConnectionConfig = new DirectConnectionConfig();
directConnectionConfig.setMaxConnectionsPerEndpoint(300);
directConnectionConfig.setMaxRequestsPerConnection(60);
//GatewayConnectionConfig gatewayConnectionConfig = new GatewayConnectionConfig();
return new CosmosClientBuilder()
.endpoint(uri)
Expand Down

0 comments on commit c7723cc

Please sign in to comment.