知识卡片
断点续传记录上传进度
大文件上传先建立会话获得续传地址,再上传数据并观察进度,网络中断后从已知位置继续。它减少重传成本,但上传会话和进度必须可识别,不能把一次普通重试就称作断点续传。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · 第15章 云盘
原书出处 · 1 处
- 云盘 · 查看原书依据
A resumable upload is achieved by the following 3 steps [2]: •Send the initial request to retrieve the resumable URL. •Upload the data and monitor upload state. •If upload is disturbed, resume the upload. 2. Download a file from Google Drive Example API: https://api.example.com/files/download Params: •path: download file path. Example params: { "path": "/recipes/soup/best_soup.txt" } 3. Get file revisions Example API: https://api.example.com/files/list_revisions Params: •path: The
参考来源
- 位置:《System Design Interview – An insiders guide, Second Edition》第15章《云盘》(来源项目 book-sources;源文件:extracted/System Design Interview – An insiders guide, Second Edition/_epub-src/text/part0035_split_002.html)
- 结论依据:原文在该位置给出所述对象、机制或比较,支持本卡的解释;原书未展开的实现不作为已证明结论,算式与一致性边界在正文明确限定。
- 原始内容:A resumable upload is achieved by the following 3 steps [2]: •Send the initial request to retrieve the resumable URL. •Upload the data and monitor upload state. •If upload is disturbed, resume the upload. 2. Download a file from Google Drive Example API: https://api.example.com/files/download Params: •path: download file path. Example params: { "path": "/recipes/soup/best_soup.txt" } 3. Get file revisions Example API: https://api.example.com/files/list_revisions Params: •path: The