Closed AdrianHu99 closed 5 years ago
public static int connectionTimeout = 50; // 50 ms
public static int clientExecutionTimeout = 100; // 100 ms
public static int requestTimeout = 20; // 20 ms
public static int socketTimeout = 25; // 25 ms
public static int maxErrorRetries = 5;
Another example: public static int connectionTimeout = 50; // 50 ms public static int clientExecutionTimeout = 1000; // 1 s public static int requestTimeout = 500; // 500 ms public static int socketTimeout = 550; // 550 ms public static int maxErrorRetries = 3;
https://aws.amazon.com/blogs/database/tuning-aws-java-sdk-http-request-settings-for-latency-aware-amazon-dynamodb-applications/