-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store access-api delegation bytes in R2 not D1 #571
Milestone
Comments
1 task
(via @Gozala) |
This was referenced Mar 20, 2023
Closed
gobengo
added a commit
that referenced
this issue
Mar 23, 2023
Motivation: * first PR on #571 todo * [x] initial `DbDelegationsStorageWithR2` that passes tests as a `DelegationsStorage` * [x] rm unused access-ws package #596 * [x] access-api should use `DbDelegationsStorageWithR2` and not `DbDelegationsStorage` (without r2) and still pass tests #599 informed by review * [x] add r2 bucket name binding to wrangler.toml for staging, production #578 (comment) unblocks: * `DbDelegationsStorageWithR2` supports deletes * we don't need this to support current `DelegationsStorage`, but probably will before long, but doesn't need to block this PR * optimization where r2 stores all the CIDs with varying multibases but for the same hash only once * safe to remove `DbDelegationsStorage`, `DelegationsV2Row`, `DelegationsV2Tables` --------- Co-authored-by: Irakli Gozalishvili <[email protected]>
gobengo
added a commit
that referenced
this issue
Apr 11, 2023
Motivation: * first PR on #571 todo * [x] initial `DbDelegationsStorageWithR2` that passes tests as a `DelegationsStorage` * [x] rm unused access-ws package #596 * [x] access-api should use `DbDelegationsStorageWithR2` and not `DbDelegationsStorage` (without r2) and still pass tests #599 informed by review * [x] add r2 bucket name binding to wrangler.toml for staging, production #578 (comment) unblocks: * `DbDelegationsStorageWithR2` supports deletes * we don't need this to support current `DelegationsStorage`, but probably will before long, but doesn't need to block this PR * optimization where r2 stores all the CIDs with varying multibases but for the same hash only once * safe to remove `DbDelegationsStorage`, `DelegationsV2Row`, `DelegationsV2Tables` --------- Co-authored-by: Irakli Gozalishvili <[email protected]>
Peeja
pushed a commit
to storacha/upload-service
that referenced
this issue
Jan 17, 2025
🤖 I have created a release *beep* *boop* --- ## [5.0.0](storacha/w3ui@vue-uploads-list-v4.0.1...vue-uploads-list-v5.0.0) (2023-11-21) ### ⚠ BREAKING CHANGES * pin solid and vue upload packages ([storacha#589](storacha/w3ui#589)) ### Features * add support for getting an account's plan ([storacha#564](storacha/w3ui#564)) ([11023a4](storacha/w3ui@11023a4)) * pin solid and vue upload packages ([storacha#589](storacha/w3ui#589)) ([2f7707f](storacha/w3ui@2f7707f)) * re-export Service from `react-keyring` ([storacha#577](storacha/w3ui#577)) ([308816d](storacha/w3ui@308816d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Travis Vachon <[email protected]>
Peeja
pushed a commit
to storacha/upload-service
that referenced
this issue
Jan 29, 2025
🤖 I have created a release *beep* *boop* --- ## [5.0.0](storacha/w3ui@vue-uploads-list-v4.0.1...vue-uploads-list-v5.0.0) (2023-11-21) ### ⚠ BREAKING CHANGES * pin solid and vue upload packages ([storacha#589](storacha/w3ui#589)) ### Features * add support for getting an account's plan ([storacha#564](storacha/w3ui#564)) ([9565452](storacha/w3ui@9565452)) * pin solid and vue upload packages ([storacha#589](storacha/w3ui#589)) ([aeeedc5](storacha/w3ui@aeeedc5)) * re-export Service from `react-keyring` ([storacha#577](storacha/w3ui#577)) ([94e8b96](storacha/w3ui@94e8b96)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Travis Vachon <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation:
bytes
column on delegations table should go away becausebytes
can be arbitrarily largebytes
in the d1 databaseSolutions Considered
bytes
out of D1 and into a non-d1 cloudflare data storebytes
O(100MB/(avgByteLength * n))
toO(100Mb/n)
delegations
store/add
protocoldata store needs for delegation bytes
access/claim
invocationsshould we store bytes in cloudflare KV or R2?
tl;dr - looks like R2 provides what's needed at the lowest cost
is good for https://developers.cloudflare.com/workers/platform/storage-objects/#r2
prices
unique benefits
limits
The text was updated successfully, but these errors were encountered: