By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Cloudflare Rearchitects Workers KV Following GCP Outage, Achieves 40x Performance Gain
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Cloudflare Rearchitects Workers KV Following GCP Outage, Achieves 40x Performance Gain
News

Cloudflare Rearchitects Workers KV Following GCP Outage, Achieves 40x Performance Gain

News Room
Last updated: 2025/08/25 at 8:12 PM
News Room Published 25 August 2025
Share
SHARE

Cloudflare has recently redesigned Workers KV with a hybrid storage architecture that automatically routes objects between distributed databases and object storage based on size characteristics, while operating dual storage backends. This change improved the p99 read latencies from 200ms to under 5ms for their global key-value store while handling hundreds of billions of key-value pairs.

Cloudflare performed this rearchitecture in response to a June 12, 2025, outage that affected Workers KV when Google Cloud Platform experienced a global service disruption. Earlier in the year, Cloudflare moved from a dual-backend setup to using GCP exclusively to reduce operational complexity. However, the GCP outage, which lasted over two hours, demonstrated the risks of external dependencies for critical edge infrastructure.

The new system combines Cloudflare’s own distributed database with R2 object storage through size-based routing. Small objects, which represent the majority of Workers KV traffic with a median size of 288 bytes, are stored in Cloudflare’s distributed database, the same distributed database that powers R2 and Durable Objects. Objects larger than a configurable threshold are automatically routed to R2 object storage.

Cloudflare engineers explain that “for workloads dominated by sub-1KB objects at this scale, database storage becomes significantly more efficient and cost-effective than traditional object storage.” The routing decision happens transparently through KV Storage Proxy (KVSP), which provides HTTP interfaces to database clusters while managing connectivity, authentication, and shard routing.


Workers KV’s revised architecture (source)

To employ an improved dual-provider capability, Cloudflare employed sophisticated consistency mechanisms. The system writes to both backends simultaneously, returning success when the first backend confirms persistence. Failed writes are queued for background reconciliation through write-time error handling, read-time inconsistency detection, and background crawlers that continuously scan for data divergence. In addition, each key-value pair includes high-precision timestamps using Cloudflare Time Services to determine correct ordering across independent storage providers.

During initial rollout to internal customers, Cloudflare discovered it had inadvertently regressed read-your-own-write (RYOW) consistency, a property where reads immediately following writes from the same point of presence return updated values rather than stale data.

To address this, engineers developed an “adversarial test framework designed to maximize the likelihood of hitting consistency edge cases by rapidly interspersing reads and writes to a small set of keys from a handful of locations around the world.” This testing approach allowed them to measure and fix RYOW violations while maintaining performance characteristics that make Workers KV effective for high-read workloads.

The architectural changes delivered significant performance improvements alongside increased redundancy. Internal p99 latencies for reads from the new Cloudflare backend dropped to under 5 milliseconds, compared to 200ms at p99 for the third-party object storage provider. These improvements were “particularly pronounced in Europe, where our new storage backend is located, but the benefits extended far beyond what geographic locality alone could explain.”



KVSP p99 latency (source)



Third-party cold read p99 latency (source)

Workers KV is Cloudflare’s eventually-consistent key-value store that operates at a global scale across its edge network. Initially launched in 2018, the service provides fast, distributed storage for configuration data, session information, and static assets that need to be available instantly around the globe. Companies use Workers KV for diverse applications, including mass redirects handling billions of HTTP requests, API gateway implementations, A/B testing configurations, user authentication systems, and dynamic content personalization based on geographic location or device type.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Finapact Global: Leading the Way in Secure Digital Asset Support | HackerNoon
Next Article Why PEFT Beats FFT in Active Learning: Forgetting Dynamics and Stable Representations | HackerNoon
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Stronger Signal, Smaller Price: Save 24% on TP-Link Deco BE63 Wi-Fi Mesh
News
11 Unconventional Ways to Use AI in Marketing | HackerNoon
Computing
That Old App Still Has Your Google Data, Here’s How to Take It Back
News
The four-pack of Apple AirTags is just over $5 away from their lowest price ever
News

You Might also Like

News

Stronger Signal, Smaller Price: Save 24% on TP-Link Deco BE63 Wi-Fi Mesh

6 Min Read
News

That Old App Still Has Your Google Data, Here’s How to Take It Back

6 Min Read
News

The four-pack of Apple AirTags is just over $5 away from their lowest price ever

2 Min Read
News

AI Might Make Your Power Bill Go Up – Even If You Don’t Use It – BGR

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?