I’ve been noticing that my get requests
I’ve been noticing that my get requests to a kv store have had the latency gradually increasing overtime. This latency changes depending
Inside of the worker code edit page, when my worker is run, all 30ms of the wall click time utilized is caused by my get request to a kv storage after 5 requests, before then I’m seeing up to 400ms of time waiting for the get requests to complete.
On my end client is interacting with a worker, the median response time is sitting at 200ms after 300 requests.
With a curl request directly to the kv store, it is averaging 250-300ms (calculated from rapid succession of 150 requests).
I remember when I last benchmarked my worker I was averaging about a 50-100 ms delay per request. I have not changed anything since last year and it processes about 200 requests per second daily.
Has there been any cause behind this level of degradation in Cloudflare KV response time?
2 Replies
There haven't been any changes on KV that could be attributable to the performance degradation you're noticing, I am curious if your data patterns have changed. If you have many different keys that are infrequently accessed, it is possible that you aren't benefitting as much from hot reads
I know you can't share more via public forums, I've reached out directly in DMs and sent a booking link (https://calendar.app.google/ynRoYiJudGqyGPRN9) so I can try to better understand your use case, it seems like there are a lot of moving pieces involved and there might be some ways to optimize your setup