Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

147,533 Aufrufe • vor 8 Monaten •via X (Twitter)

45 Kommentare

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

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:

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

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.

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

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.

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

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.

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

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:

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

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.

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

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

Profilbild von Zaher 🇸🇾 🇵🇸
Zaher 🇸🇾 🇵🇸vor 8 Monaten

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

Profilbild von Pils10
Pils10vor 8 Monaten

Should it be worse with it compared to without?

Profilbild von Zaid
Zaidvor 8 Monaten

Happy R2 customer here :)

Profilbild von Joshua Poddoku
Joshua Poddokuvor 8 Monaten

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

Profilbild von vik
vikvor 8 Monaten

@irvinebroque amazing

Profilbild von Nir Galon
Nir Galonvor 8 Monaten

Is the globe built with @threejs ?

Profilbild von Rory Bernier
Rory Berniervor 8 Monaten

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

Profilbild von James Ross
James Rossvor 8 Monaten

this is an awesome ship. congrats

Profilbild von Luis Catacora
Luis Catacoravor 8 Monaten

this looks so cool! inspired by @Jilles ?

Profilbild von A
Avor 8 Monaten

cant stop loving cloudflare

Profilbild von Rehan
Rehanvor 8 Monaten

Oh it's cool

Profilbild von Tony Kim
Tony Kimvor 8 Monaten

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

Profilbild von Eason Chai
Eason Chaivor 8 Monaten

such a good visualisation tho!

Profilbild von Devarshi Shimpi
Devarshi Shimpivor 8 Monaten

It’s basically like caching files? Amazing!

Profilbild von The Fishcake🇯🇵🌸
The Fishcake🇯🇵🌸vor 8 Monaten

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

Profilbild von Suraj Mandal
Suraj Mandalvor 8 Monaten

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

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

oh no, what are you seeing with the Captcha?

Profilbild von Suraj Mandal
Suraj Mandalvor 8 Monaten

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

Profilbild von Pavan Kumar
Pavan Kumarvor 8 Monaten

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

Profilbild von Francisco Hermida PRO
Francisco Hermida PROvor 8 Monaten

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

Profilbild von Pranjal Soni
Pranjal Sonivor 8 Monaten

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

Profilbild von Ali Ihsan Nergiz
Ali Ihsan Nergizvor 8 Monaten

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

Profilbild von Devesh Paliwal
Devesh Paliwalvor 8 Monaten

that map is slick

Profilbild von Giuliano
Giulianovor 8 Monaten

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

Profilbild von MING
MINGvor 8 Monaten

Wonderful 😍

Profilbild von Zairig Imad
Zairig Imadvor 8 Monaten

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

Profilbild von pedro costa — oss/acc
pedro costa — oss/accvor 8 Monaten

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

Profilbild von Anni Wang
Anni Wangvor 8 Monaten

Yes!

Profilbild von pedro costa — oss/acc
pedro costa — oss/accvor 8 Monaten

thanks!

Profilbild von EJ Campbell
EJ Campbellvor 8 Monaten

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.

Profilbild von Bruce Astor
Bruce Astorvor 8 Monaten

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!

Profilbild von Daksh
Dakshvor 8 Monaten

@CloudflareDev Looks good Anni 👍

Profilbild von Saquib
Saquibvor 8 Monaten

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

Profilbild von Hamza Imran
Hamza Imranvor 8 Monaten

Geo replication for R2 when?

Profilbild von Maximin
Maximinvor 8 Monaten

Amazing job

Profilbild von anand mekala
anand mekalavor 8 Monaten

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

Profilbild von K.C. Sheffield
K.C. Sheffieldvor 8 Monaten

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

Profilbild von Uncle J
Uncle Jvor 8 Monaten

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.

Ähnliche Videos