Advanced settings

更新时间:
复制 MD 格式

Alibaba Cloud SDK provides advanced settings for HTTPS, proxies, timeouts, and retries. Configure these settings to improve the performance, security, and reliability of your applications in high-concurrency or restricted network environments.

HTTPS settings

Scenarios

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

  • Compliance requirements: Industries such as finance and healthcare have strict data transmission security requirements that mandate HTTPS.

Examples

  • An application retrieves sensitive data, such as billing information or user privacy data, by calling Alibaba Cloud API operations.

  • An application must comply with the General Data Protection Regulation (GDPR) or other data protection regulations.

For more information, see Configure HTTPS and TLS settings in the SDK.

Proxy settings

Scenarios

  • Restricted network access: If your application runs in an environment where external access is controlled by a proxy server, such as an enterprise internal network or a firewall-controlled network, configure a proxy to reach external services.

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

Examples

  • An application deployed in an enterprise internal network uses an HTTP or HTTPS proxy to access Alibaba Cloud services.

  • Multiple applications in an enterprise share a proxy server that manages and routes requests to external services.

For more information, see Proxy configuration.

Timeout settings

Scenarios

  • Improve network stability: If the network latency is high or the server response is slow, a proper timeout prevents prolonged request hangs.

  • Improve user experience: A proper timeout for user-facing applications prevents prolonged waiting caused by service unavailability.

Examples

  • If the network connection is interrupted when a user uploads large files to Object Storage Service (OSS), a proper timeout terminates the request promptly and allows the user to retry the upload.

  • A proper timeout for time-consuming API operations, such as batch operations, prevents prolonged waiting.

For more information, see Timeout mechanism.

Retry settings

Scenarios

  • Network jitter: Requests may fail in an unstable network environment. A retry mechanism automatically resends failed requests to increase 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 calling an Alibaba Cloud service, configure the number of retries and retry interval to increase the request success rate.

For more information, see Retry mechanism.