4 ms·
Have you used Workers KV? In my experience, it's not just eventually consistent but also delayed - often by 10 seconds at least - the data is not updated even f
by SpaghettiX 5y ago
Have you used Workers KV? In my experience, it's not just eventually consistent but also delayed - often by 10 seconds at least - the data is not updated even for the same client, unless they implement their own caching.
https://community.cloudflare.com/t/how-truly-slow-is-workers-kv/218196 https://community.cloudflare.com/t/how-truly-slow-is-workers...
The other solution is to use cloudflare durable objects. - which is what I use, but it's very verbose.
KV is a poor experience for me.
- ignoramous 5y agoYeah we do use KV but with explicit caching [0] and a hand-rolled reconciliation/cache-invalidation logic on top. [1] [0] https://developers.cloudflare.com/workers/runtime-apis/cache/ https://developers.cloudflare.com/workers/runtime-apis/cache... [1] https://news.ycombinator.com/item?id=25295359 https://news.ycombinator.com/item?id=25295359