Open trainiac opened 2 years ago
In my experince, I could not read latest data immidately after write data. (if I'm correct, I have needed to wait a few seconds). It may read write to same edge location. (I forgot the code, but This PR is related) As a result, I added the sentence to README.
It may be a bug of express-session-cloudflare-kv.
but why did you create this repo in the first place if CF KV is not suited for session because of its non-consistency?
Full disclosure, I don't work for Cloudflare but have been trying to learn the uses of KV.
On your readme you write:
I think this is misleading. Reading the Cloudflare website they do say the data is "eventually-consistent" but they also say:
So for session storage that is meant only for one user in one location (which is a very common use case), their data will always be consistent for them. In addition Cloudflare recommends it for usage for integrations like Remix. https://blog.cloudflare.com/remix-on-cloudflare-pages/.
If I'm missing something please let me know but I just want to help others learning about KV what it's true limitations and features are.