ivogt
CDCloudflare Developers
•Created by thomasgauvin on 10/23/2024 in #kv
Can you all DM me your Workers account
We just tested this with D1 storing sessions and everything looks fine so far. Might stay on this solution
32 replies
CDCloudflare Developers
•Created by thomasgauvin on 10/23/2024 in #kv
Can you all DM me your Workers account
Often* I mean a login click and that's it.
32 replies
CDCloudflare Developers
•Created by thomasgauvin on 10/23/2024 in #kv
Can you all DM me your Workers account
Very small number of keys but often updates. During testing it's like 1 or 2 active sessions.
32 replies
CDCloudflare Developers
•Created by thomasgauvin on 10/23/2024 in #kv
Can you all DM me your Workers account
We are urgently moving sessions to D1 and as of now things seems much better
32 replies
CDCloudflare Developers
•Created by thomasgauvin on 10/23/2024 in #kv
Can you all DM me your Workers account
Of course initially we thought its something with our implementation and thoroughly checked if its not the implementation and there are no race conditions. But as it appears sequential calls see stale (likey kv cached) value.
Is it possible that KV became more spec compliant( around the 60sec cache) and the previous behavior was not suppose to work in this way?
32 replies
CDCloudflare Developers
•Created by thomasgauvin on 10/23/2024 in #kv
Can you all DM me your Workers account
Very similar for us. Login and updating the session is not always updated. Occasunally things work but most of the time the session value is stale for few seconds. Often a refresh still shows old data. This used to work for a lot of time and started being a problem since the other day.
Also, I did double check that we are awaiting the kv update.
Here is an example scenario:
- (1)POST to login
- (2) if above is successfull we revalidate the data on the page (Remix into play here) which refetches the data (caching is also ruled-out) - this call is seeing the old data of the session.
32 replies