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

    boywithkeyboard

    03/29/2023, 3:17 PM
    does anyone have some benchmarks/comparison on upload/download speeds of r2?
  • c

    chientrm

    03/29/2023, 3:18 PM
    I upload from an aws instance to R2, it's like 80MB/second.
  • b

    boywithkeyboard

    03/29/2023, 3:20 PM
    i'm just wondering if i should choose r2 over smth like storj
  • b

    boywithkeyboard

    03/29/2023, 3:20 PM
    i mean it's 15$ vs 4$ a terabyte
  • u

    Unsmart | Tech debt

    03/29/2023, 3:21 PM
    Bandwidth $0/tv vs $7/tb 🤷
  • b

    boywithkeyboard

    03/29/2023, 3:22 PM
    yeah but you also have to count the operations pricing on r2
  • u

    Unsmart | Tech debt

    03/29/2023, 3:22 PM
    R2 is probably also more reliable
  • b

    boywithkeyboard

    03/29/2023, 3:22 PM
    i'd love to see some benchmarks on the speed c:
  • b

    boywithkeyboard

    03/29/2023, 3:23 PM
    but i don't feel like doing them myself xd
  • b

    boywithkeyboard

    03/29/2023, 3:23 PM
    also, is it possible to upload ~5gb files through workers to r2?
  • b

    boywithkeyboard

    03/29/2023, 3:23 PM
    bc of the 100mb limit
  • s

    Skye

    03/29/2023, 3:24 PM
    No, that's what presigned URLs are for
  • z

    zegevlier

    03/29/2023, 3:24 PM
    Yea, you have to do a multi-part upload
  • s

    Skye

    03/29/2023, 3:24 PM
    Or that 😅 forgot multipart was a thing
  • u

    Unsmart | Tech debt

    03/29/2023, 3:24 PM
    R2 is also centralized and it doesnt look like storj has any security compliance
  • b

    boywithkeyboard

    03/29/2023, 3:25 PM
    how do you guys use presigned urls btw? when do you create the db entry for the uploaded file?
  • c

    chientrm

    03/29/2023, 3:26 PM
    I create db entry then sign a url then send that url to the client.
  • c

    chientrm

    03/29/2023, 3:26 PM
    add a
    status
    field to the table and set it to
    uploading
    by default.
  • c

    chientrm

    03/29/2023, 3:26 PM
    since R2 doesn't have webhook.
  • c

    chientrm

    03/29/2023, 3:27 PM
    so that after uploading, my client send a 2nd request to ask for verifying or processing.
  • b

    boywithkeyboard

    03/29/2023, 3:27 PM
    same approach i'm taking as of now xd sad that there's no other (more clever) way
  • b

    boywithkeyboard

    03/29/2023, 5:22 PM
    found the below community article, any update on the cons mentioned?
  • u

    Unsmart | Tech debt

    03/29/2023, 7:02 PM
    That entire post looks like its just bad and wrong takes from a user so anything they said can pretty much be ignored tbh. R2 doesnt push files to other regions currently so all your files will be in one region but pull through cache can be enabled to have greater performance.
  • w

    Waiiki

    03/29/2023, 10:58 PM
    Copy code
    <Error>
    <Code>InvalidAccessKeyId</Code>
    <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
    Anyone deal with this?
  • w

    Waiiki

    03/29/2023, 10:58 PM
    I'm pretty sure all the credentials I'm providing are correct. Using a pre-sign
  • w

    Waiiki

    03/29/2023, 10:59 PM
    Access key is the api secret key right
  • n

    not_james-Brown

    03/30/2023, 1:36 AM
    Hey there, is there a built-in way to limit the number of files in a particular folder in r2? Like an object lifecycle policy?
  • u

    Unsmart | Tech debt

    03/30/2023, 1:37 AM
    no you would need to manage a DB on your own to limit
  • n

    not_james-Brown

    03/30/2023, 1:40 AM
    ah okay thanks
  • n

    not_james-Brown

    03/30/2023, 1:41 AM
    i have a partial-solution for that right now, but it has some gaps I'm trying to solve for
1...968969970...1050Latest