Benchmarking Cloudflare KV vs Upstash Redis
Blog post from Upstash
The text compares the performance of two serverless datastores, Cloudflare KV and Upstash Redis, focusing on their latency and cost-effectiveness in a caching scenario. Cloudflare KV is a pull-based key-value store that stores data centrally and fetches it to edge nodes upon request, while Upstash Redis uses active replication, storing data across all edge locations for immediate availability. The benchmarking results show that Upstash Redis consistently offers lower latency compared to Cloudflare KV, particularly under high request loads, which significantly reduces Cloudflare's latency but not to the level of Upstash. The cost analysis reveals Cloudflare's $0.50 per million KV reads is cheaper than Upstash's $1 per million Redis commands, though Upstash offers more features and fixed pricing favorable for APIs with heavy traffic. The article concludes that Cloudflare KV suits simple use cases with acceptable latency requirements, whereas Upstash Redis is advantageous for applications requiring more features and lower latency, especially if already utilizing Redis.