Alibaba Cloud SDK provides advanced settings for HTTPS requests, proxies, timeouts, and retries. You can use these settings to 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 require HTTPS for secure data transmission.
Examples
-
An application retrieves sensitive data, such as billing information or user 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 about how to configure HTTPS requests, see Configure an HTTPS request.
Proxy settings
Scenarios
-
Restricted network access: If your application runs in a network where outbound access is controlled by a proxy server, such as an enterprise intranet or a firewall-controlled network, you can 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 on an enterprise intranet 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 about how to configure a proxy, see Configure a proxy.
Timeout settings
Scenarios
-
Network stability: If 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 waiting when a service is unavailable.
Examples
-
If the network connection drops while a user uploads large files to OSS, a proper timeout terminates the request promptly and prompts the user to retry.
-
A proper timeout for long-running API operations, such as batch operations, prevents excessive waiting.
For more information about how to configure a timeout period, see Configure a timeout period.
Retry settings
Scenarios
-
Network jitter: Requests may fail in an unstable network. 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 your application recover automatically.
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 success rate.
For more information about how to configure a retry mechanism, see Configure a retry mechanism.