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•3w ago
Message Not Public
Sign In & Join Server To View
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.
Note too that IIRC local writes can fail, causing read-after-writes to not be consistent either
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?
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 crazyDNS over Discord: A records
google.com A @1.1.1.1 +noall +answer
diggy diggy hole
DNS over Discord: A records
yahoo.com. A @8.8.8.8 +noall +answer
diggy diggy hole
301 -> #Bot spam please 🙂
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
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
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
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.
Thanks
Oh I see. It's more like Operations per worker invocation.
I get it now. Thanks.