Advanced settings

更新时间:
复制 MD 格式

Alibaba Cloud SDK provides advanced settings for HTTPS requests, proxies, timeouts, and retries to help you optimize performance, strengthen security, and improve reliability in high-concurrency or restricted network environments.

HTTPS request 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 enforce strict data transmission security standards that require 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 behind a proxy server, such as in an enterprise internal network or a firewall-controlled environment, you can configure a proxy to access external services.

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

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 a proxy server that manages and routes requests to external services.

For more information, see Configure a proxy.

Timeout settings

Scenarios

  • Network stability: When network latency is high or server responses are slow, a proper timeout prevents requests from hanging indefinitely.

  • User experience: A proper timeout for user-facing applications prevents prolonged waits 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.

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

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 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, you can configure the retry count and retry interval to increase the request success rate.

For more information, see Configure a retry mechanism.