Upload blobs straight to R2 with presigned URLs
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- aws, typescript
- Bereich
- backend-api-design, cloud
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8
- Forks
- 0
- Ø Merge
- 2 T. 10 Std.
- Gemergte PRs (30 T.)
- 40
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus voidzero-dev/vite-plus-remote-cache-cloudflare
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
voidzero-dev/vite-plus-remote-cache-cloudflare#48 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
voidzero-dev/vite-plus-remote-cache-cloudflare#16 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Dependency DashboardOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
voidzero-dev/vite-plus-remote-cache-cloudflare#6 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
voidzero-dev/vite-plus-remote-cache-cloudflare#42 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in voidzero-dev/vite-plus-remote-cache-cloudflare
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoft/vscode-containers#655 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 Kommentar ·
-
[docs] RELEASE.md: wrong branch name, no check that the prepare PR merged with the right subject, manual publish stepEvtl. vergeben @albertteoh hat das heute übernommen. Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
jaegertracing/jaeger-ui#4739 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add: Shop On TV SDOffencheck:passed streams:add
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag