Alibaba Cloud SDK provides advanced settings for HTTPS requests, proxies, timeouts, and retries. Use these settings to improve performance, security, and 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: Industries such as finance and healthcare require HTTPS to meet data transmission security standards.
Examples
-
An application retrieves sensitive data such as billing information or user privacy data through 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, configure a proxy to reach external services.
-
Traffic monitoring: Use a proxy during development to capture and analyze requests for debugging.
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
-
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 extended wait times when a service is unavailable.
Examples
-
When a network connection drops during a large file upload to Object Storage Service (OSS), a proper timeout terminates the request promptly so the user can retry.
-
A proper timeout for long-running API operations, such as batch operations, prevents excessive wait times.
For more information, see Configure a timeout period.
Retry settings
Scenarios
-
Network jitter: In an unstable network, requests may fail. A retry mechanism automatically resends failed requests to increase the success rate.
-
Temporary service unavailability: If an Alibaba Cloud service is temporarily unavailable, a retry mechanism helps the application recover automatically.
Examples
If your application encounters intermittent network issues when calling an Alibaba Cloud service, configure the retry count and retry interval to increase the request success rate.
For more information, see Retry mechanism.