All Products
Search
Document Center

Alibaba Cloud SDK:Advanced settings

Last Updated:May 08, 2025

The advanced settings of Alibaba Cloud SDK, such as proxy settings, SSL authentication settings, timeout settings, log settings, and asynchronous call 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.

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 and 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 about how to configure a proxy, see Configure a proxy.

SSL authentication settings

Scenarios

  • Network security: Authenticate SSL certificates in HTTPS requests to ensure communication security.

  • Disable authentication (not recommended): In some scenarios, such as environments that use self-signed certificates, you can temporarily disable SSL authentication.

Examples

  • By default, SSL authentication is enabled to ensure communication security between Alibaba Cloud and your environment.

  • During debugging or development, you may need to disable SSL authentication to bypass certificate issues. In such case, make sure that SSL authentication is enabled in your production environment.

For more information, see Configure SSL authentication.

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 in time 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-time waiting for requests.

For more information about how to configure a timeout period, see Configure a timeout period.

Log settings

Scenarios

  • Record request and response details to facilitate troubleshooting of API failures, such as signature errors and missing parameters.

  • Analyze log data to check key metrics, such as the request duration and success rate, which help you improve application performance.

Examples

  • If you fail to create Elastic Compute Service (ECS) instances, you can query the log data to check whether the HTTPS request signature is valid and whether parameters are configured as required.

  • Identify potential performance bottlenecks by monitoring the durations of the upload API operations of Object Storage Service (OSS).

For more information, see Configure a logger.

Asynchronous call settings

Scenarios

  • High concurrency: If you need to process a large number of concurrent tasks, asynchronous operations can greatly improve the performance.

  • Non-block operations: If you need to perform time-consuming operations, you can use asynchronous operations to increase the application response efficiency because asynchronous operations do not block the main thread.

Examples

  • To call ECS API operations to create multiple ECS instances, you can perform asynchronous operations to send multiple requests at the same time. This reduces the total time consumption.

  • To upload a large number of files, you can perform asynchronous operations to fully use the coroutine pool and increase the throughput.

For more information, see Use the asynchronous calls feature.