跳过导航
Today we launched R2 Local Uploads to improve upload performance. Here's how it works 🧵
0:00 / 0:21

Today we launched R2 Local Uploads to improve upload performance. Here's how it works 🧵

Anni Wang

@aninibread2920 位关注者

在 X 上查看
1,651 个赞下载原帖

147,573 次观看

Today we launched R2 Local Uploads to improve upload performance. Here's how it works 🧵

45 条评论

评论来自 X (Twitter) 上的原帖

  • Anni Wang 的头像

    @aninibread

    In tests, we saw up to 75% reduction in total request duration for cross-region uploads when Local Uploads is enabled for a bucket. Try it here:

    114 个赞

  • Anni Wang 的头像

    @aninibread

    When you upload to R2, your request hits the R2 Gateway first (runs on Workers, deployed globally). Then the object data travels to the storage infrastructure of your bucket.

    30 个赞

  • Anni Wang 的头像

    @aninibread

    If your user is in North America uploading to a bucket in Europe, that data has to cross the long distance from the client to the bucket. More distance = more latency, more variability.

    23 个赞

  • Anni Wang 的头像

    @aninibread

    Local Uploads changes the flow. Instead of writing directly to the bucket's region, R2 writes object data to storage near the user first. Then we replicate it to your bucket in the background. The object is readable immediately.

    45 个赞

  • Anni Wang 的头像

    @aninibread

    If the user and bucket are already in the same region, R2 skips all this and writes directly. No overhead when you don't need it. Learn more:

    44 个赞

  • Anni Wang 的头像

    @aninibread

    Want to know if Local Uploads is right for you? Go to your R2 bucket → Metrics → Request Distribution. See where your write requests are coming from.

    33 个赞

  • Anni Wang 的头像

    @aninibread

    Enable with one commnad: npx wrangler r2 bucket local-uploads enable <BUCKET> Now in open beta, no extra cost.

    52 个赞

  • Zaher 🇸🇾 🇵🇸 的头像

    @zaherg

    it looks nice as long as the bucket is not in your region as in my test, with local upload is slower

    6 个赞

  • Pils10 的头像

    @PilsZehn

    Should it be worse with it compared to without?

    4 个赞

  • Zaid 的头像

    @zaidmukaddam

    Happy R2 customer here :)

    4 个赞

  • Joshua Poddoku 的头像

    @JoshuaPoddoku

    This is slick and practical, the UI cues plus immediate readability make latency feel like a feature, not a bug. If Local Uploads scales, teams will rethink geo data strategies and push for more region aware UX, lowering frustration for users across regions

    4 个赞

  • vik 的头像

    @vikhyatk

    @irvinebroque amazing

    4 个赞

  • Nir Galon 的头像

    @nirgn975

    Is the globe built with @threejs ?

    4 个赞

  • Rory Bernier 的头像

    @RoryCrave

    cloudflare dropping features faster than my s3 bills are dropping. wait no that part's still going up

    3 个赞

  • James Ross 的头像

    @CherryJimbo

    this is an awesome ship. congrats

    2 个赞

  • Luis Catacora 的头像

    @lucataco

    this looks so cool! inspired by @Jilles ?

    2 个赞

  • A 的头像

    @heathen404

    cant stop loving cloudflare

    1 个赞

  • Rehan 的头像

    @MRehan_5

    Oh it's cool

    1 个赞

  • Tony Kim 的头像

    @toeknee_kim

    Really like how this focuses on making the user ux better, less lag for the user the better

    1 个赞

  • Eason Chai 的头像

    @easonchaiii

    such a good visualisation tho!

    1 个赞