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 Upgrades D1 Database with Global Read Replication
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 Upgrades D1 Database with Global Read Replication
News

Cloudflare Upgrades D1 Database with Global Read Replication

News Room
Last updated: 2025/05/03 at 2:15 AM
News Room Published 3 May 2025
Share
SHARE

During the recent Developer Week 2025, Cloudflare announced the beta of global read replication for its serverless SQL database D1, providing a globally distributed option without sacrificing consistency. With automatically provisioned replicas in every region, applications can now serve read queries faster while maintaining strong sequential consistency across requests.

When replication for a D1 database is enabled, the D1 service maintains read replicas in multiple regions and routes requests to an appropriate copy of the database according to performance heuristics, the type of queries made in those requests, and query consistency needs. In the article “Sequential consistency without borders: how D1 implements global read replication,” Justin Mazzola Paluska and Lambros Petrou explain how the feature was implemented:

D1’s read replication feature is built around the concept of database sessions. A session encapsulates all the queries representing one logical session for your application. For example, a session might represent all requests coming from a particular web browser or all requests coming from a mobile app used by one of your users (…) The sessions implementation ensures sequential consistency for all queries in the session, no matter what copy of the database each query is routed to.

Source: Cloudflare blog

As with any database cluster, read replication on Cloudflare D1 reduces average latency by routing user requests to read replicas in nearby regions and increases overall throughput by offloading read queries to read replicas. In the technical deep dive of the read replication implementation, Paluska and Petrou clarify why there is a need for a Sessions API and why it is not possible to query replicas directly:

D1 runs on Cloudflare’s global network and there’s no way to ensure that requests from the same client get routed to the same replica for every request (…) D1’s read replication is asynchronous, so it’s possible that when you switch between replicas, the replica you switch to lags behind the replica you were using.

The withSession method takes a bookmark as a parameter, instructing D1 where to forward the first query of the session. While the first-unconstrained option allows the first query to be processed anywhere, the first-primary option ensures that the first query of the session will be forwarded to the primary. When possible, the authors suggest continuing sessions across requests by passing previously received bookmarks, allowing all of a client’s requests to be in the same session.

The addition of global read replication to Cloudflare D1 addresses a concern and adds a feature that the community was asking for. In a recent Reddit thread, James Ross, CTO at Nodecraft, wrote:

D1 isn’t that popular today because it has a few gotchas that make it hard to recommend for broader use-cases. (…) It exists in a single region. Their marketing sometimes claim otherwise, and they will hopefully soon get read replicas to improve this, but D1 today is essentially SQLite deployed to a single server.

Read Replication for D1 was just one of the main Cloudflare announcements during Developer Week 2025. As separately reported on InfoQ, the cloud provider launched the public beta of Cloudflare Secrets Store for secure credential management. Furthermore, Cloudflare Snippets and Cloudflare Workflow, a durable execution engine built on top of Workers, are both now generally available. It is also now possible to deploy static sites and full-stack applications on Cloudflare Workers thanks to support for React Router v7, Astro, Vue, and the Cloudflare Vite plugin.

The new read replication feature is currently in beta, with global replica creation and request routing available at no additional cost. The team anticipates additional capabilities in the future, including more advanced replica placement policies.

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 How to Set Up a Business Profile on Instagram
Next Article How to Brand Yourself on Instagram
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

13 Natural, Expert-Recommended Ways to Soothe Allergies at Home
News
AirPods Max vs Sony WH-1000XM6 – Over-ear headphones shootout
News
How the Signal Knockoff App TeleMessage Got Hacked in 20 Minutes
Gadget
Protecting Location Data in Smart City Digital Twins | HackerNoon
Computing

You Might also Like

News

13 Natural, Expert-Recommended Ways to Soothe Allergies at Home

14 Min Read
News

AirPods Max vs Sony WH-1000XM6 – Over-ear headphones shootout

11 Min Read
News

Drop Dropbox for This 10TB Cloud Storage Plan That Pays for Itself

3 Min Read
News

The battle of the mid-range phones: Google Pixel 9a vs. iPhone 16e

8 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?