All Products
Search
Document Center

Alibaba Cloud SDK:Advanced settings

Last Updated:Apr 14, 2025

The advanced settings of Alibaba Cloud SDK, such as HTTPS connection pool settings, request settings, proxy settings, timeout settings, and retry settings, are applicable to scenarios that require high concurrency and network security but are limited by the network environment. The advanced settings of Alibaba Cloud SDK support more scenarios by improving the performance, security, and reliability.

HTTP connection pool settings

Scenarios

  • High-concurrency requests: If your application needs to send a large number of HTTP requests at the same time, connection pools can reuse the existing TCP connections to reduce the overhead on frequent connection creation and destruction.

  • Performance optimization: You can specify the size of your connection pool to limit the maximum number of connections. This configuration prevents resource exhaustion caused by massive connections and increases the request processing efficiency.

Examples

  • An application needs to call multiple Alibaba Cloud services, such as Object Storage Service (OSS), Elastic Compute Service (ECS), and ApsaraDB RDS, and the requests are concurrently sent.

  • When you upload multiple files to OSS at the same time, connection pools can greatly accelerate the upload process.

For more information, see Configure an HTTP connection pool.

HTTPS request settings

Scenarios

  • Data security: Compared to HTTP, HTTPS encrypts data transmission over SSL and TLS to prevent network eavesdropping and tampering, ensuring data integrity.

  • Compliance requirements: Some industries, such as finance and healthcare, require high data transmission security. In such scenarios, HTTPS is required.

Examples

  • An application needs to obtain sensitive data, such as bill information and user privacy, by calling Alibaba Cloud API operations.

  • Some industries need to meet General Data Protection Regulation (GDPR) or other data protection requirements.

For more information, see Configure an HTTPS request.

Proxy settings

Scenarios

  • Strictly controlled network: If your application is in a network environment where access to external networks is controlled by a proxy server, such as an enterprise internal network or a firewall-controlled network, you can configure a proxy to enable access to external services.

  • Traffic monitoring: During the development and debugging processes, you can use a proxy to capture and analyze requests for debugging purpose.

Examples

  • An application deployed in the internal network of an enterprise needs to use an HTTP or HTTPS proxy to access Alibaba Cloud services.

  • Multiple applications in an enterprise share the same proxy server, which manages and schedules requests to external services.

For more information, see Configure a proxy.

Timeout settings

Scenarios

  • Improve network stability: If the network latency is high or server response speed is low, a proper timeout period can prevent long-time request hangs.

  • Improve user experience: A proper timeout period for user-oriented applications can prevent long-time waiting caused by service unavailability.

Examples

  • If the network connection is interrupted when a user uploads large files to OSS, a proper timeout period can terminate the requests promptly and prompt the user to re-upload the files.

  • A proper timeout period for time-consuming API operations, such as batch operations, can prevent long waiting times for requests.

For more information, see Configure a timeout period.

Retry settings

Scenarios

  • Network jitter: Requests may fail in an unstable network environment. A retry mechanism automatically resends requests, increasing the success rate.

  • Temporary service unavailability: If an Alibaba Cloud service becomes temporarily unavailable, a retry mechanism helps applications automatically recover.

Examples

If your application encounters intermittent network issues when it calls an Alibaba Cloud service, you can configure the number of retries and a retry interval to increase the request success rate.

For more information, see Configure a retry mechanism.