Skip to content

Commit 26138e7

Browse files
committed
small fixups
1 parent fc93b7e commit 26138e7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/content/changelog/d1/2025-04-04-d1-read-replication-beta.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ title: D1 Read Replication Public Beta
33
description: Use D1 Sessions API to leverage read replication.
44
products:
55
- d1
6-
date: 2025-04-04
6+
- workers
7+
date: 2025-04-10T06:00:00Z
8+
hidden: true
79
---
810

911
D1 read replication is available in public beta to help lower average latency and increase overall throughput for read-heavy applications like e-commerce websites or content management tools.
@@ -24,7 +26,7 @@ response.headers.set('x-d1-bookmark', session.getBookmark() ?? "")
2426

2527
Read replicas are automatically created by Cloudflare (currently one in each supported [D1 region](/d1/best-practices/read-replication/#read-replica-locations)), are active/inactive based on query traffic, and are transparently routed to by Cloudflare at no additional cost. To checkout D1 read replication:
2628

27-
Deploy the following Worker code using Sessions API, which will prompt you to create a D1 database and enable read replication on said database.
29+
To checkout D1 read replication, deploy the following Worker code using Sessions API, which will prompt you to create a D1 database and enable read replication on said database.
2830

2931
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/staging/d1-starter-sessions-api)
3032

src/content/docs/d1/best-practices/read-replication.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ D1 read replication can lower latency for read queries and scale read throughput
1212

1313
Your application can use read replicas with D1 [Sessions API](/d1/worker-api/d1-database/#withsession). A session encapsulates all the queries from one logical session for your application. For example, a session may correspond to all queries coming from a particular web browser session. All queries within a session read from a database instance which is as up-to-date as your query needs it to be. Sessions API ensures [sequential consistency](/d1/best-practices/read-replication/#replica-lag-and-consistency-model) for all queries in a session.
1414

15-
To checkout D1 read replication:
16-
17-
Deploy the following Worker code using Sessions API, which will prompt you to create a D1 database and enable read replication on said database.
15+
To checkout D1 read replication, deploy the following Worker code using Sessions API, which will prompt you to create a D1 database and enable read replication on said database.
1816

1917
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/staging/d1-starter-sessions-api)
2018

@@ -65,7 +63,7 @@ D1 read replication achieves this by attaching a <GlossaryTooltip term="bookmark
6563

6664
### Enable read replication
6765

68-
Read replication can be enabled at the database level in the Cloudflare dashboard. Check **\<D1 Database\>** > **Settings** to view if read replication is enabled.
66+
Read replication can be enabled at the database level in the Cloudflare dashboard. Check **Settings** for your D1 database to view if read replication is enabled.
6967

7068
1. Go to [**Workers & Pages** > **D1**](https://dash.cloudflare.com/?to=/:account/workers/d1).
7169
2. Select an existing database > **Settings** > **Enable Read Replication**.
@@ -411,7 +409,6 @@ To see the impact of read replication and check the how D1 requests are processe
411409
There are some known limitations for D1 read replication.
412410

413411
- Sessions API is only available via the [D1 Worker Binding](/d1/worker-api/d1-database/#withsession) and not yet available via the REST API.
414-
- TODO: smart placement
415412

416413
## Background information
417414

0 commit comments

Comments
 (0)