Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Sequential consistency without borders: how D1 implements global read replication

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Justin Mazzola Paluska, Lambros Petrou
Word Count
4,287
Language
English
Hacker News Points
-
Summary

D1 read replication makes read-only copies of your database available in multiple regions across Cloudflare’s network, lowering average latency by routing user requests to read replicas in nearby regions and increasing overall throughput by offloading read queries to read replicas. The new D1 Sessions API ensures sequential consistency for all queries in the session, regardless of which replica is used. This feature allows applications to serve read queries faster while maintaining strong consistency across requests, with automatically provisioned replicas in every region. The public beta is available now, and the feature will be refined and expanded based on developer feedback.