You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/golang/Usage-EN.md
+20
Original file line number
Diff line number
Diff line change
@@ -121,3 +121,23 @@ type RuntimeOptions struct {
121
121
Socks5NetWork *string// socks5 agency agreement
122
122
}
123
123
```
124
+
125
+
## SDK Migration
126
+
If you wnat to migrate the [Old SDK](https://github.com/aliyun/alibaba-cloud-sdk-go) to the [New SDK](https://github.com/aliyun/alibabacloud-sdk), you can refer to the points:
127
+
128
+
- The new SDK does not turn on timeouts by default. The timeouts unit is milliseconds
129
+
- New SDK does not enable retry by default
130
+
- Concurrency is not supported in the new SDK
131
+
-`Request` only supports configuring business parameters
132
+
-`Response` contains only the `API` return parameter
133
+
- The same parameter in `RuntimeOptions` and `Config` , `RuntimeOptions` has a higher priority than `Config`
134
+
135
+
-`Config` removes configuration of `Debug`, `EnableAsync`, `HttpTransport`, `Transport`, `MaxTaskQueueSize`, `GoRoutinePoolSize`
136
+
- The `AutoRetry` of the original `Config`, configured instead by `AutoRetry` of `RuntimeOptions`
137
+
- The `MaxRetryTime` of the original `Config`, configured instead by `MaxRetryTime` of `RuntimeOptions`
138
+
- The `Timeout` of the original `Config`, configured instead by `ReadTimeout`
139
+
- The `Scheme` of the original `Config`, configured instead by `Protocol`
0 commit comments