Are KV updates instant? For what I read. I think it take sup to 60 seconds to propagate to other reg

Are KV updates instant? For what I read. I think it take sup to 60 seconds to propagate to other regions, but in the user's region, the Update & Read should be consistent and almost instant?
15 Replies
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Isaac McFadyen
Consistent in the same datacenter. But there are 340+ datacenters across the globe, and sometimes a user can flip-flop between two (rare but happens) or might switch to a new one on cellular vs wifi, so don't rely on the consistency at all really.
Hello, I’m Allie!
Note too that IIRC local writes can fail, causing read-after-writes to not be consistent either
shinshin
shinshin3w ago
I apologize for bringing up a past question. Here's my question about the routing behavior of Workers. In what scenarios would a Worker request be routed to a different location?
Razzmatazz
Razzmatazz3w ago
using the cloudflare TS API Library, I can successfully update a KV value using the client.kv.namespaces.bulk.update method, but when I try to use client.kv.namespaces.values.update it always returns a null value rather than any kind of error message. I feel like I'm going crazy
1.1.1.1
1.1.1.13w ago
DNS over Discord: A records
google.com A @1.1.1.1 +noall +answer
NAME | TTL | DATA
-----------+------+---------------
google.com | 204s | 64.233.185.113
google.com | 204s | 64.233.185.139
google.com | 204s | 64.233.185.138
google.com | 204s | 64.233.185.100
google.com | 204s | 64.233.185.102
google.com | 204s | 64.233.185.101
NAME | TTL | DATA
-----------+------+---------------
google.com | 204s | 64.233.185.113
google.com | 204s | 64.233.185.139
google.com | 204s | 64.233.185.138
google.com | 204s | 64.233.185.100
google.com | 204s | 64.233.185.102
google.com | 204s | 64.233.185.101
diggy diggy hole
1.1.1.1
1.1.1.13w ago
DNS over Discord: A records
yahoo.com. A @8.8.8.8 +noall +answer
NAME | TTL | DATA
-----------+------+--------------
yahoo.com. | 300s | 98.137.11.163
yahoo.com. | 300s | 98.137.11.164
yahoo.com. | 300s | 74.6.231.20
yahoo.com. | 300s | 74.6.143.26
yahoo.com. | 300s | 74.6.231.21
yahoo.com. | 300s | 74.6.143.25
NAME | TTL | DATA
-----------+------+--------------
yahoo.com. | 300s | 98.137.11.163
yahoo.com. | 300s | 98.137.11.164
yahoo.com. | 300s | 74.6.231.20
yahoo.com. | 300s | 74.6.143.26
yahoo.com. | 300s | 74.6.231.21
yahoo.com. | 300s | 74.6.143.25
diggy diggy hole
zegevlier
zegevlier3w ago
301 -> #Bot spam please 🙂
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Rick
Rick2w ago
I am setting up kv for sesions management. But I cam acros this repo https://github.com/bruceharrison1984/kv-d1-benchmark which suggests that d1 performance is similar to kv. Is that the case? I would like to store and query other info about the session if I can. if d1 gives me the same performance, i'd rather use that.
GitHub
GitHub - bruceharrison1984/kv-d1-benchmark: A very small Cloudflare...
A very small Cloudflare Worker that compares response times of KV to D1 - bruceharrison1984/kv-d1-benchmark
Horsie
Horsie2w ago
Can someone please help me understand what "Operations/Worker invocation" means? Can I access my kv from a worker only 1000 times per day? That seems unlikely
Walshy
Walshy2w ago
Worker invocation means each time the Worker is invoked. So if you're using HTTP, every HTTP request received. Crons, every cron schedule fired, etc. Every time the Worker is ran, you can do 1000 operations. Benchmark is old, KV is faster - https://blog.cloudflare.com/faster-workers-kv/ but I'd recommend just using the right tool for the job over the one which is a tad faster. what the right one is, that's for you to decide.
Rick
Rick2w ago
Thanks
Horsie
Horsie2w ago
Oh I see. It's more like Operations per worker invocation. I get it now. Thanks.

Did you find this page helpful?