Skip to content

Commit 5e06ad4

Browse files
committed
Add metrics graph & address feedback
1 parent ced8f59 commit 5e06ad4

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed
402 KB
Loading
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
---
2-
title: 40-60% Faster D1 Requests
3-
description: D1 end-to-end request latency decreases by 40-60%.
2+
title: 40-60% Faster D1 Worker API Requests
3+
description: D1's Worker API request latency decreases by 40-60%.
44
products:
55
- d1
66
date: 2025-01-07T18:00:00Z
77
---
88

9-
[D1](/d1/) lowered end-to-end request latency by 40-60% by eliminating latency incurred with multiple network round trips required for each request. Faster D1 performance applies to requests via both D1's [Worker API](/d1/worker-api/) and [REST API](/api/resources/d1/subresources/database/methods/query/).
9+
[D1](/d1/) lowered end-to-end request latency by 40-60% by eliminating redundant network round trips for each request.
1010

11-
Removing network round trips particularly benefits user requests geographically far from the requested D1 database. For example, a user in Europe talking to a database in North America. D1 [location hints](/d1/configuration/data-location/#provide-a-location-hint) can be used to influence the geographic location of a database.
11+
![D1 Worker API latency](~/assets/images/d1/faster-d1-worker-api.png)
1212

13-
[TODO image]
13+
Faster D1 performance is most noticeable via requests to D1's [Worker API](/d1/worker-api/). The same improvement applies to D1's [REST API](/api/resources/d1/subresources/database/methods/query/). However, the REST API still depends on Cloudflare's centralized datacenters for authentication, which reduces the relative performance improvement.
1414

15-
For more details on how D1 lowered latency, see product-specific changelog [entry](/d1/platform/changelog/#2025-01-13).
15+
This performance improvement benefits all D1 Worker API traffic, especially cross-region requests where network latency is an outsized latency factor. For example, a user in Europe talking to a database in North America. D1 [location hints](/d1/configuration/data-location/#provide-a-location-hint) can be used to influence the geographic location of a database.
16+
17+
For more details on how D1 lowered latency, see product-specific changelog [entry](/d1/platform/changelog/#2025-01-07).

src/content/changelogs/d1.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ entries:
1616
1717
For better insight into your current usage, refer to your [billing metrics](/d1/observability/billing/) for rows read and rows written, which can be found on the [D1 dashboard](https://dash.cloudflare.com/?account=/workers/d1) or GraphQL API.
1818
19-
- publish_date: "2024-01-07"
19+
- publish_date: "2025-01-07"
2020
title: D1 end-to-end request latency decreases by 40-60%.
2121
description: |-
2222
23-
D1 lowered end-to-end request latency by 40-60% by eliminating latency incurred with multiple network round trips required for each request. Faster D1 performance applies to requests via both D1's [Worker API](/d1/worker-api/) and [REST API](/api/resources/d1/subresources/database/methods/query/).
24-
25-
For each request, two to three network round trips were eliminated. One round trip was introduced by a bug that was fixed.
26-
27-
The remaining removed round trips were responsible for creating TCP connections between Cloudflare data centers. D1's networking layer no longer relies on TCP connections, which removes additional round trip time.
23+
[D1](/d1/) lowered end-to-end request latency by 40-60% by eliminating redundant network round-trips for each request.
24+
25+
Faster D1 performance is most noticeable via requests to D1's [Worker API](/d1/worker-api/). The same improvement applies to D1's [REST API](/api/resources/d1/subresources/database/methods/query/). However, the REST API still depends on Cloudflare's centralized datacenters for authentication, which reduces the relative performance improvement.
2826

27+
For each request to a D1 database, at least two network round trips were eliminated.
28+
29+
One round trip was due to a bug that is now fixed. The remaining removed round trips are due to avoiding creating a new TCP connection for each request when reaching out to the datacenter hosting the database.
30+
2931
- publish_date: "2024-08-23"
3032
title: D1 alpha databases have stopped accepting SQL queries
3133
description: |-

0 commit comments

Comments
 (0)