https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • v

    Vitali

    04/04/2022, 3:46 PM
    General availability (i.e. not beta)
  • j

    Josh

    04/04/2022, 3:47 PM
    https://tenor.com/view/eric-andre-let-me-wahh-wild-go-gif-13490041
  • j

    Josh

    04/04/2022, 3:47 PM
    Greg pls let me in
  • j

    Josh

    04/04/2022, 3:47 PM
    Sorry, I'll show myself out
  • k

    kian

    04/04/2022, 3:47 PM
    would have to be in the beta to show yourself out of it
  • k

    kian

    04/04/2022, 3:47 PM
  • l

    lmtr0

    04/04/2022, 3:53 PM
  • l

    lmtr0

    04/04/2022, 3:53 PM
    thx
  • v

    Vitali

    04/04/2022, 4:07 PM
    In theory yes? 🤷‍♂️ . I don't think we've gotten to testing that out yet. Presigned URLs are WIP at the moment which would be a prerequisite for something like that being useful I think, right?
  • l

    lmtr0

    04/04/2022, 4:26 PM
    I think it will be very useful
  • j

    john.spurlock

    04/04/2022, 5:03 PM
    is there an R2 equivalent of S3's public-read acl?
  • v

    Vitali

    04/04/2022, 5:04 PM
    Not for Open Beta initially.
  • a

    andrew

    04/04/2022, 9:42 PM
    true yes, cname is only useful for signed urls or public read buckets
  • a

    andrew

    04/04/2022, 11:29 PM
    fwiw, this is the S3 client library i'll be looking to use against R2's S3 endpoint - https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/examples-s3-crt.html (Uses multiple range requests per file to increase throughput)
  • v

    Vitali

    04/05/2022, 5:36 AM
    Yeah, but they still only allow 1 range per get so you're net latency will still be the cost of 1 request. A true multi range read would actually be faster because you only pay the performance cost of the metadata lookup once and multiple ranges within storage nodes is trivial (& more efficient to be done in parallel within R2 than issuing multiple requests from the client). I've thought about it some more and I don't think that we can offer this for free. The good news is I think multiple ranges can be supported sooner rather than later provided we can make the billing easy to grok. The bad news is I'm not sure when, if ever, N ranges could be billed more cheaply than N GETs.
  • a

    andrew

    04/05/2022, 11:48 AM
    yeah, multi-range thing is interesting, but we've really only used range requests for the purposes of increasing throughput on large file fetches
  • a

    andrew

    04/05/2022, 11:48 AM
    in which case multiple GETs is really what you want anyway
  • c

    Craiggles

    04/06/2022, 8:50 PM
    @User - is there a way to make N ranges and set a limit on the total bytes + total ranges?
  • c

    Craiggles

    04/06/2022, 8:51 PM
    I ask because I fetch a lot of small pieces from larges files. I'm lucky that it's all small because I don't use unbound, so having to merge the pieces before sending them out as a single request myself had me scared with workers for a stretch.
  • c

    Craiggles

    04/06/2022, 8:52 PM
    I basically bunched all SDF glyphs into a single file, and have metadata so the client knows where to ask for individual pieces. The OG idea was to batch fetch in a singgle request to S3, but it turns out that literally no one supports multi-range requests.
  • j

    James

    04/07/2022, 4:25 PM
    Is the
    r2_public_beta_bindings
    compat flag live yet? 🙂
  • i

    Isaac McFadyen | YYZ01

    04/07/2022, 5:21 PM
    👀
  • j

    James

    04/07/2022, 6:15 PM
    https://canary.discord.com/channels/595317990191398933/940663374377783388/959567872449974352 🙂
  • i

    Isaac McFadyen | YYZ01

    04/07/2022, 6:15 PM
    Oh 😄
  • i

    Isaac McFadyen | YYZ01

    04/07/2022, 6:15 PM
    Missed that somehow.
  • v

    Vitali

    04/08/2022, 3:30 AM
    If I'm understanding what you want this to mean is that you would provide N ranges and then want us to limit the total result to Y bytes? Not sure why you'd want this vs specifying the actual byte ranges you want. Can you help me understand? > I ask because I fetch a lot of small pieces from larges files. I'm lucky that it's all small because I don't use unbound, so having to merge the pieces before sending them out as a single request myself had me scared with workers for a stretch. I wouldn't recommend buffering and stitching in memory. Just create a TransformStream to do the stitching or a ReadableStream with a custom constructor. I'm not sure if this is with respect to the multi-range discussion that was happening earlier. If so, the resulting body returned would be stitched already.
  • v

    Vitali

    04/08/2022, 3:39 AM
    I believe the edge is updated so if wrangler publish accepts the flag then you should be fine. It's possible we haven't updated the validator - it can lag a day or two. I've been out of town on business this week and will be back to regular hours next Tuesday.
  • p

    Peps

    04/08/2022, 2:37 PM
    Not sure if it has been asked already, but will we be allowed to store and serve video assets with R2? Cloudflare's Terms of Services limits the storage and serving of video assets to just the Stream product currently.
  • k

    kian

    04/08/2022, 2:41 PM
    The supplemental terms changed recently - maybe for that purpose? https://www.cloudflare.com/supplemental-terms/#cloudflare-developer-platform
  • k

    kian

    04/08/2022, 2:41 PM
    There used to be a specific part for Workers & whatnot that excluded videos specifically but that's gone.
1...181920...1050Latest