Race conditions more than anything else

Race conditions, more than anything else. With KV for a session store, you have to worry about cache times if you need to invalidate things, propagation delays, etc. For most use-cases, it's probably fine. But DOs would give you the durability that can be necessary for critical use-cases.
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
James
JamesOP2y ago
I'd say you've just gotten lucky. It's usually way less than 500ms from my experience. The other thing I'd be concerned with is invalidation. With KV, the lowest cacheTTL you can do is 60, so you potentially have ~60 seconds where your session revoking doesn't stick properly.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server