Today we launched R2 Local Uploads to improve upload performance. Here's how it works 🧵
147,573 次观看
45 条评论
评论来自 X (Twitter) 上的原帖

@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 个赞

@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 个赞

@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 个赞

@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 个赞

@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 个赞

@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 个赞

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

@zaherg
it looks nice as long as the bucket is not in your region as in my test, with local upload is slower
6 个赞

@PilsZehn
Should it be worse with it compared to without?
4 个赞

@zaidmukaddam
Happy R2 customer here :)
4 个赞

@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 个赞

@vikhyatk
@irvinebroque amazing
4 个赞

@nirgn975
Is the globe built with @threejs ?
4 个赞

@RoryCrave
cloudflare dropping features faster than my s3 bills are dropping. wait no that part's still going up
3 个赞

@CherryJimbo
this is an awesome ship. congrats
2 个赞

@lucataco
this looks so cool! inspired by @Jilles ?
2 个赞

@heathen404
cant stop loving cloudflare
1 个赞

@MRehan_5
Oh it's cool
1 个赞

@toeknee_kim
Really like how this focuses on making the user ux better, less lag for the user the better
1 个赞

@easonchaiii
such a good visualisation tho!
1 个赞




















