Improve global upload performance with R2 Local Uploads
Blog post from Cloudflare
Local Uploads for R2 has been launched in open beta, enhancing the speed and global accessibility of object data uploads by initially writing data to a nearby storage location before asynchronously replicating it to the bucket's designated region. This feature is particularly beneficial for applications with globally distributed users or devices needing fast upload performance, as it significantly reduces upload latency, with tests showing up to a 75% decrease in Time to Last Byte (TTLB) for cross-region uploads. Built on Cloudflare's network, R2 ensures strong data consistency and zero egress fees, with uploads and reads remaining fast worldwide. The process involves a pull model using Cloudflare Queues to manage asynchronous replication tasks, ensuring efficient data movement across regions without additional costs. Local Uploads can be easily enabled via the Cloudflare Dashboard or through a single command, allowing uninterrupted and optimized upload operations.