What are you measuring? Puts or Gets? > should've gone for foundation db The magic with KV is its un
What are you measuring? Puts or Gets?
https://developers.cloudflare.com/kv/learning/how-kv-works/
You can signal for it to cache results longer as well, and stream back responses, ex
(It is eventually consistent by design, but by getting it to cache for longer you're not going to see updates until cache expires or if you write in same location. (KV 2.0 which was delayed aimed to solve this by checking every minute in the background for updates, but it was delayed due to issues))
It's pretty fast, once its cached locally ~20ms or less
should've gone for foundation dbThe magic with KV is its unlimited scale and getting faster the more requests you give it, it's made for read-heavy cases, like for example Cloudflare Pages uses it
https://developers.cloudflare.com/kv/learning/how-kv-works/
You can signal for it to cache results longer as well, and stream back responses, ex
(It is eventually consistent by design, but by getting it to cache for longer you're not going to see updates until cache expires or if you write in same location. (KV 2.0 which was delayed aimed to solve this by checking every minute in the background for updates, but it was delayed due to issues))
It's pretty fast, once its cached locally ~20ms or less