Skip to content

Commit b37c6e7

Browse files
committed
Updating demo links, adding note to place
database further away to see RR benefits in the demo
1 parent c03defb commit b37c6e7

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/content/apps/index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
languages: [TypeScript]
349349
cloudflare: true
350350
updated: 2025-02-27
351-
- link: https://github.com/cloudflare/templates/tree/staging/d1-starter-sessions-api
351+
- link: https://github.com/cloudflare/templates/tree/main/d1-starter-sessions-api-template
352352
id: Starter code for D1 Sessions API
353353
description: An introduction to D1 Sessions API. This demo simulates purchase orders administration.
354354
products: [Workers, D1]

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ To checkout D1 read replication, deploy the following Worker code using Sessions
1616

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

19+
:::note[Tip: Place your database further away for the read replication demo]
20+
To simulate how read replication can improve a worst case latency scenario, select your primary database location to be in a farther away region (one of the deployment steps).
21+
22+
You can find this in the **Database location hint** dropdown.
23+
:::
24+
1925
<GitHubCode
2026
repo="cloudflare/templates"
2127
file="d1-starter-sessions-api/src/index.ts"

src/content/docs/d1/demos.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ Learn how you can use D1 within your existing application and architecture.
1212

1313
## Featured Demos
1414

15-
- [Starter code for D1 Sessions API](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/staging/d1-starter-sessions-api): An introduction to D1 Sessions API. This demo simulates purchase orders administration.
15+
- [Starter code for D1 Sessions API](https://github.com/cloudflare/templates/tree/main/d1-starter-sessions-api-template): An introduction to D1 Sessions API. This demo simulates purchase orders administration.
1616

17-
[![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)
17+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/main/d1-starter-sessions-api-template)
18+
19+
:::note[Tip: Place your database further away for the read replication demo]
20+
To simulate how read replication can improve a worst case latency scenario, select your primary database location to be in a farther away region (one of the deployment steps).
21+
22+
You can find this in the **Database location hint** dropdown.
23+
:::
1824

1925
## Demos
2026

0 commit comments

Comments
 (0)