Improve global upload performance with R2 Local Uploads
Read Full ArticleSummary
The article introduces Local Uploads for R2, a feature designed to enhance global upload performance by allowing object data to be initially written to a storage location close to the client before being asynchronously copied to the designated bucket location. This method significantly reduces upload times, achieving up to a 75% reduction in Time to Last Byte (TTLB) for uploads made from regions distant from the bucket. The architecture of R2 includes components like the R2 Gateway Worker, Durable Object Metadata Service, and a Distributed Storage Infrastructure, which collectively optimize the upload process. The article also explains the mechanics of how Local Uploads function, including the handling of metadata and replication tasks, and emphasizes the importance of this feature for applications with globally distributed users.
Key Learnings
- 1Local Uploads can drastically reduce upload times by writing data close to the client before replication.
- 2The architecture of R2 leverages Cloudflare's global network to ensure strong consistency and fast data access.
- 3Understanding the geographic distribution of requests is crucial for optimizing upload performance.
- 4Asynchronous processing of replication tasks allows for efficient management of upload requests across different regions.
- 5Local Uploads are particularly beneficial for applications with users in diverse geographic locations, enhancing both performance and reliability.
Who Should Read This
Cloud Architects and Senior DevOps Engineers focused on optimizing global data upload performance in distributed applications.
Test Your Knowledge
What are the trade-offs of using Local Uploads versus traditional upload methods in terms of consistency and performance?
How does the architecture of R2 handle metadata management during the upload process?
What failure scenarios might arise during the asynchronous replication of uploads, and how are they mitigated?
Why is it important to minimize cross-regional data movements in the context of upload performance?
How does the pull model for task processing contribute to the stability and efficiency of the replication process?
Topics
More articles about AWS
Explore AWS engineering →Complexity is a choice. SASE migrations shouldn’t take years.
The article emphasizes the shift in the cybersecurity landscape regarding SASE migrations, arguing that complexity is a choice rather than an inevitability. It showcases how Cloudflare's SASE...
AWS Weekly Roundup: Amazon Connect Health, Bedrock AgentCore Policy, GameDay Europe, and more (March 9, 2026)
The article provides a comprehensive overview of recent updates and launches from AWS, highlighting innovations such as Amazon Connect Health, which offers AI-driven solutions for healthcare, and the...
Native .NET Buildpack Support is Now Available on App Platform
DigitalOcean has announced native .NET buildpack support on its App Platform, enabling developers to deploy .NET applications directly from a Git repository without the need for Dockerfiles. The...
Introducing OpenClaw on Amazon Lightsail to run your autonomous private AI agents
The article introduces OpenClaw, an autonomous private AI agent, now available on Amazon Lightsail. It details the process of launching an OpenClaw instance, which is pre-configured with Amazon...
See risk, fix risk: introducing Remediation in Cloudflare CASB
The article introduces a significant enhancement to Cloudflare's Cloud Access Security Broker (CASB) by launching a Remediation feature that allows users to directly fix risky file-sharing...
More from Cloudflare Engineering
View Cloudflare engineering blogs →Complexity is a choice. SASE migrations shouldn’t take years.
The article emphasizes the shift in the cybersecurity landscape regarding SASE migrations, arguing that complexity is a choice rather than an inevitability. It showcases how Cloudflare's SASE...
Active defense: introducing a stateful vulnerability scanner for APIs
The article introduces Cloudflare's new stateful vulnerability scanner designed specifically for APIs, addressing the limitations of traditional defensive security measures. It highlights the...
Fixing request smuggling vulnerabilities in Pingora OSS deployments
The article addresses critical HTTP/1.x request smuggling vulnerabilities identified in the Pingora open source framework, particularly when deployed as an ingress proxy. It outlines the nature of...
From the endpoint to the prompt: a unified data security vision in Cloudflare One
The article outlines Cloudflare One's evolution in data security, emphasizing a unified approach that encompasses protection in transit, visibility and control at rest, and enforcement in use. It...
A QUICker SASE client: re-building Proxy Mode
The article outlines the challenges faced by security teams when implementing proxy modes in SASE environments, particularly the performance issues associated with traditional TCP implementations. It...