Live data from Hacker News

A New Hope for Object Storage: R2 Enters Open Beta

blog.cloudflare.com

1–10 of 39 posts

Re: A New Hope for Object Storage: R2 Enters Open Beta

#4
Neat!

   cl = boto3.client(
      's3',
      aws_access_key_id=access_key_id,
      aws_secret_access_key=secret_access_key,
      endpoint_url=endpoint,
      config=Config(
          region_name = endpoints[endpoint_name].get('region', 'auto'),
          s3={'addressing_style': 'path'},
          retries=dict( max_attempts=0 ),
      ),
  )
dict "endpoints" is undefined in the example code above, replace that line with:

  region_name = 'auto',
----

While,

   an S3-compatible API, which exposes your bucket on a URL of the form bucket.account.r2storage.com.
Should be?

   an S3-compatible API, which exposes your bucket on a URL of the form account.r2.cloudflarestorage.com/bucket

Re: A New Hope for Object Storage: R2 Enters Open Beta

#5

I’m an engineer on the R2 team. Happy to answer any questions in this thread.

If I remember correctly, there was some discussion around R2 acting as a proxy in front of s3. So, if R2 does not yet have the asset, you would automatically pull it in from S3, and from then on R2 would serve it directly.

Is that still on the cards?

Re: A New Hope for Object Storage: R2 Enters Open Beta

#6
post #5

I’m an engineer on the R2 team. Happy to answer any questions in this thread.

If I remember correctly, there was some discussion around R2 acting as a proxy in front of s3. So, if R2 does not yet have the asset, you would automatically pull it in from S3, and from then on R2 would serve it directly. Is that still on the cards?

Not a Cloudflare employee, but: Yep, Cache Reserve is in private beta https://blog.cloudflare.com/introducing-cache-reserve/

Re: A New Hope for Object Storage: R2 Enters Open Beta

#9
post #2

We've been waiting for this since it was announced. We have > 2PB of media heavy data, and transfer a lot via S3 to the internet. This will reduce our monthly S3 charge from tens-of-thousands USD per month, to ~$200.

Please post a reply here when you get the "you're using too much bandwidth" email and the price that they'll quote you.

Re: A New Hope for Object Storage: R2 Enters Open Beta

#10
post #5

I’m an engineer on the R2 team. Happy to answer any questions in this thread.

If I remember correctly, there was some discussion around R2 acting as a proxy in front of s3. So, if R2 does not yet have the asset, you would automatically pull it in from S3, and from then on R2 would serve it directly. Is that still on the cards?

Yes, still in the cards. Hoping to release this before GA - it'll be a part of our migrator.
Post reply on HN