Skip to content

Commit 5caf814

Browse files
committed
fix format issues
1 parent a65c5d3 commit 5caf814

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2025-04-04
88

99
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.
1010

11-
Workers can leverage read-only database copies, called read replicase, by using D1 [Sessions API](/d1/best-practices/read-replication). 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. With Sessions API, D1 queries in a Session are guanranteed to be sequentially consistent(/d1/best-practices/read-replication/#replica-lag-and-consistency-model) to avoid data consistency pitfalls. D1 [bookmarks](/d1/reference/time-travel/#bookmarks) can be used from a previous Session to ensure logical consistency between Sessions.
11+
Workers can leverage read-only database copies, called read replicase, by using D1 [Sessions API](/d1/best-practices/read-replication). 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. With Sessions API, D1 queries in a Session are guanranteed to be [sequentially consistent](/d1/best-practices/read-replication/#replica-lag-and-consistency-model) to avoid data consistency pitfalls. D1 [bookmarks](/d1/reference/time-travel/#bookmarks) can be used from a previous Session to ensure logical consistency between Sessions.
1212

1313
```ts
1414
// retrieve bookmark from previous Session stored in HTTP header
@@ -22,9 +22,7 @@ const result = await session
2222
response.headers.set('x-d1-bookmark', session.getBookmark() ?? "")
2323
```
2424

25-
Read replicas are automatically created by Cloudlfare (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.
26-
27-
To checkout D1 read replication:
25+
Read replicas are automatically created by Cloudlfare (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:
2826

2927
Deploy the following Worker code using Sessions API, which will prompt you to create a D1 database and enable read replication on said database.
3028

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ D1 read replication achieves this by attaching a <GlossaryTooltip term="bookmark
189189

190190
### Enable read replicaton
191191

192-
Read replication can be enabled at the database level in the Cloudflare dashboard. Check [**\<D1 Database\>** > **Settings**] to view if read replication is enabled.
192+
Read replication can be enabled at the database level in the Cloudflare dashboard. Check **\<D1 Database\>** > **Settings** to view if read replication is enabled.
193193

194194
1. Go to [**Workers & Pages** > **D1**](https://dash.cloudflare.com/?to=/:account/workers/d1).
195195
2. Select an existing database > Settings > Enable Read Replication.

0 commit comments

Comments
 (0)