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

    Stew

    04/18/2022, 11:09 AM
    They'll post a message in either here or #909458221419356210 channel on this discord and you need to reply to that. Or if you're on enterprise plan your account manager might be able to get it setup
  • k

    kavinplays

    04/18/2022, 11:14 AM
    there will be instructions in the message, not really a reply (just read it, you will understand)
  • k

    kavinplays

    04/18/2022, 11:14 AM
    https://discord.com/channels/595317990191398933/874704644104941569/963138937398890568
  • s

    stupefied | AS204829

    04/18/2022, 2:27 PM
    Still don’t have R2 access
  • m

    Marcelino Franchini

    04/18/2022, 7:22 PM
    Is there any plan to support S3 Select? https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html
  • v

    Vitali

    04/18/2022, 9:53 PM
    Not really sure yet. Could be a while. Unlike S3, R2 doesn't have egress. So you could just as easily write a select-like Worker and there's not really any perf/cost impact vs us supporting it natively
  • l

    lmtr0

    04/18/2022, 10:06 PM
    my weekend project: write a worker SQL to R2 Translator /joke_switch
  • v

    Vitali

    04/18/2022, 10:09 PM
    I didn't mean to imply it would be a trivial amount of work. I wonder if there's something that can be cobbled together from the NPM ecosystem with JQ. The SQL parsing would be the most annoying bit
  • v

    Vitali

    04/18/2022, 10:09 PM
    (although doing things efficiently in a streaming fashion would be the second most annoying bit)
  • l

    lmtr0

    04/18/2022, 10:49 PM
    hmm
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 1:46 AM
    Quick question about Multipart uploads (this also might apply to S3... not sure), is there a timeout between uploading and confirming final upload? For example: I have an upload that also needs a DB write. Can I start the multipart upload, upload all my parts, then do my database read, then commit? Is there a timeout between my final part upload and commit there?
  • e

    e1g

    04/19/2022, 2:03 AM
    I don't know about R2, but S3 is immediately consistent - as soon as you finished PUT'ing the object, it becomes immediately persisted & available. This wasn't always true and cause difficult bugs while working with S3, but now AWS guarantees immediate consistency.
  • k

    kian

    04/19/2022, 2:05 AM
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:06 AM
    Yeah, but I just mean on multipart uploads.
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:06 AM
    For example.
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:06 AM
    If I have a multipart upload in 20 parts, and I send all 20, then do a database query before I confirm the transfer, will there be a timeout I might hit if my database query takes too long?
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:07 AM
    (Between the final part #20 upload and the confirmation?)
  • a

    andrew

    04/19/2022, 2:46 AM
    you should do your db write after the completion request
  • a

    andrew

    04/19/2022, 2:46 AM
    your application code should not try to do a db write prior to the completion request finishing
  • v

    vasco-santos

    04/19/2022, 8:07 AM
    Hey folks! Can we use same R2 bucket from different Cloudflare workers? Let's say, one to write and other to read? Will we be able to bind it to both workers? Or perhaps we will need to http and proxy response on get side?
  • w

    Walshy | Pages

    04/19/2022, 8:28 AM
    You can yep
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 1:16 PM
    So my main concern with that was that the DB request might not go through.
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 1:16 PM
    So I upload a file, confirm it, then my DB request fails and I'm forced to roll back.
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 1:17 PM
    Whereas if I do the DB request, then the confirmation I can rollback the upload if my DB request fails.
  • a

    andrew

    04/19/2022, 1:50 PM
    why would you need to roll back the upload
  • a

    andrew

    04/19/2022, 1:52 PM
    i mean wouldnt you just reissue the db query that had timed out?
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:41 PM
    No, not the DB query timeout.
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:41 PM
    Let me see if I can explain a bit more.
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:42 PM
    So I have a DB INSERT that may or may not fail, depending on a variety of external factors.
  • i

    Isaac McFadyen | YYZ01

    04/19/2022, 2:42 PM
    And I have a file that needs to be in sync with the DB.
1...353637...1050Latest