Upload blobs straight to R2 with presigned URLs
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- aws, typescript
调研方向
Read the server’s blob store and publish flow, then compare the store protocol in the vite-plus and vite-task repositories; the issue does not name specific files or tests. Map how R2 signing credentials, generation reservation, direct upload, and publish verification would work across all three parts. Done means clients can upload to a presigned R2 URL and publish only after the server verifies the object.
由索引模型根据 Issue 内容生成。
描述
The idea. Let a client upload a blob straight to R2 with a presigned URL, so that the blob's bytes never pass through the Worker.
Why. Today every byte of a blob streams through the Worker. Because R2's multipart upload needs parts of at least 5 MiB, uploadBlob() buffers 5 MiB per store in flight. Isolate memory is what bounds concurrent stores (Admission, 2 per isolate), and refused stores are lost, since the client doesn't retry a 503.
With presigned uploads:
- the Worker only reserves the generation, signs a URL for
blob_object, and later publishes after checking the object's size; - concurrency is then bounded by the rate limit, not memory;
- large blobs (we see up to 13 MB) cost the Worker nothing.
What it needs.
- Server: an endpoint that reserves a generation and returns a presigned R2
PUTURL, with the size limit enforced on the signed request or checked at publish, and a publish step that verifies the object. - Client (vite-plus / vite-task): the store protocol has to change to send the metadata and get a URL back, then
PUTthe blob, then publish. So this is a protocol change across both repos, not just this one. - Credentials: signing needs R2 S3 API credentials as Worker secrets, which the current binding-only setup doesn't need.
A smaller step that helps today, without a protocol change, is https://github.com/voidzero-dev/vite-plus-remote-cache-cloudflare/issues/48.
- 主要语言
- TypeScript
- 星标
- 8
- 派生
- 0
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 40
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-plus-remote-cache-cloudflare 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
voidzero-dev/vite-plus-remote-cache-cloudflare#48 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
voidzero-dev/vite-plus-remote-cache-cloudflare#16 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
voidzero-dev/vite-plus-remote-cache-cloudflare#6 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
voidzero-dev/vite-plus-remote-cache-cloudflare#42 · 1 个 reaction ·
维护者通常 2 天内回复
查看 voidzero-dev/vite-plus-remote-cache-cloudflare 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/vscode-containers#655 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 条评论 ·
-
[docs] RELEASE.md: wrong branch name, no check that the prepare PR merged with the right subject, manual publish step可能已有人在做 @albertteoh 今天认领。 未关闭documentation
难度 2/5 1-3 小时 新手友好度 85/100
jaegertracing/jaeger-ui#4739 ·
维护者通常 1 天内回复
-
check:passed streams:add
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复