multiple connections to local kv with sqlite from different thread

If I have multiple workers on different thread, occasionally accessing the same kv with sqlite backup, will that cause any problem other than occasionally db being locked (which I can just try again) I'm building a compiled local app so shared kv instance on Deno Deploy is not an option.
2 Replies
Leokuma
Leokuma2mo ago
There's no problem in terms of DB consistency. KV is built to handle multiprocess access. The only problem I've heard of is file locking You may want to consider the standalone DenoKV, which doesn't have that limitation: https://github.com/denoland/denokv
GitHub
GitHub - denoland/denokv: A self-hosted backend for Deno KV
A self-hosted backend for Deno KV. Contribute to denoland/denokv development by creating an account on GitHub.
죽지않을지어다
oh i did not know they had standalone kv server thanks!

Did you find this page helpful?