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

    http.james

    05/05/2022, 7:53 PM
    does this remain true? or is all egress now free?
  • z

    zegevlier

    05/05/2022, 7:54 PM
    From my understanding, the original plan was not not charge infrequent reads and writes (as in the Class A and B operations), but it seems like they've stepped away from that now. I don't think they ever planned on charging for bandwidth
  • z

    zegevlier

    05/05/2022, 7:55 PM
    At least, because the first 10m read requests are free it's basically free unless you're doing a lot of requests anyway, just like originally envisioned.
  • h

    http.james

    05/05/2022, 7:55 PM
    well let’s say i wanted to host user files on r2, like a CDN. does every GET request count as a “class A” operation?
  • e

    Epailes

    05/05/2022, 7:56 PM
    gets are class B
  • z

    zegevlier

    05/05/2022, 7:56 PM
    yea
  • h

    http.james

    05/05/2022, 7:56 PM
    ah right
  • h

    http.james

    05/05/2022, 7:56 PM
    i thought egress meant any GET request
  • h

    http.james

    05/05/2022, 7:56 PM
    do other providers charge for bandwidth?
  • z

    zegevlier

    05/05/2022, 7:57 PM
    Most other do, yes. The only one that I know of that doesn't (wasabi) severely limits you in the amount of data you are allowed to download each moth.
  • e

    Epailes

    05/05/2022, 7:57 PM
    Pretty much all of them do, except the ones that are in the bandwidth alliance with cloudflare like B2
  • z

    zegevlier

    05/05/2022, 7:57 PM
    Oh yea that's also important to mention, B2 effectively doesn't charge for bandwidth if you use them through cloudflare.
  • h

    http.james

    05/05/2022, 7:58 PM
    b2 doesn’t charge per request as far as i can tell
  • z

    zegevlier

    05/05/2022, 7:58 PM
    They do
  • h

    http.james

    05/05/2022, 7:58 PM
    oh nevermind, i see it now
  • h

    http.james

    05/05/2022, 7:58 PM
    all class A are free interestingly
  • h

    http.james

    05/05/2022, 7:58 PM
    B and C are not
  • z

    zegevlier

    05/05/2022, 7:59 PM
    GetObject falls under class B for them
  • h

    http.james

    05/05/2022, 8:00 PM
    damn cloudflare pricing is significantly cheaper than b2
  • h

    http.james

    05/05/2022, 8:00 PM
    i’m definitely looking forward to trying this out when it releases
  • e

    Epailes

    05/05/2022, 8:01 PM
    Depends on the size of the file and how often it's accessed, sometimes B2 is better, sometimes R2 is better
  • z

    zegevlier

    05/05/2022, 8:01 PM
    Also keep in mind that B2 is only stored in one location, while R2 is stored all over the world. So if speed matters to your application, that's also something to consider.
  • h

    http.james

    05/05/2022, 8:01 PM
    oh i do see that, storage is priced higher on cloudflare
  • h

    http.james

    05/05/2022, 8:02 PM
    true
  • h

    http.james

    05/05/2022, 8:02 PM
    so value is a lot higher on cloudflare
  • h

    http.james

    05/05/2022, 8:02 PM
    i imagine pairing r2 with workers is insanely fast
  • h

    http.james

    05/05/2022, 8:03 PM
    they’re both deployed “to the edge”
  • z

    zegevlier

    05/05/2022, 8:03 PM
    If all you want is pretty cold storage (for things like logs that you might need to access but will probably not need to, so it's too hot for AWS glacier), B2 will probably be better. If you want something for files that are access readily R2 will probably be your best bet.
  • e

    Epailes

    05/05/2022, 8:04 PM
    Depends if you cache the result in the cloudflare CDN, then you could get similar speeds from R2 & B2, but then you're getting into public vs private files and how often you'll get hot vs cold reads
  • h

    http.james

    05/05/2022, 8:04 PM
    well as zegevlier mentioned, r2 is globally distributed
1...120121122...1050Latest