正在加载视频...

视频加载失败

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

147,533 次观看 • 8 个月前 •via X (Twitter)

45 条评论

Anni Wang 的头像
Anni Wang8 个月前

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:

Anni Wang 的头像
Anni Wang8 个月前

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.

Anni Wang 的头像
Anni Wang8 个月前

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.

Anni Wang 的头像
Anni Wang8 个月前

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.

Anni Wang 的头像
Anni Wang8 个月前

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:

Anni Wang 的头像
Anni Wang8 个月前

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.

Anni Wang 的头像
Anni Wang8 个月前

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

Zaher 🇸🇾 🇵🇸 的头像
Zaher 🇸🇾 🇵🇸8 个月前

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

Pils10 的头像
Pils108 个月前

Should it be worse with it compared to without?

Zaid 的头像
Zaid8 个月前

Happy R2 customer here :)

Joshua Poddoku 的头像
Joshua Poddoku8 个月前

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

vik 的头像
vik8 个月前

@irvinebroque amazing

Nir Galon 的头像
Nir Galon8 个月前

Is the globe built with @threejs ?

Rory Bernier 的头像
Rory Bernier8 个月前

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

James Ross 的头像
James Ross8 个月前

this is an awesome ship. congrats

Luis Catacora 的头像
Luis Catacora8 个月前

this looks so cool! inspired by @Jilles ?

A 的头像
A8 个月前

cant stop loving cloudflare

Rehan 的头像
Rehan8 个月前

Oh it's cool

Tony Kim 的头像
Tony Kim8 个月前

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

Eason Chai 的头像
Eason Chai8 个月前

such a good visualisation tho!

Devarshi Shimpi 的头像
Devarshi Shimpi8 个月前

It’s basically like caching files? Amazing!

The Fishcake🇯🇵🌸 的头像
The Fishcake🇯🇵🌸8 个月前

Just tried it and WOW! I saw at least 3x faster upload speeds with large files (3-8GiB). Amazing work! Thank you!!! 🙏

Suraj Mandal 的头像
Suraj Mandal8 个月前

Looks great! will test it in my next project. Captcha going out of bounds here irks me a bit tho lol

Anni Wang 的头像
Anni Wang8 个月前

oh no, what are you seeing with the Captcha?

Suraj Mandal 的头像
Suraj Mandal8 个月前

Oh no no!! I just meant the captcha is a bit wider than the other stuff in the sidebar, just a tiny UI nitpick lol

Pavan Kumar 的头像
Pavan Kumar8 个月前

This is awesome, and the demo is really nice too 🔥

Francisco Hermida PRO 的头像
Francisco Hermida PRO8 个月前

Any reason to not have it on by default in all r2 buckets?

Pranjal Soni 的头像
Pranjal Soni8 个月前

today only we launched r2 integration into so people can build apps using ai, powered by r2 storage without much hassle remove supabase storage as our provider

Ali Ihsan Nergiz 的头像
Ali Ihsan Nergiz8 个月前

@kathyyliao I’m here for the animation and love R2

Devesh Paliwal 的头像
Devesh Paliwal8 个月前

that map is slick

Giuliano 的头像
Giuliano8 个月前

This is fire!! 🔥🔥🔥 Any news on the italian fine? 😬

MING 的头像
MING8 个月前

Wonderful 😍

Zairig Imad 的头像
Zairig Imad8 个月前

Hello , there is a mistake in Morocco, it shouldn't be devided in the map! could you please fix it ! thank you

pedro costa — oss/acc 的头像
pedro costa — oss/acc8 个月前

awesome! is there a way to enable it from the dashboard?

Anni Wang 的头像
Anni Wang8 个月前

Yes!

pedro costa — oss/acc 的头像
pedro costa — oss/acc8 个月前

thanks!

EJ Campbell 的头像
EJ Campbell8 个月前

Why is latency between two regions so high? Conceptually you could take the large file and split into a bunch of tiny individual streams and it shouldn’t be magnitudes slower than local, especially given you are in control of the network / protocol between hops.

Bruce Astor 的头像
Bruce Astor8 个月前

Why is this something new? It should have been done this way since forever. Good job though, better late than never. PS- Congrats on having a job that's hard for agents to replace!

Daksh 的头像
Daksh8 个月前

@CloudflareDev Looks good Anni 👍

Saquib 的头像
Saquib8 个月前

I'm saving this post ... will go through it later

Hamza Imran 的头像
Hamza Imran8 个月前

Geo replication for R2 when?

Maximin 的头像
Maximin8 个月前

Amazing job

anand mekala 的头像
anand mekala8 个月前

that's amazing, btw will there be any chances of increasing the 50MB file size limit in the future?

K.C. Sheffield 的头像
K.C. Sheffield8 个月前

The only cloud platform that lets me make money. Keep up the great work cloudflare. Cheers from

Uncle J 的头像
Uncle J8 个月前

Local uploads is one of those features that sounds boring until you realize it eliminates an entire class of latency complaints. The best infrastructure improvements are the ones users never notice — they just stop complaining.

相关视频