知识卡片

问题卡 · 4491

预签名URL授权指定上传

理解等级:高级

客户端先经 API 获取包含授权的上传 URL,再向对应对象位置传输视频。它使控制权限与搬运数据分开;授权指向特定资源,不能把取得一个 URL 理解为无限制写入整个存储空间。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 视频点播 · 查看原书依据

      Safety optimization: pre-signed upload URL Safety is one of the most important aspects of any product. To ensure only authorized users upload videos to the right location, we introduce pre-signed URLs as shown in Figure 14-27. The upload flow is updated as follows: 1. The client makes a HTTP request to API servers to fetch the pre-signed URL, which gives the access permission to the

    参考来源

    - 位置:《System Design Interview – An insiders guide, Second Edition》第14章《视频点播》(来源项目 book-sources;源文件:extracted/System Design Interview – An insiders guide, Second Edition/_epub-src/text/part0033_split_003.html) - 结论依据:原文在该位置给出所述对象、机制或比较,支持本卡的解释;原书未展开的实现不作为已证明结论,算式与一致性边界在正文明确限定。 - 原始内容:Safety optimization: pre-signed upload URL Safety is one of the most important aspects of any product. To ensure only authorized users upload videos to the right location, we introduce pre-signed URLs as shown in Figure 14-27. The upload flow is updated as follows: 1. The client makes a HTTP request to API servers to fetch the pre-signed URL, which gives the access permission to the