当我有一个稳定的连接时,为什么要使用可恢复上传是有原因的?

There is a reason why to use resumable upload when I have a stable connection?

我需要上传很多文件到云存储。每个文件为 1MB 到 1GB。 我有一个稳定的连接。 我想用Simple Upload Api。但 Google推荐使用Resumable upload.

当我有稳定的连接时,有什么真正的理由选择 resumable upload

For larger files (more than 5 MB) or less reliable network connections, use resumable upload instead

https://cloud.google.com/storage/docs/json_api/v1/how-tos/multipart-upload

网络问题可能是需要 restart/resume 上传的主要原因,但其他问题也会影响上传。例如,如果突发流量导致您的 Internet 连接暂时过载,您的上传可能会超时;或者可能存在间歇性客户端错误或服务器 timeout/failure 导致您的连接中断。如果这些其他类型的故障很少见,您可以通过使用不可恢复的上传来简化事情(然后在连接断开的罕见情况下从头开始)。