Skip to content

Commit 51c4b93

Browse files
thomasgauvinvy-ton
andauthored
Update src/content/partials/kv/kv-vs-d1.mdx
Co-authored-by: Vy Ton <[email protected]>
1 parent f507a3b commit 51c4b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/partials/kv/kv-vs-d1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Cloudflare Workers KV provides an eventually consistent global key-value store t
88
low read latency for hot reads to keys. This is ideal for storing data that is repeatedly read by your Workers, such as configuration data, user preferences, cached values, etc. Workers KV can sustain high read throughput (unlimited requests per second per key) with \<5ms latency globally for hot reads. Workers KV is eventually consistent, so writes may take up to 60 seconds to propagate through Cloudflare's network by default.
99

1010
Cloudflare D1 provides a SQL database that supports relational data modeling and querying. D1 supports snapshot isolation consistency and is ideal for
11-
workloads that store user data or general web application data. D1 currently stores data regionally (with read replicas coming soon).
11+
workloads that store user data or general web application data.
1212

1313
- Use Workers KV if you need to store and access configuration data that will be read by Workers frequently, is written infrequently (\<1 RPS per key) and can tolerate eventual consistency.
1414
- Use D1 if you need to store general application data, need SQL access to your data, and require strong consistency (writes are immediately visible after being committed).

0 commit comments

Comments
 (0)